mcptoon:统一管理 MCP 工具与 Agent 技能并压缩上下文的零依赖 CLI
activeing123/mcptoon · One zero-dependency CLI for every MCP server and agent skill. Token optimization, tool discovery and context compression: 71,929 -> 581 tokens (-99.2%, measured), schemas stay out of context. One config for Claude Code, Codex, Cursor, every agent. 341KB, pure Python. | 零依赖 CLI:管所有 MCP 工具与技能,工具发现省 99.2% token。
mcptoon 是一个纯 Python 标准库实现的零依赖命令行工具,用于统一管理本机上的 MCP 服务器工具与 Agent 技能。它把工具描述和技能全文留在磁盘上,只向上下文注入紧凑的名称索引,按 README 的实测数据,255 个工具的描述从 71,929 tokens 降至 581 tokens;完整 schema 与技能文本可通过 inspect、retrieve 等命令按需取回,因此压缩是无损的。它还提供 17,000+ MCP 服务器的自然语言检索安装、统一的 call 调用入口、stdio 诊断、离线 BM25 技能与文档章节路由,并向 Claude Code、Cursor、Codex、Windsurf 等 103+ 客户端写入统一的连接配置。