dsh-mcp-lazy

MCP 懒加载路由:自动发现可接管的 MCP,冷态只在工具目录里留一个共享路由,某轮需要哪个服务器才展开它的工具 Schema、轮次结束再收起,让装了很多 MCP 不再每次请求都吃上下文。命名异常、重名或状态不确定的 MCP 不接管;出现任何不确定即恢复原工具可见性,执行、权限与进程生命周期仍归原 MCP。也支持显式的连接层懒加载,含连接保温、有限重连、stdio 与 Streamable HTTP。

插件介绍

MCP 懒加载路由:自动发现可接管的 MCP,冷态只在工具目录里留一个共享路由,某轮需要哪个服务器才展开它的工具 Schema、轮次结束再收起,让装了很多 MCP 不再每次请求都吃上下文。命名异常、重名或状态不确定的 MCP 不接管;出现任何不确定即恢复原工具可见性,执行、权限与进程生命周期仍归原 MCP。也支持显式的连接层懒加载,含连接保温、有限重连、stdio 与 Streamable HTTP。

安装方式

通过 npm 安装

dsh plugin --profile web add @yilinxiao/dsh-mcp-lazy

Resolves a published tarball rather than cloning the repository, and installs without any extra setup. Swap `web` for your profile name if you run another one.

从 GitHub 安装

dsh plugin --profile web add github:leaforbook/dsh-mcp-lazy

Installing from GitHub runs the project's build script, which pnpm blocks until you allowlist it — run the command once and pnpm prints the exact key to add under `allowBuilds` in ~/.dsh/profiles/web/pnpm-workspace.yaml.

版本兼容情况

第三方安装实测

安装测试结果
测试版本不兼容
实测 Harness 版本
0.2.2-rc.1
实测插件版本
未记录
测试日期

版本回退

回退测试结果
未找到回退版本
查看依赖版本范围
@deepseek-ai/dsh-subprocess
^0.1.0-rc.6
@deepseek-ai/dsh-tools
^0.1.0-rc.6