Introduction¶
When integrating MCP into DSH (DeepSeek Harness), you often have to maintain separate MCP server configurations across tools like Claude Code, Cursor, VS Code, Codex, etc. Changing a service name in one place while missing it in three others is a common operational cost. The community plugin dsh-mcp-global-manager (maintainer asfre, category admin-security) bundles “discovery → sync into DSH → write back to original tools on demand → add/edit/delete/disable on the DSH side” into a sidebar panel, targeting developers who use multiple tools on the same machine.
The DSH ecosystem advocates “everything is a plugin”; the directory page is at SkillHub, and has no official affiliation with DeepSeek / High-Flyer. The features and commands below are based on the GitHub README and package.json (current version 0.1.1, MIT).
What Is This¶
dsh-mcp-global-manager is a DSH sidebar panel plugin: it scans MCP configuration files in locally known programming tools according to a registry, compares differences, and can adopt entries into the DSH profile’s cordis.patch.yml (generating @deepseek-ai/dsh-mcp-client managed lines that are shape-compatible with dsh-mcp-manager-plus lines), while also managing DSH-side MCP within the panel; writing back to each tool’s configuration file requires explicit per-item authorization.
Runtime environment: Windows / macOS / Linux; depends on DSH >=0.1.6-alpha.1 (the README states that transitional versions before the 0.2.0 stable release are not supported, see compatibility notes). The host side makes no network requests and executes no commands (does not run npx / git etc. to install MCP), only reading and writing configuration text.
Sidebar entry: globe icon + MCP Global Manager (order: 22, positioned after dsh-remote-web-ui’s “Remote Link”; it can be used independently even without the remote link plugin installed).
Core Features¶
Discovery and Difference Ledger¶
- Built-in 28 tool sources, plus support for custom sources (id / format / container key / candidate paths, with
%APPDATA%etc. expansion). - Recognizes JSON, TOML, OpenCode, Continue arrays and other dialects; tolerates
//comments and trailing commas when reading. - Four difference states: no change / newly discovered / changed / deleted from source; JSON key reordering does not trigger false positives; entries with the same name across tools are marked with duplicate sources.
- Scans use approximately 400ms request-level caching, so consecutive “Refresh Scan” clicks won’t repeatedly hammer the disk.
Sync and Management¶
- Adopt & Import: check items for batch or single “Adopt to DSH”;
--emitpreview and real import share the same pure function. - DSH Side: add / edit / delete / disable; adding supports a three-step form (basic info / startup method / environment variables), can “recognize” and split pasted full command lines, with live preview of the written content at the bottom.
- Write Back to Original Tools: must first enable “Allow Write Back”, then confirm write-back or deletion from that tool; server-side ledger double-gate, no force bypass. Some sources (such as lingma, cherry-studio, zed, warp, continue) are registered as read-only, and write-back returns 403.
Security and Local Data¶
- env, request headers, and URL query tokens matching rules like
KEY/PASSWORD/SECRET/TOKENare masked in the panel; on write-back, original disk values are restored; if restoration fails, 409 rejects the write to avoid writing placeholders into configuration files. - Before every write, a backup is saved to
~/.dsh/mcp-global-manager/backups/, keeping at most 40 copies; the difference ledger is at~/.dsh/mcp-global-manager/state.json(including the last snapshot, local only, no network transmission). - The API only listens on loopback and validates Origin / Host; the plugin reads and writes files with the current logged-in user’s permissions; you should review the source code and MIT license yourself before installation.
The self-check in the panel can verify js-yaml parsing, bundles/client.js, and DSH managed line count; the interface language (English/Chinese) follows the DSH language setting.
Installation and Activation¶
Use DSH’s built-in plugin command, replacing --profile with the profile you actually use (e.g., web / desktop / tui):
# ① After the package is published to npm (recommended)
dsh plugin --profile web add dsh-mcp-global-manager
# ② Install from source (development mode, no npm account needed)
dsh plugin --profile web add file:C:/Users/you/dsh-plugins/dsh-mcp-global-manager
# ③ Or install the tarball from a GitHub Release
dsh plugin --profile web add https://github.com/asfre/dsh-mcp-global-manager/releases/latest/download/dsh-mcp-global-manager.tgz
After installation, fully restart DSH (quit from tray then reopen; Ctrl+R only reloads the frontend, and the host lib/*.js may still be the old version). The sidebar MCP Global Manager should appear below “Remote Link”.
README reminder: the patch depends on js-yaml 4.x, which may be occupied by another plugin’s 5.x in the profile; after installing and restarting, it’s recommended to click self-check once.
Typical Usage¶
After installation and restart, you can proceed in the following order (consistent with the README’s “How to Use the Panel”):
- Open MCP Global Manager in the sidebar, click Refresh Scan at the top.
- Check the badge row: total / newly discovered / changed / deleted from source / managed by DSH / existing files / read failures.
- In “MCP Configs of Each Tool”, items are grouped by source: check and Adopt Selected, or Adopt to DSH for a single item.
- Single item Edit Config; if you need to change files on other tools’ disks, first enable Allow Write Back, then Write Back to That Tool or Delete from That Tool (with confirmation dialog).
- In “DSH Side”, add / edit / delete and disable; Add DSH Entry can create a manual entry.
- “Deleted from Source” is only marked red, not automatically deleting DSH lines; to clear the difference ledger, delete
~/.dsh/mcp-global-manager/state.jsonand rescan. - Before writing service names into DSH, illegal characters are normalized (e.g., pure Chinese may become
server-<hash6>), and the panel will prompt for a rename.
In development mode, only scanning without writing to disk; you can run in the plugin directory:
node tools/cli-scan.mjs # Scan and print only; --emit previews import YAML
Use Cases and Notes¶
Who It’s For: Developers who use multiple AI coding tools on the same machine, want DSH as the MCP configuration hub, and occasionally need to write changes back to a specific tool’s configuration file.
Permissions and Trust: The plugin reads and writes MCP configs of various tools and the DSH profile under your user directory; state.json may contain sensitive env snapshots. On multi-user machines or machines with untrusted local programs, pay attention to the permissions of the ~/.dsh/mcp-global-manager/ directory; the loopback port is visible to any local process, and the README has documented this limitation.
Known Limitations (selected):
- JSON write-back loses
//,/* */comments and trailing commas (reading is tolerant); backups before writing allow rollback. - TOML only handles one level of
[mcp_servers.x]; the panel manages configuration, not DSH MCP runtime start/stop. - After uninstalling the plugin, the
mcp-*lines already generated incordis.patch.ymlare not automatically deleted; you need to clean them up yourself in the panel or configuration; the ledger and backup directories need to be manually deleted for complete cleanup.
Conclusion¶
dsh-mcp-global-manager consolidates MCP configurations scattered across multiple tools into a workflow that is scannable, comparable, importable to DSH, and controllable for write-back, emphasizing local operation, read-only by default, and double confirmation for write-back. For further information and installation entry points:
- Community directory: https://www.skillhub.cn/plugins/asfre/dsh-mcp-global-manager
- Source code and documentation: https://github.com/asfre/dsh-mcp-global-manager