LongSir0419/dsh-mcp-manager 预览 preview

LongSir0419/dsh-mcp-manager

插件Plugin ⭐ 3 MIT 其他Other

An MCP server management plugin for DeepSeek Harness (DSH) — visually view, add, edit and remove MCP servers in the Web settings, with built-in connection testing.

catalog 简介 / catalog descriptioncatalog description:DeepSeek Harness (DSH) 的 MCP 服务器管理插件——在 Web 设置里可视化查看、新增、编辑、删除 MCP 服务器,并支持主动连接测试。

项目介绍Project Overview

DSH 插件 dsh-mcp-manager 用于在 DeepSeek Harness Web 设置中可视化地查看、新增、编辑和删除 MCP 服务器,并内置连接测试功能。在「设置 → MCP Manager」中可看到每台服务器的状态指示灯与已注册工具数,点击行即可展开配置 JSON、测试握手、启停切换或删除;新增通过内联表单完成,配置写入 cordis.patch.yml。适用于需要集中管理多个 MCP 端点的开发者。注意:变更需重启 dsh web 后生效,stdio 模式测试 IDE 进程较慢。

dsh-mcp-manager is a DSH plugin that provides a visual interface in DeepSeek Harness Web settings for listing, adding, editing, and removing MCP servers, with a built-in connection test. From Settings → MCP Manager, each server row shows its status dot and registered tool count; click to expand the config JSON, run a handshake test, toggle enable/disable, or delete. Configurations are written to cordis.patch.yml. Use it when you need to centrally manage multiple MCP endpoints. Note: changes take effect only after restarting dsh web, and stdio-mode tests of IDE processes can be slow.

或使用命令行安装(适合开发者)Or use CLI install (for developers)

命令行安装CLI Install

dsh plugin --profile web add @wanghailong0419/dsh-mcp-manager

LongSir0419/dsh-mcp-manager 加入你的 DSH 配置(web profile)即可启用。

READMEREADME

dsh-mcp-manager

English | 中文

An MCP server management plugin for DeepSeek Harness (DSH) — visually view, add, edit and remove MCP servers in the Web settings, with built-in connection testing.

npm npm downloads License: MIT

preview

Features

  • List overview: go to Settings → "MCP Manager", each server shows connection status (green dot) + registered tool count
  • Click to expand / collapse: click anywhere on a row to expand details (Server name / module / config JSON), click again to collapse (input fields and buttons excluded)
  • Add / edit / delete / enable-disable: inline form to configure MCP servers (serverName, module, config JSON), enable/disable toggle, writes to $DSH_HOME/profiles/web/cordis.patch.yml
  • Connection test: independent MCP handshake (initialize + tools/list) to verify reachability, tool count and latency
  • Cache optimization: re-entering the page is instant (stale-while-revalidate); unconnected servers are verified in the background automatically; add/edit/delete updates state locally without flicker

Architecture

A single-package, two-half DSH bundle:

Half Entry Role
Host lib/index.js mcpInventory Remote service: list/add/update/removeServer/test, reads/writes cordis.patch.yml, counts tools
Client lib/client.js "MCP Servers" section in the settings panel (dsh.client bundle, auto-discovered by client-modules)

The package declares itself via dsh.bundle.patch (cordis.patch.yml) and is auto-mounted after dsh plugin installs it.

Installation

Prerequisites

  • DeepSeek Harness (dsh) installed
  • Web profile (dsh web) available

Install (published on npm)

dsh plugin --profile web add @wanghailong0419/dsh-mcp-manager
dsh web   # restart to take effect

npm package: https://www.npmjs.com/package/@wanghailong0419/dsh-mcp-manager

Local development / unpublished version (file source)

dsh plugin --profile web add file:/path/to/dsh-mcp-manager/bundle
dsh web

Upgrade / Remove

dsh plugin --profile web update @wanghailong0419/dsh-mcp-manager
dsh plugin --profile web remove @wanghailong0419/dsh-mcp-manager

dsh plugin add automatically adds the package to the dsh.profile.bundles layer (it detects the dsh.bundle declaration) — no manual config editing needed.

Usage

  1. Start dsh web, open Settings → MCP Manager
  2. Each server row shows: name, status dot (green/red), tool count
  3. Click a row to expand: view Server name / module / config JSON, test connection, edit, delete
  4. Add: click "Add", fill in serverName / module / config JSON inline
  5. Enable/disable: toggle the switch on the right side of the row

Changes are written to cordis.patch.yml and take effect after restarting dsh web (HMR is disabled in web mode).

Configuration Example

- id: mcp-example
  name: '@deepseek-ai/dsh-mcp-client'
  config:
    serverName: example
    transport: stdio
    command: npx
    args: ['-y', '@modelcontextprotocol/server-xxx']
    env:
      TOKEN: !!js process.env.MY_TOKEN

Known Limitations

  • Host service requires the tools service: toolCount depends on DSH's tool registry
  • Testing idea/pycharm: stdioMcpServer mode launches the IDE process once more, which takes longer

Icon Notes

The "MCP Servers" icon in the settings panel's left navigation is patched automatically when the plugin activates (injects an MCP logo branch into the official dsh-client-ui-settings-general navIcon; idempotent and fails silently). If DSH upgrades overwrite the official package, the patch is re-applied automatically on next startup — no manual action needed.

Upgrade note: if you're upgrading from an earlier manual installation, remove the manually added mcp-inventory / ui-settings-mcp entries from cordis.patch.yml first (the bundle provides them automatically; duplicates cause service conflicts). Fresh installs can ignore this.

License

MIT

上一个 Prev liuli-theme 下一个 Next luxueliu-usage-command