tool-guardian
用三个路由工具(list_capabilities、describe_tool、call_tool)代理 stdio MCP 服务器,schema 按需加载,不再随每次请求发送;所有工具结果经过确定性输出阶梯压缩,有损处理前先归档原文(retrieve_spill 可读回);按 token 为工具分组标价,并可按 agent 隐藏内置分组。桥接到纯标准库的 Python 路由器,需要 Python 3.9+。
Fronts stdio MCP servers with three router tools (list_capabilities, describe_tool, call_tool) so schemas load on demand instead of riding every request; shapes every tool result through a deterministic output ladder that archives the original first (retrieve_spill reads it back); prices tool groups in tokens and can hide built-in groups per agent. Bridges to a standard-library Python router, so Python 3.9+ is required.
怎么安装
dsh plugin add dsh-tool-guardian npx -y dsh-tool-guardian 简介
An MCP server that sits in front of your other MCP servers and exposes **three generic tools** instead of dozens of specific ones — discovering the rest **on demand** — so tool definitions stop eating your context window before the model reads a word. Companion to Context Guardian: **Context Guardian compacts the conversation before the window fills; Tool Guardian keeps the tools from filling it in the first place.** Two halves of the same problem. | | Without Tool Guardian | With it | |---|---|---| | 7 MCP servers on a 32K model | **28,689 tokens** of schemas on every request (87.6 % of the w…
推荐参考
信息
- 协议
- MIT
- 语言
- Python
- GitHub 星标
- 0
- 月下载
- 247
- 最近更新
- 2026-09-21
- 创建于
- 2026-08-29
基础安全检查
- 检查结果
- 无
- 收录来源
- curated:awesome-dsh-plugin.com, curated:awesome-dsh-plugin/awesome-dsh-plugin
- 主题标签
- ai-tool, coding-assistant, context-management, context-window, context-windows, deepseek-harness, deepseek-plugin, dsh-plugin, litellm, llm, local-llm, mcp, ollama, openai-api