| Crates.io | mcp-execution-cli |
| lib.rs | mcp-execution-cli |
| version | 0.6.4 |
| created_at | 2026-01-04 01:03:27.889139+00 |
| updated_at | 2026-01-04 01:03:27.889139+00 |
| description | CLI for MCP progressive loading code generation |
| homepage | https://github.com/bug-ops/mcp-execution |
| repository | https://github.com/bug-ops/mcp-execution |
| max_upload_size | |
| id | 2021076 |
| size | 224,636 |
Command-line interface for MCP Code Execution progressive loading. Achieves 98% token savings by generating one TypeScript file per MCP tool.
Download from GitHub Releases:
# macOS (Apple Silicon)
curl -L https://github.com/bug-ops/mcp-execution/releases/latest/download/mcp-execution-cli-macos-arm64.tar.gz | tar xz
# macOS (Intel)
curl -L https://github.com/bug-ops/mcp-execution/releases/latest/download/mcp-execution-cli-macos-amd64.tar.gz | tar xz
# Linux (x86_64)
curl -L https://github.com/bug-ops/mcp-execution/releases/latest/download/mcp-execution-cli-linux-amd64.tar.gz | tar xz
cargo install mcp-execution-cli
git clone https://github.com/bug-ops/mcp-execution
cd mcp-execution
cargo install --path crates/mcp-cli
[!IMPORTANT] Requires Rust 1.89 or later for building from source.
# From config file (recommended)
mcp-execution-cli generate --from-config github
# With manual configuration
mcp-execution-cli generate github-mcp-execution-server --env GITHUB_TOKEN=ghp_xxx
[!TIP] Use
--from-configto load server configuration from~/.claude/mcp.json.
# List available servers
ls ~/.claude/servers/
# List tools in a server
ls ~/.claude/servers/github/
# Load one tool (98% token savings!)
cat ~/.claude/servers/github/createIssue.ts
# Bash
mcp-execution-cli completions bash > /etc/bash_completion.d/mcp-execution-cli
# Zsh
mcp-execution-cli completions zsh > ~/.zsh/completions/_mcp-execution-cli
# Fish
mcp-execution-cli completions fish > ~/.config/fish/completions/mcp-execution-cli.fish
generateGenerate TypeScript files with progressive loading:
mcp-execution-cli generate <SERVER> [OPTIONS]
Options:
--from-config <NAME>: Load config from mcp.json--arg <ARG>: Server command argument (repeatable)--env <KEY=VALUE>: Environment variable (repeatable)--progressive-output <PATH>: Custom output directory--format <FORMAT>: Output format (json, text, pretty)Examples:
# From config
mcp-execution-cli generate --from-config github
# Docker container
mcp-execution-cli generate docker \
--arg=run --arg=-i --arg=--rm \
--arg=ghcr.io/org/server \
--env=API_KEY=xxx
introspectAnalyze MCP servers and discover capabilities:
mcp-execution-cli introspect <SERVER> [OPTIONS]
Configuration Modes:
Load from ~/.claude/mcp.json (recommended):
mcp-execution-cli introspect --from-config github
Manual configuration:
mcp-execution-cli introspect github-mcp-execution-server --arg=stdio
Options:
--from-config <NAME>: Load config from mcp.json--arg <ARG>: Server command argument (repeatable)--env <KEY=VALUE>: Environment variable (repeatable)--detailed: Show full input/output schemas--format <FORMAT>: Output format (json, text, pretty)--http <URL>: Use HTTP transport--sse <URL>: Use SSE transportExamples:
# From config with detailed schemas
mcp-execution-cli introspect --from-config github --detailed
# Manual with Docker
mcp-execution-cli introspect docker \
--arg=run --arg=-i --arg=--rm \
--arg=ghcr.io/github/github-mcp-execution-server \
--env=GITHUB_TOKEN=ghp_xxx
# HTTP transport
mcp-execution-cli introspect --http https://api.example.com/mcp \
--header "Authorization=Bearer token"
skillGenerate Claude Code skill files (SKILL.md) from progressive loading tools:
mcp-execution-cli skill --server <SERVER_ID> [OPTIONS]
Options:
--server, -s <ID>: Server identifier (required)--servers-dir <PATH>: Custom servers directory--output, -o <PATH>: Custom output path--skill-name <NAME>: Custom skill name--hint <HINT>: Use case hints (repeatable)--overwrite: Overwrite existing SKILL.mdExamples:
# Generate skill for GitHub server
mcp-execution-cli skill --server github
# With custom output and hints
mcp-execution-cli skill --server github \
--output ~/.claude/skills/github/SKILL.md \
--hint "managing pull requests" \
--hint "code review"
# Overwrite existing skill
mcp-execution-cli skill --server github --overwrite
[!TIP] For optimal results, prefer using the MCP server (
mcp-execution-server) for skill generation. The MCP server can leverage LLM capabilities to summarize tool descriptions and reduce context size, resulting in more concise and effective skill files.
statsView cache statistics:
mcp-execution-cli stats
completionsGenerate shell completions:
mcp-execution-cli completions <SHELL>
[!NOTE] Supported shells: bash, zsh, fish, powershell
| Approach | Tokens | Savings |
|---|---|---|
| Traditional (all tools) | ~30,000 | - |
| Progressive (1 tool) | ~500-1,500 | 98% |
[!WARNING] Never pass untrusted input directly to
--argor--envoptions.
This crate is part of the mcp-execution workspace:
mcp-execution-core - Foundation typesmcp-execution-introspector - MCP server analysismcp-execution-codegen - TypeScript code generationmcp-execution-files - Virtual filesystemmcp-execution-skill - Skill generationmcp-execution-server - MCP serverMinimum 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.