Preface¶
When integrating MCP into DeepSeek Harness (DSH), the common approach involves modifying cordis.patch.yml or patches under the profile: manually writing - id: lines, verifying transport and credentials, and confirming whether @deepseek-ai/dsh-mcp-client loaded successfully afterwards. As the number of lines grows, enabling/disabling, changing URLs, checking for duplicates, and resolving ID conflicts can easily become scattered across multiple files.
@yiyunet/dsh-mcp-client-manager is a community-maintained DSH plugin (MIT, maintained by yiyunet). It provides an “MCP Clients” panel in Settings → Sidebar: it lists, adds, rewrites, enables/disables, and deletes MCP server lines attached under dsh-mcp-client; changes are written to disk only upon saving, and usually do not require restarting the host. The package is published on npm, current version 1.0.4, with zero build steps and zero runtime dependencies (host side: node:* + ctx; browser side: official module-loader).
What is this¶
In one sentence: An MCP client management panel within DSH Settings that writes managed lines into its own layer in $DSH_HOME, routes handwritten lines through the official DSH configuration editor and plugin management channels, and ensures credential-type fields are not sent back to the browser by design.
It is categorized as a Client type plugin; capability boundaries and known limitations are subject to the GitHub README. Do not assume behaviors not promised in the documentation.
Core Features¶
Panel Capabilities¶
- List current MCP lines: Service Name, Line ID, Source (Managed / Handwritten), Status, and Actions.
- Add / Rewrite / Enable/Disable / Delete managed lines (line ID prefix
mcpx-). - Handwritten lines (e.g., lines under
insertin profile patches): Can modify credential-family fields and enable/disable; Cannot delete, cannot changeserverName/transport; the panel provides “Undo Override” to restore official override lines. - Pre-save validation: Duplicate check for
serverName, three-level conflict detection for managed IDs (to avoid the officialunaddressablestatus). - Status column: Plain language based on line stage and tool count (Enabled, Disabled, Load Failed, etc.); No protocol-level probing is performed, and it does not represent remote service health.
Write-to-Disk Model (Two Layers, Two Paths)¶
| Layer | File | Writer | Purpose |
|---|---|---|---|
| Source of Truth (Managed List) | $DSH_HOME/mcp-manager/servers.json |
This Plugin | The list managed by the panel (includes url / env etc., permission 0600) |
| Generated Artifact (Own Layer) | $DSH_HOME/cordis.patch.yml |
This Plugin (Full Rewrite) | Renders managed MCP lines; the home layer is within the HMR scope → Instant Hot Reload upon Disk Write |
| Handwritten Layer | profiles/<profile>/cordis.patch.yml |
Manual / Official Config Editor | Managed lines added/deleted by the panel are NOT here; rewriting and enabling/disabling handwritten lines goes through ctx.configEditor / ctx.pluginManager |
A commonly asked point: Lines added/deleted by the panel are written to $DSH_HOME/cordis.patch.yml ($DSH_HOME is the DSH data root, e.g., %USERPROFILE%\.dsh), not in profiles\<profile>\cordis.patch.yml. The panel top displays symbolic paths (e.g., $DSH_HOME\…), excluding absolute paths with usernames.
Security Stance (Design Hard Constraints)¶
- url is never sent back to the browser: The list only displays
protocol//host/…, excluding path, query string, or key fragments. - env values for stdio are never sent back: Only key names and “Set” status are returned.
- Leaving credential-family fields blank = Retain original value; to change them, the entire
url,command,envsection must be refilled. - Secrets remain on the host process side; panel RPC payloads are asserted via self-tests to ensure url and env values are not transmitted back.
Installation & Activation¶
When published on npm, the most convenient command provided in the README is:
dsh plugin --profile web add @yiyunet/dsh-mcp-client-manager
Other methods (pick one):
Local Directory (Sidebar Plugins → Add Plugin, paste the absolute path of the repo directory, or use CLI):
dsh plugin --profile web add "<Absolute Path to Repo>"
GitHub Source (README notes availability depends on package manager and dsh plugin resolution of git specifiers; if it fails, switch to local directory):
dsh plugin --profile web add github:yiyunet/dsh-mcp-client-manager
This package has no prepare / build scripts, so git source installation will not trigger “build script approval”. If the profile has patchReload: live and bundles are within the HMR scope, restart is usually not needed; if “MCP Clients” does not appear in settings, restart the host once.
Runtime Environment: package.json requires Node >= 22.19.
Typical Usage & Verification¶
After installation, perform a smoke test according to the README’s “Effective & Verification” table:
- Open Settings → Sidebar, “MCP Clients” should appear.
- Open the panel: Handwritten lines show Source as “Handwritten”, Status as “Enabled” or “Enabled · No Tools Found”; endpoints/commands are visible in the “Modify” form and hover tooltips; the table has 5 columns.
- Add an HTTP or stdio line → Save:
$DSH_HOME/cordis.patch.ymlappears, andmcpx-*is added to the list; MCP tools become available after mounting. - Change a handwritten line url → Save: Source changes to “Handwritten + Overridden”; a top-level override line is appended to the end of
profiles/web/cordis.patch.yml(official behavior), the originalinsertline remains unchanged. - Undo Override: The override line is removed, and the value returns to the original
insertvalue. - Delete managed line: The line disappears from the own layer; handwritten lines have no delete button.
- If
$DSH_HOME/cordis.patch.ymlis manually corrupted causing Drift: The panel turns read-only and provides disposal options like rebuilding / clearing the list.
Read-only configuration verification (output may contain keys, do not leak):
dsh --profile web --dump-config
Use Cases & Notes¶
Who it’s for: Developers already using dsh-mcp-client in the DSH Web profile, who want to manage multiple MCP lines via GUI, and need to distinguish between “Plugin Managed Lines” and “Handwritten Lines in Profiles”.
Please be aware before use:
- The plugin runs with current DSH process privileges; please review the Source Code & MIT License before installation.
- If a handwritten line has been overridden by the panel, directly modifying the
insertwill not work; you must “Undo Override” first. - The status column only reflects loading and tool discovery; tools may still be listed during disconnection/reconnection, but calls will fail (established behavior of mcp-client).
- Uninstall CLI:
dsh plugin --profile web remove "@yiyunet/dsh-mcp-client-manager"; managed layer files and themcp-managerdirectory need to be cleaned up manually according to the README “Rollback” section; handwritten lines are not affected.
The community plugin directory SkillHub Entry and the GitHub repository are independently indexed; the DSH ecosystem is “Everything is a Plugin”, and the directory site has no official affiliation with DeepSeek / High-Flyer.
Conclusion¶
dsh-mcp-client-manager consolidates the daily operation of MCP lines into a single table in Settings → MCP Clients: Managed lines go through the $DSH_HOME own layer with hot reload, while handwritten lines go through the official editing channel with boundaries strictly defined in the documentation. To compare the write-back paths and RPC details item by item, please refer to docs/架构与写回模型.md in the repository.
- Directory Page: https://www.skillhub.cn/plugins/yiyunet/dsh-mcp-client-manager
- GitHub: https://github.com/yiyunet/dsh-mcp-client-manager
- npm:
@yiyunet/dsh-mcp-client-manager