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 明确警示用户不要在其中存放长期有效密钥。

Pre-install check安装前体检Compatibility · Security兼容性 · 安全性 2 warnings2 项注意
  • 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-plugin-mcp-manager card

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 →

← 上一个 Prev dsh-plugin-offline-packager 下一个 Next dsh-voice →