Introduction¶
When integrating MCP into DeepSeek Harness (DSH), the configuration ultimately resides in the cordis.patch.yml file under the current profile directory. The entry must be a structure named @deepseek-ai/dsh-mcp-client located within a - insert: block. serverName has charset and uniqueness constraints; incorrect structure or indentation can cause DSH to fail immediately during startup. After manually editing the file, it is also difficult to immediately verify if the process has successfully loaded the configuration.
The following section introduces the community plugin dsh-mcp-manager (Maintainer: ZnonEn, Category: Client). It adds a Settings → MCP Servers page to the DSH desktop settings. It provides forms for listing, adding, deleting, editing, and toggling servers, while displaying actual runtime status. It reads and writes directly to the profile’s cordis.patch.yml, requiring zero npm dependencies on the host side.
What is this¶
dsh-mcp-manager is a standard form plugin for DSH: the host side registers HTTP routes and manipulates the patch file, while the client side renders the management interface in the settings. Once installed, it appears under Settings → MCP Servers (settings.section, order 12, located between “Models” and “Plugins”).
It solves three main problems: validating forms against the official schema, probing runtime status after writing to disk, and performing self-checks before and after writing with a full rollback on failure. This avoids scenarios like “the file is correct but the service didn’t start” or “the profile is corrupted and won’t start.”
- Directory Page: https://www.skillhub.cn/plugins/ZnonEn/dsh-mcp-manager
- Source Code: https://github.com/ZnonEn/dsh-mcp-manager
- License: MIT
- Version (package.json): 0.1.0
- Runtime Environment: Node ≥ 20
Core Features¶
List and Runtime Status¶
It reads all @deepseek-ai/dsh-mcp-client entries from the current profile’s cordis.patch.yml and displays a summary of fields such as transport method, command/url, environment variables, and timeout. Runtime status is determined by merging the actual results from pluginManager.listPlugins(), rather than guessing based on the file.
| UI Display | Meaning |
|---|---|
| Running | The entry is in the running tree and the fiber is active. |
| Loading | It has entered the running tree but is not ready yet. |
| Disabled | Marked as disabled in the file. |
| Load Failed | It is in the running tree but encountered a loading error (e.g., incorrect command path, handshake timeout). |
| Pending Restart | The entry exists in the file but not in the running tree yet. |
Add, Edit, Delete¶
- Add: Fill in
serverNameand transport method (stdio / streamable-http); for stdio, fill in command/args/env/cwd; for HTTP, fill in url/headers; advanced options include invocation timeout, startup failure strategy, and reconnection parameters. - Edit: The entry ID can be modified (this will rebuild the entry and clean up old lines);
serverNameis allowed to have the same name as the entry, but conflicts with others will be rejected. - Delete: Requires secondary confirmation; when deleting the last entry, it will clean up the
- insert:block or restore the[]of a newly created profile.
Enable and Disable¶
When the entry is already in the running tree, pluginManager.setPluginEnabled is called for immediate effect. The disabled state is written to the profile patch top-level override (- id: <entry_id> + disabled: true) and remains valid after restart.
Others¶
- View Config File: Displays the raw content of
cordis.patch.ymland the currently located profile in read-only mode within the settings page. - Refresh: Re-reads from disk and updates runtime status; after save/toggle/delete, it automatically reads back once after approximately 4 seconds to confirm if the change took effect. The page does not actively poll; external file changes require clicking refresh or reopening the page.
Installation and Activation¶
Method A: Command Line (Any profile, recommended)¶
Applicable to profiles not exclusively managed by the desktop. DSH restart is required after installation (bundle plugins are only loaded on the next startup).
dsh plugin add github:ZnonEn/dsh-mcp-manager
# Or pin a version
dsh plugin add github:ZnonEn/dsh-mcp-manager#v0.1.0
Uninstall:
dsh plugin remove dsh-mcp-manager
Uninstalling only removes the plugin and does not delete existing MCP server configurations.
Method B: DSH Desktop (Settings → Plugins)¶
Desktop profiles are managed exclusively by Electron; the command line will directly reject changes. For example:
$ dsh plugin --profile desktop add github:ZnonEn/dsh-mcp-manager
error: profile "desktop" is managed exclusively by the Electron application
You should paste the absolute path of the local directory after cloning the repository into the installation entry in Settings → Plugins. After installation, quit completely and restart DSH.
Typical Usage¶
- Confirm the plugin is installed in the current profile and DSH has been restarted.
- Open Settings → MCP Servers.
- Click “Add Server”, fill in the form according to the transport type, and save; the plugin will rewrite
cordis.patch.yml, and DSH will watch the file and hot-reload it (tested in README to take approximately 2–6 seconds). - Check if the status on the card is “Running”; if it is “Pending Restart”, you can wait for the hot reload or restart DSH.
- If you need to verify paths, use “View Config File” to confirm the profile located by the plugin and the file content.
The supported configuration fields align with the @deepseek-ai/dsh-mcp-client official schema (README notes alignment with the installed version 0.1.7-rc.2). For example, serverName is required, with the rule [A-Za-z0-9_-]{1,32}, unique within the profile, determining the tool prefix mcp__<serverName>__<tool>; unfilled fields are not written to the file and default values are used by the client package.
For scripting or secondary development, the host registers JSON interfaces, such as GET /mcp-manager/state (full status), GET /mcp-manager/raw (raw patch content), POST /mcp-manager/save, POST /mcp-manager/remove, POST /mcp-manager/toggle, POST /mcp-manager/refresh.
For troubleshooting, you can explicitly specify the profile (Windows example):
setx DSH_MCP_MANAGER_PROFILE "C:\Users\<you>\.dsh\profiles\desktop"
Or perform a read-only check in the repository directory:
node tools/inspect-patch.js
node tools/inspect-patch.js "C:\Users\<you>\.dsh\profiles\desktop\cordis.patch.yml"
Applicable Scenarios and Notes¶
Who it is for: Developers who frequently add or delete MCPs in DSH and want to avoid manually editing YAML; scenarios requiring distinguishing between “file written” and “process loaded” within the interface.
Security and Permissions: The plugin reads and writes cordis.patch.yml under the profile with the permissions of the current DSH process. You should review the source code and MIT license before installation to ensure compliance with your environment policies. Write operations include automatic backups (cordis.patch.yml.bak-mcp-manager-<timestamp>, keeping the latest 10 copies), atomic writes, and rollback on failure; it only modifies the target MCP entry line ranges, preserving other plugin entries, !!js, and comments as byte-for-byte as possible.
Known Limitations (from README):
- MCP entries written inside
insert:within- id: <group>will not appear in the list and cannot be edited by this plugin, but DSH will still load them. - It only manages the
cordis.patch.ymllayer of the profile and does not processcordis.ymlor other layers. - The YAML parser only covers common syntax in profile patches; it will refuse to parse and mark errors in the UI if it encounters unsupported structures like block scalars or anchors.
Ecosystem Note: The DSH community plugin directory (e.g., SkillHub) is an independent site and has no official affiliation with DeepSeek / High-Flyer; please evaluate the maintainer and code yourself before installing third-party plugins.
Conclusion¶
dsh-mcp-manager centralizes MCP declaration into the settings page: validation, writing, status probing, and rollback all in one pipeline, reducing the risks of manually modifying cordis.patch.yml. If you are already using the DSH desktop or CLI profile, you can install it via the command above or the desktop plugin page and use it in Settings → MCP Servers after restarting.
- Plugin Directory: https://www.skillhub.cn/plugins/ZnonEn/dsh-mcp-manager
- GitHub: https://github.com/ZnonEn/dsh-mcp-manager