HuanLinOTO/dsh-plugin-mcp-manager
MCP服务器管理面板:GUI增删改MCP服务器配置(写入cordis.patch.yml + HMR实时挂载)+ 工具浏览 + agent侧mcp_*管理工具
Project Overview项目介绍
This is a native plugin built exclusively for DeepSeek Harness (DSH) that enables management of Model Context Protocol (MCP) servers within the DSH ecosystem. It adds a dedicated GUI section in DSH settings for users to add, edit, and remove MCP server configurations, browse all available MCP tools, and exposes five agent-facing mcp_* management tools that the DSH agent can call directly. Unlike the official MCP client that handles active connections to MCP servers, this plugin only acts as a configuration and UI layer, delegating all connection lifecycle management to the official @deepseek-ai/dsh-mcp-client package.
All MCP server configurations are stored as individual insert entries in the user's profile cordis.patch.yml file, which aligns perfectly with DSH's existing patch loading system. The plugin supports hot module replacement for configurations, so any changes to MCP servers are applied immediately without requiring a full restart of the DSH web service. A key user-facing feature is the clear distinction between disabling and deleting a server: disabling a server only adds a top-level disabled field to the entry, leaving the full configuration intact for easy re-enabling later.
The project uses pnpm for dependency installation and management, and the only runtime dependency is the popular eemeli/yaml library for parsing and modifying YAML configuration files. To install the plugin, users run the DSH CLI command dsh plugin --profile web add "github:dsh-external/dsh-mcp-manager", then must restart DSH web service and hard refresh the browser to load the new plugin. A critical security caveat is that all environment variables and request headers are currently stored in plaintext in the configuration YAML, so the README explicitly warns users against storing long-term sensitive secrets in plain configuration.
这是一个专为 DeepSeek Harness (DSH) 开发的原生插件,功能是管理 DSH 中的 MCP 服务器。它提供图形界面让用户增删改 MCP 服务器配置,同时支持工具浏览,还提供了供智能体调用的 mcp_* 系列管理工具。本插件是 MCP 注册表的配置写入层和状态工具浏览层,MCP 服务器连接的全生命周期都交由官方 @deepseek-ai/dsh-mcp-client 处理,插件本身不建立连接。
每台 MCP 服务器的配置都以 insert 条目的形式存储在 profile 的 cordis.patch.yml 文件中,插件支持配置热更新实时挂载卸载,修改配置后无需重启 DSH 网页服务。插件区分了禁用和删除操作:禁用仅会在配置条目层级添加 disabled 字段,保留原有配置不变,适合需要暂时禁止模型访问某台 MCP 服务器、又不想丢失配置信息的 DSH 用户使用。
本项目使用 pnpm 进行依赖管理,运行时仅依赖 eemeli/yaml 工具库。需要通过 DSH 插件 CLI 命令安装,安装后需要重启 DSH web 服务并在浏览器硬刷新页面才能生效。需要注意的是,当前配置文件中的环境变量和请求头以明文存储,README 明确警示用户不要在其中存放长期有效密钥。
请帮我安装这个 DSH 插件。安装前先完成【兼容性检查 + 安全性检查】,检查通过再动手。
插件:dsh-plugin-mcp-manager(HuanLinOTO/dsh-plugin-mcp-manager)
仓库:https://github.com/HuanLinOTO/dsh-plugin-mcp-manager
本站详情页:https://www.yhbd.top/plugins/huanlinoto-dsh-plugin-mcp-manager/
本站登记:类型 plugin · 归类 原生 DSH 插件 · 许可证未声明 · ⭐ 4 · 最近提交 2026-09-30 · 主语言 TypeScript
按下面顺序执行,每步先把结论告诉我,再进入下一步:
【1 兼容性检查】
① 我这边:DSH 版本、Node 版本、操作系统、当前 profile(web / desktop)。
② 读它的 README、package.json、插件 manifest,列出它要求的 DSH 版本 / Node 版本 / 操作系统 / 外部依赖 / 需要另外先装的运行时。
③ 逐条比对,结论只写「满足 / 不满足 / 未知」三种;不满足的给出可行替代方案。
④ 检查是否和我已装的插件冲突:命令名重复、skill / tool 重名、端口占用、重复注册的 MCP server。
【2 安全性检查】
① 仓库可信度:和上面「本站登记」是否一致;star / fork 数、创建时间、最近提交,是否归档或长期停更。
② 安装脚本:逐行看 package.json 的 preinstall / install / postinstall,以及 install.sh、setup.ps1 之类脚本。出现 curl|bash、下载后直接执行、混淆代码、访问与插件功能无关的域名,立刻停下来告诉我,不要继续装。
③ 依赖:列出新增依赖,标出无人维护、或与知名包拼写近似的可疑包(typosquatting)。
④ 权限与副作用:它会读写哪些目录、访问哪些域名、需要哪些 DSH 权限(filesystem / network / shell / clipboard 等),以及怎么卸载和回滚。
⑤ 如果它要求 sudo / 管理员权限,或权限明显超出功能所需,先停下来问我。
【3 安装】
上面两步没有「不满足」和「高危项」时才执行;用官方推荐方式安装,不要自行提权。
【4 汇报】
用表格输出:检查项 / 结论 / 依据 / 是否需要我决策。拿不准的一律写「未知」并说明要我怎么确认——不要猜,也不要替我决定。
Send this message to DSH in your current session: it verifies compatibility and security first (answering met / not met / unknown item by item) and only installs once everything checks out — it will stop and ask you if it finds a high-risk item. The box scrolls; the copy is the full prompt. CLI install commands may not be accurate across systems, so DSH is the safer route.把上面这条消息直接发给当前会话里的 DSH:它会先核对兼容性与安全性(逐条给「满足 / 不满足 / 未知」),确认没问题再安装,有高危项会停下来问你。框内可滚动,复制到的是完整提示词;安装命令不一定准确,发给 DSH 更稳。
- No license declared - all rights reserved by default; ask the author before commercial use or redistribution未声明开源许可证 —— 默认「保留所有权利」,商用或再分发前先问作者
- Only 4 stars - very few users, little community feedback星标只有 4,几乎没人在用,遇到问题缺少社区反馈
DSH walks through these 9 checksDSH 会逐条核对这 9 项
Compatibility兼容性
- DSH, Node, OS and profile requirementsDSH 版本 / Node 版本 / 操作系统 / profile 是否满足要求
- External dependencies and runtimes (Electron / Python / Docker, ...)外部依赖与运行时(Electron / Python / Docker 等)是否齐备
- Conflicts with installed plugins: command names, skill / tool names, ports, duplicate MCP registration与已装插件是否冲突:命令名、skill / tool 重名、端口占用、重复 MCP 注册
Security安全性
- Repo matches the facts registered here; archived or abandoned?仓库是否与页面登记一致,是否归档或长期停更
- Safety of preinstall / install / postinstall and install.sh / setup.ps1preinstall / install / postinstall 与 install.sh、setup.ps1 是否安全
- curl|bash, download-then-execute, obfuscation, unrelated domains → stop immediatelycurl|bash、下载即执行、混淆代码、无关域名 → 立刻停止
- Typosquatting or unmaintained packages among the new dependencies新增依赖里有没有 typosquatting 或无人维护的包
- Requested permissions vs. what the feature actually needs申请了哪些权限、是否超出功能所需(filesystem / network / shell / clipboard)
- Any sudo / admin requirement, plus uninstall and rollback是否要求 sudo / 管理员权限,以及卸载与回滚方式
Anything uncertain must be marked unknown with a note on how to confirm it. This site's signal screen is a static snapshot, not a security audit.拿不准的必须标「未知」并说明要我怎么确认。本站的信号筛查是静态快照,不能替代安全审计。
Or use CLI install (for developers)或使用命令行安装(适合开发者)
CLI Install命令行安装
dsh plugin --profile web add "github:dsh-external/dsh-mcp-manager"
把 HuanLinOTO/dsh-plugin-mcp-manager 加入你的 DSH 配置(web profile)即可启用。
READMEREADME
dsh-mcp-manager
DSH MCP 服务器管理插件 — GUI 增删改 MCP 服务器配置 + 工具浏览 + agent 面
mcp_*管理工具。
定位
服务器连接管理 + 工具浏览。连接生命周期完全委托官方 @deepseek-ai/dsh-mcp-client——
本插件是注册表的「写配置层」+「状态/工具浏览层」,不自己拉连接。
GUI(Plugins 页「dsh-mcp-manager」行配置卡片) ──HTTP──> /api/mcp-manager ──读写──> profile cordis.patch.yml
Agent 面 mcp_* 工具 ─────────────────────────────┘ (mcp-client insert 行)
│ 配置 HMR 实时挂载
▼
官方 mcp-client 实例(连接+注册工具)
GUI 状态/工具浏览 <──ctx.tools.schemas() 过滤 mcp__──┘
每台 MCP 服务器 = profile cordis.patch.yml 中一条 name: '@deepseek-ai/dsh-mcp-client' 的
insert 行。配置 HMR 实时挂载/卸载/热替换,无需重启 web。
禁用 ≠ 删除:禁用写入 entry-level disabled: true(与 id/name/config 同级),
loader 跳过挂载该 mcp-client 实例 → 工具不注册(模型不可见),config 原样保留在 patch
文件中。重新启用只需移除该字段,loader HMR 重新挂载。适合「暂时不让模型用某台服务器」
而不丢失配置。
开发
依赖
pnpm install
@deepseek-ai/* peer deps 从公共 npm registry 解析(已发布)。yaml(eemeli)是唯一运行时依赖。
三件套
pnpm typecheck # tsc --noEmit(src/ + tests/ 全量;client 包类型经 paths 直指 dsh checkout 的 lib/types)
pnpm test # vitest run(registry + locales + row-key 单元测试)
pnpm build # tsdown 双 bundle:lib/index.mjs(Node half)+ lib/index.js(client half)
架构
| 文件 | 职责 |
|---|---|
src/registry.ts |
服务器注册表:eemeli yaml Document API 读写 insert 行 + loadOverlayPatches 校验 + serverName 唯一 + entry-level disabled 字段 |
src/tools.ts |
agent 面 mcp_* ×5 工具(defineTool,规范 JSON 输出) |
src/index.ts |
Node half:/api/mcp-manager 路由 + ctx.tools.schemas() 过滤 + mcp 工具注册 |
src/client/index.ts |
client half:plugins.row.config 注册 Plugins 页「dsh-mcp-manager」行配置卡片(key @huanlin/dsh-plugin-mcp-manager#dsh-mcp-manager,由 row-key.ts 常量派生) |
src/client/row-key.ts |
行配置 key 常量:包名 # 行 id 三方一致性(cordis.patch.yml 行 id / package.json 包名 / ROW_KEY),tests/row-key.spec.ts 守卫 |
src/client/Panel.tsx |
卡片 UI:summary 一行简介 + page 完整面板(服务器列表 + 增删改表单(内联卡片下方)+ 禁用/启用 + 工具浏览) |
Showing the opening section of the README — the full document lives in the repository以上为 README 开头摘要,完整文档在仓库内 · View the full README on GitHub →在 GitHub 查看完整 README →
Ycet/dsh-my-plugins