MCP server for generating progressive loading TypeScript files. Achieves 98% token savings by leveraging Claude's natural language understanding for tool categorization.
# Build from workspace root
cargo build --release -p mcp-execution-server
# Binary: target/release/mcp-executionImportant
Requires Rust 1.89 or later.
# Direct execution
mcp-execution
# Or via cargo
cargo run -p mcp-execution-serverAdd to ~/.config/claude/mcp.json:
{
"mcpServers": {
"mcp-execution": {
"command": "mcp-execution"
}
}
}Tip
The server exposes 5 MCP tools for the complete workflow from introspection to skill generation.
use mcp_execution_server::GeneratorService;
use rmcp::ServiceExt;
use rmcp::transport::stdio;
#[tokio::main]
async fn main() -> anyhow::Result<()> {
let service = GeneratorService::new().serve(stdio()).await?;
service.waiting().await?;
Ok(())
}Connect to an MCP server and discover its tools.
{
"server_id": "github",
"command": "npx",
"args": ["-y", "@anthropic/mcp-execution-server-github"],
"env": { "GITHUB_TOKEN": "..." }
}Generate TypeScript files using Claude's categorization.
{
"session_id": "uuid-from-introspect",
"categorized_tools": [
{
"name": "create_issue",
"category": "issues",
"keywords": "create,issue,new,bug",
"short_description": "Create a new issue"
}
]
}List all servers with generated progressive loading files.
Analyze generated files and return context for SKILL.md generation.
Save generated SKILL.md content to the filesystem.
Note
Sessions expire automatically after 30 minutes with lazy cleanup.
introspect_server → Claude categorizes → save_categorized_tools → TypeScript files
↓
SKILL.md ← save_skill ← generate_skill
- 5 MCP Tools: Complete workflow from introspection to skill generation
- No LLM API Required: Claude handles categorization in conversation
- 98% Token Savings: Progressive loading pattern reduces context usage
- Type-Safe: Full TypeScript types from MCP JSON schemas
- Session Management: Automatic 30-minute session expiry
This crate is part of the mcp-execution workspace:
mcp-execution-core- Foundation types and traitsmcp-execution-introspector- MCP server analysismcp-execution-codegen- TypeScript code generationmcp-execution-files- Virtual filesystemmcp-execution-skill- SKILL.md generationmcp-execution-cli- Command-line interface
Minimum Supported Rust Version: 1.89
MSRV increases are considered minor version bumps.
Licensed under either of Apache License 2.0 or MIT license at your option.