dsh-mcp-manager: Manage MCP services inside DSH without restarting the host

Introduction

When integrating Model Context Protocol (MCP) services into DeepSeek Harness (DSH), the common practice is to write each MCP server into the harness’s composition configuration. Changing a server often means modifying the configuration and restarting the host process, resulting in high costs when debugging transports, command-line arguments, or remote URLs.

@zhengjunyao/dsh-mcp-manager (GitHub: zhengjy01/dsh-mcp-manager) consolidates “which MCP servers currently exist” into a single JSON configuration file. It provides add, delete, modify, enable/disable, and connectivity testing capabilities within the Web settings page and Agent tools. Connection and disconnection occur at runtime, and the documentation explicitly states that no DSH restart is required throughout the process.

What is this

Maintainer: zhengjy01. npm package name: @zhengjunyao/dsh-mcp-manager. Current version: 0.1.2 (see repository package.json). License: MIT. In terms of classification, it belongs to the Workflow category of plugins in the DSH community directory. The directory page is independent of DeepSeek / Hithink RoyalFlush and is not an official app store.

Plugin Positioning: MCP server manager for DeepSeek Harness — Manages MCP servers using stdio and Streamable HTTP transports via the Web GUI and the Agent side. It mounts and unmounts servers at runtime. It does not implement the MCP protocol itself but drives the @deepseek-ai/dsh-mcp-client bridge provided by the harness.

Runtime Environment Requirements (from source material):

  • DSH >= 0.1.5-rc.1
  • Node ^22.19.0 || >=24.0.0

Core Features

Below are the capabilities explicitly listed for the plugin in the source material.

Web Side: “MCP Management” Card

After refreshing the Web GUI, locate the MCP Management card in the left Settings panel. The card provides a master switch, a server list, and a phase indicator for each server (e.g., active / starting / waiting / error / stopped; interface text also uses status descriptions like ● connected / ◌ no tools / ✖ failed / ○ not loaded).

For a single server, you can Add / Edit / Enable / Test / Remove. When adding, you must specify a name (which becomes the tool prefix mcp__<name>__), transport type, and for stdio: command / args / env / cwd, or for Streamable HTTP: url / headers. After saving, the server should appear immediately in the list; on success, the badge changes from starting to active, while failures stop at error and display the reason. Test performs an actual connection; it can also test draft configurations that haven’t been written to disk yet, avoiding typos from being persisted.

Agent Tools: mcp_manager_*

Management capabilities equivalent to the Web card can be invoked via Agent tools:

  • mcp_manager_status
  • mcp_manager_list
  • mcp_manager_add
  • mcp_manager_update
  • mcp_manager_remove (preview by default, requires confirm: true to execute)
  • mcp_manager_test
  • mcp_manager_import
  • mcp_manager_reload

Tools exposed by each MCP server are named mcp__<serverName>__<toolName> within the session. When a server is disabled or removed, its tools are immediately unregistered without requiring a DSH restart.

Two Transport Types

  1. stdio: Local subprocess, configured with command, args, env, cwd.
  2. Streamable HTTP: Remote endpoint, configured with url, headers.

Two-Layer Switches

Switch Location Effect when off
installation profile bundle (line where cordis.patch.yml resides) Plugin is not mounted: no tools, no panel
runtime Config file or disable on the panel All MCP servers disconnect, all mcp__* tools unregister; panel and mcp_manager_* remain available for reopening

Installation and Activation

The documentation emphasizes: No DSH restart is required at any step. After adding the plugin to the profile, the host will automatically reload the plugin tree (since dsh.profile.patchReload is not set here, it uses live reload); you only need to refresh your browser to see the panel.

  1. Install the plugin (official command):
dsh plugin --profile web add @zhengjunyao/dsh-mcp-manager
# From local checkout: dsh plugin --profile web add link:/path/to/dsh-mcp-manager

Expected result: + @zhengjunyao/dsh-mcp-manager appears at the end of the command, and the profile’s dependencies and load list both include the package.

  1. Open Settings → MCP Management and confirm that the master switch, list, and phase badges for each server are visible.

Typical Usage

Add and Verify Tool Registration

Click Add in the card, fill in the name and transport-related fields, then save. You can verify via the server’s tool count, expanded tool names, or by asking the Agent to call mcp_manager_list: ensure tool count > 0, and names follow the pattern mcp__<name>__<tool>, which the Agent can call immediately.

Optional: Probe Connectivity

Click Test on a specific server, or call mcp_manager_test. Success returns a success message; failure indicates the reason (e.g., command not found, port closed, authentication failure, etc.).

Configuration File

Default path: $DSH_HOME/dsh-mcp-manager.json (defaults to ~/.dsh/dsh-mcp-manager.json, permission mode 0600). Respects the DSH_HOME environment variable. After manually editing the JSON, perform a reload config in the panel.

Example structure (excerpt from README):

{
  "version": 1,
  "config": { "enabled": true, "announceToAgent": true },
  "servers": [
    {
      "name": "garmin",
      "transport": "stdio",
      "enabled": true,
      "command": "/opt/homebrew/bin/uvx",
      "args": ["garmin-mcp"],
      "env": {}, "cwd": "",
      "url": "", "headers": {},
      "toolCallTimeoutMs": 60000,
      "reconnect": {}
    }
  ]
}

name must match [A-Za-z0-9_-]{1,32} (consistent with the harness bridge). The example above publishes mcp__garmin__<tool>.

Use Cases and Notes

Target Audience: Developers who frequently add, remove, switch, or debug MCP servers (local stdio or remote HTTP) within DSH Web sessions; scenarios where the Agent needs to automate the same configuration via mcp_manager_*.

Permissions and Security: MCP servers start with the user and permissions of the current DSH process (stdio executes the command you configured). Before installing the plugin, please read the repository source code and the MIT license, and independently assess the MCP packages and remote URLs you intend to connect to. The configuration file may contain sensitive information such as environment variables and Headers. The default 0600 permission only mitigates accidental reading risks and cannot replace the review of commands and URLs.

Design Notes (for Troubleshooting): The plugin uses a “resolution ladder” to prioritize the @deepseek-ai/dsh-mcp-client bundled with the running harness, avoiding inconsistencies between the plugin’s bundled client version and the host. The implementation does not call tools.restrict() for batch reconciling but relies on the bridge to register and unregister tools upon connection/disconnection. This avoids excessive overhead on the host event loop in scenarios with a high number of tools (the README contains a comparison with the old implementation).

Community Information: GitHub Repository zhengjy01/dsh-mcp-manager; Plugin Directory Page skillhub.cn/plugins/zhengjy01/dsh-mcp-manager. The DSH ecosystem philosophy is “Everything is a plugin”; SkillHub is a community directory and has no official affiliation with DeepSeek / Hithink RoyalFlush.

Conclusion

If your pain point is “Changing MCP requires restarting DSH,” you can hand over the server list to dsh-mcp-manager: Web MCP Management and mcp_manager_* tools unify the management of stdio / Streamable HTTP. Tools enter the current session as mcp__<server>__<tool>, and disabling them unloads them immediately. See the installation command above; details are subject to the README and the repository.

  • Directory Page: https://www.skillhub.cn/plugins/zhengjy01/dsh-mcp-manager
  • GitHub: https://github.com/zhengjy01/dsh-mcp-manager
羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye