
七台MCP服务器,支持934个令牌,而非20,005个(测量)。MCP路由器+原生DeepSeek Harness捆绑包。
概览
七个MCP服务器只需951个代币,而不是20,005个——而且工具结果不再溢出窗口。 对于由 Ollama、LM Studio、vLLM 或 llama.cpp 服务的本地模型:路由器从不与模型后端通信,所以当客户模型调用工具时,它们都能正常工作。 在 DeepSeek Harness 上使用 qwen3-coder:30b 测量,8 个任务:会话以文本形式工具调用结束,而不是 7/16 → 0/32(0.4.0-beta.2 上 16 次,0.5.0-beta.1 上 32 次;修复可在 DSH 捆绑包中运行,详见 CHANGELOG)。 MCP名称:io.github。
概述(AI 翻译)
工具守护者
七个MCP服务器,拥有1,084个代币,而非20,005个——工具结果不再泛滥。
一台MCP服务器放在所有其他服务器前面。用Claude Code、OpenCode、Cline和Continue测试过(每个客户端一个脚本化模型回合,见“合作模式”);Claude Desktop、Cursor及其他标准MCP客户端:预期中,尚未测试。
mcp-name: io.github.LuminariSoftwares/tool-guardian
标题是该仓库的实验台,与七个公共MCP服务器(无网络,无模型;标记处为删节)的tools/list回答进行比对:
快速入门 · 合作 · DeepSeek 安全带 · 两者都安装· 前5分钟 · 为什么 · 运行方式有两种 · 建筑 · 安装· 测量它· 输出阶梯· DSH丛· 兼容性· 更新日志
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
Tool Guardian
Status: active development – changelog
mcp-name: io.github.LuminariSoftwares/tool-guardian
Your MCP servers behind one router: 20,005 tokens of tool schemas down to 1,084 on a 7-server setup.
One MCP server in front of all your others, so the model fetches a tool schema only when it needs one.
https://github.com/user-attachments/assets/f061f799-bffb-4ca4-a150-961bfbfb5c75
Quick start (60 seconds)
Nothing to install: uvx runs it from PyPI. The example server below is the MCP filesystem server, which runs with npx, so that one line needs Node.js — the router itself is Python 3.9+ and standard library only.
uvx tool-guardian --version
uvx --from tool-guardian tool-guardian-setup add files -- npx -y @modelcontextprotocol/server-filesystem "$HOME"
uvx tool-guardian --selftest
claude mcp add --scope user tool-guardian -- uvx tool-guardian # or any client: see "Run" below
Or tell your coding agent: Install tool-guardian (docs: https://raw.githubusercontent.com/LuminariSoftwares/tool-guardian/main/llms.txt) and route my MCP servers through it.
Prefer it installed? pip install tool-guardian, then drop the uvx prefixes (tool-guardian-setup add ...,
tool-guardian --selftest).
安装
npx -y @modelcontextprotocol/server-filesystem /data配置
{
"mcpServers": {
"files": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-filesystem", "/data"]
},
"git": {
"command": "uvx",
"args": ["mcp-server-git"],
"description": "git status / diff / commit / log"
}
}
}