| Crates.io | kodegen_tools_introspection |
| lib.rs | kodegen_tools_introspection |
| version | 0.10.10 |
| created_at | 2025-11-03 17:19:17.253989+00 |
| updated_at | 2026-01-02 15:05:43.280726+00 |
| description | KODEGEN.ᴀɪ: Memory-efficient, Blazing-Fast, MCP tools for code generation agents. |
| homepage | https://kodegen.ai |
| repository | https://github.com/cyrup-ai/kodegen-tools-introspection |
| max_upload_size | |
| id | 1915005 |
| size | 4,074,578 |
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.
This MCP server provides two essential introspection tools:
Get chronological tool call history with full arguments and outputs.
Use cases:
Pagination support:
// First 50 calls (default)
{ "max_results": 50 }
// Last 20 calls (tail behavior)
{ "offset": -20 }
// Calls 50-99 (range)
{ "offset": 50, "max_results": 50 }
// Filter by tool name
{ "tool_name": "read_file", "offset": -10 }
// Filter by timestamp
{ "since": "2024-10-12T20:00:00Z" }
Get comprehensive usage statistics and performance metrics.
Returns:
Add to your Cargo.toml:
[dependencies]
kodegen_tools_introspection = "0.1"
# Development
cargo run
# Production
cargo build --release
./target/release/kodegen-introspection
use kodegen_tools_introspection::{InspectUsageStatsTool, InspectToolCallsTool};
// Create tools
let usage_tool = InspectUsageStatsTool::new(usage_tracker);
let history_tool = InspectToolCallsTool::new();
// Register with MCP routers
let (tool_router, prompt_router) = register_tool(
tool_router,
prompt_router,
usage_tool,
);
cargo run --example introspection_demo
The example demonstrates:
# Build
cargo build
# Run tests
cargo test
# Lint
cargo clippy
# Format
cargo fmt
src/lib.rs): Exports tool implementationssrc/main.rs): HTTP server using kodegen_server_http~/.config/kodegen-mcp/tool-history.jsonl (last 1000 calls)Licensed under either of:
at your option.