dsh-plugin-mcp-switch

按需开关 MCP,按会话隔离:MCP 默认全部断开,工具 schema 不占上下文;agent 在对话里用 mcp_switch_on 打开后,只有该会话(及其子智能体)看得见工具,其他进行中的对话不受影响。关闭同样对称——一个对话关掉不会断掉别人在用的连接,最后一个拥有者关闭才真正断开。归属跨重启保留,超重服务器(>10 万 tokens)需二次确认,设置面板展示连接状态、上下文成本、每个服务器的会话可见范围、隔离与桥健康度、启动策略和分组预设。含 24 项自动化测试。它的 HTTP 路由没有 DSH 的访问检查,浏览器里打开的网页可以调用它们。

插件介绍

按需开关 MCP,按会话隔离:MCP 默认全部断开,工具 schema 不占上下文;agent 在对话里用 mcp_switch_on 打开后,只有该会话(及其子智能体)看得见工具,其他进行中的对话不受影响。关闭同样对称——一个对话关掉不会断掉别人在用的连接,最后一个拥有者关闭才真正断开。归属跨重启保留,超重服务器(>10 万 tokens)需二次确认,设置面板展示连接状态、上下文成本、每个服务器的会话可见范围、隔离与桥健康度、启动策略和分组预设。含 24 项自动化测试。它的 HTTP 路由没有 DSH 的访问检查,浏览器里打开的网页可以调用它们。

安装方式

通过 npm 安装

dsh plugin --profile web add dsh-plugin-mcp-switch

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:yoyococo1234/dsh-plugin-mcp-switch

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.

版本兼容情况

兼容性待确认。可前往项目文档查看支持版本。