kodegen_tools_introspection-0.5.1 has been yanked.
kodegen-tools-introspection
Memory-efficient, Blazing-Fast MCP tools for code generation agents
Introspection tools for monitoring and debugging tool usage in AI agent systems. Part of the KODEGEN.ᴀɪ ecosystem.
Features
This MCP server provides two essential introspection tools:
🔍 inspect_tool_calls
Get chronological tool call history with full arguments and outputs.
Use cases:
- Onboard new chat sessions by reviewing completed work
- Recover context after chat history loss
- Debug tool call sequences and execution flow
- Navigate large tool histories with flexible pagination
Pagination support:
// First 50 calls (default)
// Last 20 calls (tail behavior)
// Calls 50-99 (range)
// Filter by tool name
// Filter by timestamp
📊 inspect_usage_stats
Get comprehensive usage statistics and performance metrics.
Returns:
- Total tool calls (successful and failed)
- Success/failure rates
- Breakdown by category (filesystem, terminal, edit, search, etc.)
- Per-tool call counts
- Session information and timestamps
Installation
Add to your Cargo.toml:
[]
= "0.1"
Usage
Running the Server
# Development
# Production
As a Library
use ;
// Create tools
let usage_tool = new;
let history_tool = new;
// Register with MCP routers
let = register_tool;
Example Client
The example demonstrates:
- Connecting to the local HTTP server
- Calling both introspection tools
- Logging requests/responses
- Graceful shutdown
Building
# Build
# Run tests
# Lint
# Format
Architecture
- Library (
src/lib.rs): Exports tool implementations - Binary (
src/main.rs): HTTP server usingkodegen_server_http - History: Persisted to
~/.config/kodegen-mcp/tool-history.jsonl(last 1000 calls)
Requirements
- Rust nightly toolchain
- Components: rustfmt, clippy
- Targets: x86_64-apple-darwin, wasm32-unknown-unknown
License
Licensed under either of:
- Apache License, Version 2.0
- MIT License
at your option.