dsh-mcp-lazy
Lazy-loading router for MCP servers: auto-discovers compatible MCPs and keeps only a shared router in the tool catalog, revealing a server's schemas when a turn needs them and hiding them again at turn end, so many installed MCPs stop costing context on every request. Falls open to normal visibility on any uncertainty, and the original MCP keeps ownership of execution, permissions and process lifecycle. Also supports explicit lazy connections with warm reuse, bounded reconnection, stdio and Streamable HTTP.
MCP 懒加载路由:自动发现可接管的 MCP,冷态只在工具目录里留一个共享路由,某轮需要哪个服务器才展开它的工具 Schema、轮次结束再收起,让装了很多 MCP 不再每次请求都吃上下文。命名异常、重名或状态不确定的 MCP 不接管;出现任何不确定即恢复原工具可见性,执行、权限与进程生命周期仍归原 MCP。也支持显式的连接层懒加载,含连接保温、有限重连、stdio 与 Streamable HTTP。
How to install
dsh plugin add @yilinxiao/dsh-mcp-lazy About
DSH MCP Lazy(@yilinxiao/dsh-mcp-lazy) 这是一个给 DeepSeek Harness(DSH) 使用的插件。 一句话说明它的用途:**MCP 装得越多,模型每轮都要读取的工具说明就越多;这个插件会先把暂时用不到的工具说明藏起来,需要时再加载,从而减少 Token 消耗。** 当前版本:0.5.1 它解决了什么问题 假设你在 DSH 里装了文件、浏览器、数据库等多个 MCP。即使当前问题只需要文件工具,所有 MCP 的工具名称、说明和参数也可能一起进入模型上下文,白白占用 Token。 安装本插件后: 1. 新会话开始时,兼容 MCP 的大量工具不会全部出现。在这些被接管的 MCP 工具中,模型只会看到一个路由工具:mcp__router__search_and_activate。 2. 当任务需要某个 MCP 时,路由工具会找到它,并只向当前会话显示这个 MCP 的工具。 3. 当前轮结束后,这些工具会再次隐藏,下一轮不用重复携带。 4. 其他会话不会继承本会话已经加载的工具。 这个过程叫做 **Schema 按需披露**。这里的 Schema 可以简单理解为“模型调用工具前必须阅读的工具说明书”。 普通 DSH 工具不会被隐藏。不符合要求、无法安全接管的 MCP 也会保持原样,因此不会为了节省 Token 影响工具使用。 安装 sh dsh p…
Recommendation signals
Meta
- License
- MIT
- Language
- JavaScript
- GitHub stars
- 1
- mo. downloads
- 255
- Last push
- 2026-08-20
- Created
- 2026-08-18
Basic safety check
- Findings
- None
- Sources
- curated:awesome-dsh-plugin.com, curated:awesome-dsh-plugin/awesome-dsh-plugin
- Topics
- dsh-plugin
Related plugins
openclaw
openclaw/openclaw
Your own personal AI assistant. Any OS. Any Platform. The lobster way. 🦞
Figma-Context-MCP
GLips/Figma-Context-MCP
MCP server to provide Figma layout information to AI coding agents like Cursor
mobile-mcp
mobile-next/mobile-mcp
Model Context Protocol Server for Mobile Automation and Scraping (iOS, Android, Emulators, Simulators and Real Devices)