Introduction¶
DeepSeek Harness (DSH) loads MCP servers via Cordis and profile configurations, with tool names prefixed as mcp__<serverName>__*. In daily development, modifying cordis.patch.yml, verifying stdio and HTTP parameters, or checking if a service failed to load often requires manually editing YAML and restarting or waiting for a reload. The following introduces the community plugin shinelon/dsh-mcp-plugin (package name @local/mcp-manager): it adds an “MCP Services” page to the Web settings panel, allowing listing, adding, editing, deleting, starting, and stopping MCPs under the current profile. Changes are written to ~/.dsh/profiles/web/cordis.patch.yml and hot-reloaded via HMR, meaning most operations do not require restarting DSH.
What is this¶
dsh-mcp-plugin is a dual-sided Web plugin for DSH: the browser side injects the “MCP Services” page into the settings area, while the host side provides loopback HTTP routes and patch document editing logic. It is maintained by shinelon. Source code and documentation are available at the GitHub repository, and the community catalog page is at skillhub.cn/plugins/shinelon/dsh-mcp-plugin. The license is MIT; the version in package.json is 1.0.0, requiring Node >=22 and DSH >=0.1.7-rc.2.
Core Features¶
Listing and Status¶
The list displays each server’s serverName, transport type (local process / HTTP), target, enabled status, and runtime status from the loader fiber: Running, Loading, Waiting, Failed, Disabled. Failed rows display an error summary.
Add and Edit¶
Adding uses a guided form:
- stdio:
command,args,env,cwd - streamable-http:
url,headers
Before submission, validation is performed via the Config schema of @deepseek-ai/dsh-mcp-client before writing. Editing replaces the entire configuration row; serverName cannot be changed (it determines the tool name prefix). Renaming is not supported; you can only delete and add a new one.
Delete, Enable, and Disable¶
When deleting: if the configuration row is at the profile layer, it is deleted directly; if it comes from the bundle layer, it is read-only, and the delete operation is downgraded to writing a “disabled override row”. Enabling/disabling is done by toggling the disabled flag on the row.
Immediate Effect¶
Configuration changes are written to ~/.dsh/profiles/web/cordis.patch.yml, and HMR automatically reloads the MCP, generally eliminating the need to restart DSH.
Security and Patch Editing¶
Before write operations, surgical CST editing is performed on the patch YAML: comments and formatting of unchanged lines are preserved verbatim (covered by tests). !!js expression values are passed through as-is; env parsing results are not written back to the file to avoid persisting resolved secrets. HTTP routes are restricted to loopback only (triple verification of socket, Host, and same-origin). Before writing, re-parsing validation is performed, adopting temp/rename atomic writes. An automatic backup is created as cordis.patch.yml.bak-mcpmgr before the first write.
Installation and Enablement¶
The installation example in the README uses a local link path (replace it with the directory after cloning or downloading on your machine):
dsh plugin --profile web add link:D:/dsh_space/dsh_plugins/dsh-mcp-plugin
After the bundle list changes, you need to restart DSH once; subsequently, if you modify the plugin source code yourself, just run pnpm run build and refresh the page.
Uninstallation:
dsh plugin --profile web remove @local/mcp-manager
Developer build and test:
pnpm install
pnpm run build
pnpm test
pnpm run typecheck
Typical Usage¶
- Add the plugin to the web profile using the command above and restart DSH.
- Open Web settings, navigate to the “MCP Services” page, and view existing servers and real-time status.
- Use “Add” to fill in the form based on the transport type; after saving, check if the list status is Running or Failed (check the error summary if failed).
- Use Disable when you need to temporarily take a service offline; entries from the bundle source can only be disabled, not edited or truly deleted.
- If
!!jsexpressions are used in the configuration, the field will become a literal after editing in the UI, and an “Expression” badge will appear on the interface to indicate this.
Architecture Overview¶
Browser Side (React, /plugins/<id>/client.js)
└─ settings.section slot → "MCP Services" Page
└─ Document relative path fetch (Same-origin)
▼
Host Side (cordis plugin, exports ".")
├─ /mcp-manager/list|add|update|remove|set-enabled
├─ Patch document CST editing (yaml parseDocument)
└─ ctx.loader.entries() → Fiber real-time status
▼
~/.dsh/profiles/web/cordis.patch.yml (HMR → MCP Hot Reload)
Use Cases and Notes¶
Suitable for developers who frequently add or delete MCPs, troubleshoot loading failures, or prefer not to manually edit YAML in the DSH Web interface. The plugin runs with the permissions of the current DSH process. Before installation, you should read the source code and the MIT license to ensure that the routing and disk writing behavior are acceptable.
Known limitations (from README):
!!jsfields become literals after being edited in the UI.- MCP rows originating from the bundle layer are read-only; they can be disabled but not deleted or edited.
- Renaming
serverNameis not supported.
Community directories such as SkillHub have no official affiliation with DeepSeek or High-Flyer. The plugin belongs to the community ecosystem and is not an official app store entry.
Conclusion¶
dsh-mcp-plugin consolidates MCP configuration into a single page within Web settings, aligning with cordis.patch.yml, HMR, and loader status. Catalog page: https://www.skillhub.cn/plugins/shinelon/dsh-mcp-plugin; Source code: https://github.com/shinelon/dsh-mcp-plugin.