Preface¶
When integrating MCP into DeepSeek Harness (DSH), the common practice is to hand-write mcpServers configurations, restart processes, and then deal with a long string of mcp__<id>__<tool> names within the session. As the number of servers grows, the tool list in the system prompt expands rapidly, and it becomes difficult to maintain separation between project directories and global persistent connections.
@it-glen/dsh-mcp-manager is a DSH plugin published by community maintainer it-glen (npm package name @it-glen/dsh-mcp-manager, categorized as “Workflow” on SkillHub). It provides a top-right floating widget and hierarchical panel in the Web session interface, responsible for MCP CRUD operations, connection monitoring, and configuration import. The actual connections and protocols are handled by the official @deepseek-ai/dsh-mcp-client (the host cordis loader loads the copy within the dsh installation by package name; it is not distributed with this package and requires no additional installation). On the model side, it only exposes four intermediate layer atomic tools, using two-level discovery to control context costs.
What is this¶
In one sentence: A MCP server management plugin for DSH—featuring a floating widget + hierarchical panel + form/JSON import access, with no servers preset.
Maintainer: it-glen. Source code and docs: GitHub - it-glen/dsh-mcp-manager. Community directory page: SkillHub Plugin Page.
Core Features¶
Interface and Operations¶
- Top-right floating widget: Status dot and count summary (e.g.,
MCP 2/3); click to expand the dropdown panel; auto-refreshes upon session switching. - Hierarchical display: Running / Connecting / Reconnecting / Disconnected / Disabled / Failed; each server displays transport method, endpoint, and tool count.
- Server management: CRUD (optional project-level or global), connect / disconnect / reconnect; supports manual forms and importing via pasted
mcpServersJSON (JSON only, does not scan other application configs). - Two transports:
stdio(local subprocess,envsupports${ENV}references) andstreamable-http(remote,headersupports${ENV}, automatically returnsMcp-Session-Id). - Reconnection: Bounded exponential backoff (starting at 500ms, capped at 30s, stops background retries after 10 attempts; manual connection or
ws_mcp_callcan retry).
Configuration Hierarchy and Workspace¶
| Level | Path | Usage |
|---|---|---|
| Project-level | <project root>/.dsh/@it-glen/dsh-mcp-manager/mcp.json |
Travels with the repo, can be committed to git for team sharing |
| Global | <DSH_HOME>/@it-glen/dsh-mcp-manager/mcp.json |
Persistent servers; if storePath is empty, this is the default path |
The server lists in these two levels of configuration files support hot-loading. Additions, deletions, start/stop commands, and configuration changes take effect immediately without restarting DSH. When switching the session working directory, the MCP set corresponding to the current directory is automatically loaded.
The intermediate layer routes to the corresponding connection pool based on the caller session’s current cwd; the full server name @<root>/<server> undergoes consistency validation to prevent cross-workspace interference. If there is no project at cwd, it falls back to the global virtual root @global.
Four Atomic Tools Visible to the Model¶
All MCPs (project-level, global, runtime injected) are accessed exclusively via the intermediate layer. Although the host registers mcp__<id>__<tool> (where id is an opaque short string assigned by workspace and server name), these names are stripped from the model’s tool list and must not be called directly.
| Tool | Function |
|---|---|
ws_mcp_list |
Full inventory of current workspace servers and tool lists (list first, then detail) |
ws_mcp_detail |
Fetch full inputSchema by @<root>/<server> + tool name |
ws_mcp_search |
Keyword search, search before calling |
ws_mcp_call |
Call by full name; parameters must be verified against schema using ws_mcp_detail |
This prevents connecting multiple servers and tools from blowing up the tool slots in the system prompt.
Security and Defaults¶
- Configuration only stores
${ENV}references; secrets themselves are not written to disk (0600 permissions + atomic writes). - Stdio subprocess environment is sanitized; host credential-shaped variables are not passed through; directory summaries and error paths are redacted via a redactor.
Deprecated configuration keys
middleware,middlewarePolicy(#767): If written in old configs, they will not take effect, and this plugin will not rewrite them.
Installation and Activation¶
Prerequisites: DeepSeek Harness is installed locally, and dsh web starts normally.
One-click installation (Web profile):
dsh plugin --profile web add @it-glen/dsh-mcp-manager
If dsh is not installed globally, use npx (underlying call is still pnpm, requires local installation of pnpm and Node.js):
npx @deepseek-ai/dsh plugin --profile web add @it-glen/dsh-mcp-manager
Update and uninstall:
dsh plugin --profile web update @it-glen/dsh-mcp-manager
dsh plugin --profile web remove @it-glen/dsh-mcp-manager
A restart is required for dsh web after installation, uninstallation, or update (the bundle layer is only composed at startup). To pin a version, append @<version> after the package name.
Typical Usage¶
1. Connect a server via the floating widget¶
After starting dsh web and opening a session, click the MCP capsule in the top right corner and add a new server in the panel: choose project-level or global, fill in the stdio command or streamable-http endpoint, and use ${ENV} references for environment variables and headers. You can also directly paste mcpServers JSON text compatible with tools like Cursor for import.
2. Call MCP in an Agent session¶
The model should follow two-level discovery:
- Call
ws_mcp_listorws_mcp_searchto find the target server and tool. - Call
ws_mcp_detailto get the complete input parameter schema for that tool. - Call
ws_mcp_call, passing parameters withserverusing the full name@<root>/<server>.
When there is no project in the current directory, list / search / detail will merge “project root + @global”; call allows global servers under @global.
3. Adjust floating widget position¶
Entry point: Plugin Manager → dsh-mcp-manager → Configure. You can change position (default top-right), offset.x / offset.y, zIndexBase, etc.; changes take effect immediately via SSE after saving, without restarting dsh web.
Under non-loopback LAN addresses, Configure may be hidden according to DSH security policies; it is recommended to manage via 127.0.0.1 or SSH loopback tunnels.
Use Cases and Notes¶
Who it is for: Developers and teams maintaining multiple sets of MCPs in DSH Web long-term, needing separation between project-level and global, and wishing to control the volume of tool descriptions in the Agent context.
Permissions and Security: The plugin runs stdio subprocesses and network connections with the permissions of the current dsh process; please read the repository source code and license before installation, and only connect to trusted MCP servers.
Upgrade Boundaries: The current version only generates producer-owned V4 sources; if historical sessions cannot be opened after an upgrade, you need to use the monorepo maintenance script to process old sources once according to the upstream README section “Upgrade and Historical Session Boundaries”.
Ecosystem Notes: DSH advocates “Everything is a plugin”; SkillHub is a community directory and has no official affiliation with DeepSeek / High-Flyer.
Conclusion¶
@it-glen/dsh-mcp-manager separates the MCP configuration surface, status surface, and model access surface: humans manage connections via the floating widget, Agents use the four ws_mcp_* tools for on-demand discovery and invocation, project configurations can be committed to git, and global persistent connections are stored separately. If you are building MCPs on DSH Web, you can install via the directory page or GitHub using the official commands, and start configuring in the top right corner of the session after restarting dsh web.
- Directory Page: https://www.skillhub.cn/plugins/it-glen/dsh-mcp-manager
- GitHub: https://github.com/it-glen/dsh-mcp-manager