DSH plugin: a settings panel to list, add, rewrite and toggle @deepseek-ai/dsh-mcp-client MCP rows — no more hand-writing them into cordis.patch.yml. Zero build, zero runtime dependencies.
Install
# from npm (prebuilt)
dsh plugin --profile web add dsh-mcp-client-manager
# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)
dsh plugin --profile web add github:yiyunet/dsh-mcp-client-manager
Any plugin you install runs third-party code with your own permissions — it can read your files, use your credentials, and reach the network, and tool approvals don’t sandbox it. GitHub-sourced plugins also run build scripts at install time — pnpm blocks those until you allow them, so an install can stop with ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED or ERR_PNPM_IGNORED_BUILDS; dsh prints the exact key to add under allowBuilds in your profile’s pnpm-workspace.yaml, and the install works on the next run. Allowing a build is a trust decision: only install sources you trust, and pin a commit (github:owner/repo#sha).
README
Manage the MCP server rows attached to @deepseek-ai/dsh-mcp-client from Settings → ANB 工具 → "MCP client": list, add, edit, enable/disable, delete. Nothing is written until you save — and saving never requires a host restart.
MIT · independent community plugin · not affiliated with, sponsored by, or endorsed by DeepSeek or DeepSeek Harness Security rules · Uninstall and leftovers
中文 | English
What this is, and whether it fits you
The traditional way to attach an MCP server in DSH is to hand-edit the profile's cordis.patch.yml — one bad indent and the host will not start. This plugin moves that into a settings panel: you click in the UI, it writes YAML in its own layer, and it never touches your hand-written rows.
Typical case: you want to connect a new MCP server (streamable-http or stdio) without editing a startup file for one line, and without risking a broken host over indentation.
What it does not do: no protocol-level health probing, no per-tool permission control, and it will not modify your hand-written rows (beyond credential-family fields and enable/disable). The status column does not mean the other side is healthy — during reconnect windows tools are still listed and only calls fail; that is mcp-client's established behavior.
Security rules (hard design constraints)
urlnever returns to the browser — the panel showsscheme//host/…only, with no path, query string or key fragment.- stdio
envvalues never return — only key names and "set". - An empty credential-family field means "keep the current value"; changing one requires re-entering the whole value:
url,command,env. serverNameis checked for duplicates before saving (active rows + managed list + current draft); duplicates make whichever loads later fail.- Managed ids are forced to the
mcpx-prefix, with three-level id conflict detection (active rows / managed list / weak text scan of the hand-written layer) — the same id declared twice makes the official layer treat the row as unaddressable and locks its switch. - Secrets never leave the host: the managed list file is
0600, and the integration test asserts thaturlandenvvalues never appear in returned payloads.
The one thing people get wrong: which file
Rows added or deleted in the panel are written to $DSH_HOME\cordis.patch.yml ($DSH_HOME = the DSH data root, i.e. %USERPROFILE%\.dsh) — not to profiles\<profile>\cordis.patch.yml.
profiles\<profile>\cordis.patch.yml contains only two things: ① the rows you hand-wrote; ② override rows appended by the official DSH config editor when the panel rewrites those rows.
The panel shows this path symbolically ($DSH_HOME\…) and never shows an absolute path containing your username.
Before you install
| Requirement | Value |
|---|---|
| Host | Any working DSH profile (web is used throughout) |
| Node.js | >=22.19 (see engines in package.json) |
| Build | None: no prepare, no build scripts, no runtime dependencies |
| Activation | This profile uses patchReload: live and bundle changes are watched by HMR → usually no restart; if "MCP client" does not appear in Settings, restart once |
Install
Option A · Local directory (recommended)
Sidebar Plugins → Add plugin → paste the local absolute path of this repository → Install. Or on the command line:
dsh plugin --profile web add "<absolute path to this repository>"
Option B · From npm
dsh plugin --profile web add dsh-mcp-client-manager
Option C · Directly from the GitHub source
dsh plugin --profile web add github:yiyunet/dsh-mcp-client-manager
The availability of options B and C depends on your package manager version and on how
dsh pluginparses git specifiers — inferred, not measured; if either fails, fall back to option A.
If dsh is not on PATH, use the entry inside the DSH checkout: node <DSH checkout>/apps/cli/lib/bin.js plugin ….
To remove it: see Update, rollback, uninstall.
Quick start: add one working MCP server
Installing is not the same as working. The endpoint of the four steps below is a tool that actually shows up in the model's available tool list.
- What you provide — a server name (
serverName), a transport (streamable-httporstdio), and the matchingurlorcommand/args/env. - What you do — Settings → ANB 工具 → MCP client → Add → fill the form → Save. Saving is the only time anything is written.
- Where the result appears — a new
mcpx-*row in the list; a matching row in$DSH_HOME/cordis.patch.yml; once mounted, tools appear to the model asmcp__<serverName>__*. - How to know it is right — the status column reads Enabled, and hovering shows "N tools discovered". "Enabled · no tools discovered" only means the row loaded without finding tools — that is not a working connection; "load failed" means check the host log.
Day-to-day use
Main line, end to end. Open the panel → find the row → edit / enable / disable as needed → Save → read the status column.
Shortest path from the second time on. To change one field, change that field and save; no host restart (the panel's writes are watched by HMR).
Two write-back paths that never cross:
- Managed rows (id prefix
mcpx-): add / edit / enable / disable / delete → written to$DSH_HOME/cordis.patch.yml(rewritten in full). - Hand-written rows: only credential-family fields and enable/disable may change; they cannot be deleted, and
serverName/transportcannot be changed (edit the profile patch by hand for that). Edits go through the official config editor (atomic write, rollback on failure, refuses if overridden by a higher layer); enable/disable goes through the official plugin manager.
Where a hand-written row's edit lands (measured once — worth knowing): the official config editor only recognizes top-level - id: rows and explicitly excludes insert rows, while our rows live inside - insert: [...] — therefore:
- First edit: a top-level override row is appended at the end of
profiles/<profile>/cordis.patch.yml, the originalinsertrow is untouched; the override row is later in the file → higher priority → it is the one in effect. - Later edits to the same row: updated in place, never accumulating.
- The row shows "hand-written + overridden" and gains an Undo override button (official semantics: restore the
insertvalue; it removes onlyconfigand leaves other keys on that row, such asdisabled, alone). - Consequence: rows the panel never touched take effect immediately when you edit the
insertrow; rows already overridden ignoreinsertedits until you press Undo override.
Settings panel
Entry: Settings → ANB 工具 → "MCP client".
The "ANB 工具" section shell is bundled with this plugin — nothing else to install. The shell is a runtime singleton: it yields when a shell already exists and never registers twice; if the plugin that registered it is disabled, this plugin takes over. With only this plugin installed the section holds a single tab (in selected state), with no empty shell.
| Column | Content |
|---|---|
| Server name | Name; endpoint mask and stdio command live in the hover tooltip (they would blow up column widths) |
| Row id | mcpx-* or the hand-written id |
| Source | Managed / hand-written (hand-written rows are marked "originally hand-written", plus "overridden" when overridden) |
| Status | See the table below |
| Actions | Edit | enable/disable | delete (managed) or 不可删 (hand-written) | Undo override (when overridden) |
Drift means read-only: if $DSH_HOME/cordis.patch.yml is modified externally (including line-ending changes), the panel stops writing and offers two actions (Rebuild / Clear the list).
When something goes wrong
Reading the status column
| Shows | Meaning |
|---|---|
| Enabled | Row loaded and tools discovered — the only proof that it is really connected |
| Enabled · no tools discovered | Row loaded but no tools found (the server has none, or the connection has not completed) |
| Enabled · loading / stopping | Just written or being unloaded; wait one cycle |
| Disabled | The row is switched off and will not connect |
| Load failed | The row failed to load or connect; check the host log |
| Not loaded | Configuration exists but this row is absent from the current process |
| Config conflict | The row id is declared in multiple layers; the official layer has locked its switch — fix by hand |
Common misreadings
| What you see | Meaning | Next step |
|---|---|---|
| Status "Enabled" but tool calls fail | Status covers row loading and tool discovery only, not link health | Reproduce one call and read the error; tools stay listed during reconnect windows |
| Config changed but nothing took effect | Managed rows need Save; hand-written rows may be "overridden" | Save managed rows; for hand-written rows press Undo override before editing insert |
| The whole panel turned read-only | The self-owned layer file was modified externally (drift) | Press Rebuild or Clear the list, then start again |
| "MCP client" missing in Settings | Plugin not loaded, or the section did not come up | Restart the host once; confirm mcp-client-manager appears in dsh --profile web --dump-config |
| Duplicate-name error on save | A serverName conflict makes whichever loads later fail |
Pick another serverName |
| Id-conflict error on save | The same id declared in multiple layers makes the official layer lock the row | Remove the duplicate declaration by hand, then save again |
Read-only inspection (⚠️ output contains keys — do not share):
dsh --profile web --dump-config
Update, rollback, uninstall
| Action | How | What happens to your data |
|---|---|---|
| Update | Reinstall with the same install command | Managed list and hand-written rows are kept |
| Uninstall (GUI) | Sidebar Plugins → find this package → Uninstall | Plugin code removed |
| Uninstall (CLI) | dsh plugin --profile web remove dsh-mcp-client-manager |
The managed layer file and managed list remain on disk |
| Clean the managed layer | Delete $DSH_HOME\cordis.patch.yml |
All managed MCP rows disappear; hand-written rows are unaffected |
| Clean managed data | Delete $DSH_HOME\mcp-manager |
Irreversible (includes saved url/env) |
Uninstall and what is left behind
Uninstalling does not automatically clear the managed layer or the managed list — other plugins may still rely on them, or you may want to keep the configuration. Use the two "clean" rows above; clearing the layer first and the data second is the safer order.
Data, permissions and privacy
- What it reads —
$DSH_HOME/cordis.patch.yml;profiles/<profile>/cordis.patch.yml(to display your hand-written rows and detect conflicts); the managed list$DSH_HOME/mcp-manager/servers.json. - What leaves the machine, and where — the plugin itself makes no network calls; panel and host communicate over local RPC. Whether a managed MCP server reaches the network is up to that server.
- What is written to disk, and where — managed list
$DSH_HOME/mcp-manager/servers.json(0600); generated MCP rows in$DSH_HOME/cordis.patch.yml; edits to hand-written rows land inprofiles/<profile>/cordis.patch.yml. - Who can read or write — only the operating-system account running DSH; the list file is
0600. - Key default switches — the panel does not probe; hand-written rows cannot be deleted; drift switches the panel to read-only automatically.
- Where credentials are stored and whether they reach logs —
urlandenvvalues live in the managed list, never returned to the browser and never placed in RPC payloads; the integration test asserts this.
Compatibility: required, verified, still unconfirmed
- Required — Node
>=22.19; DSH providing thesettings.sectionshell capability and thectx.configEditor/ctx.pluginManagerservices. - Verified — takes effect without a restart on a profile with
patchReload: live;host-smokeruns against a temporary directory asDSH_HOMEcovering list / add / duplicate check / enable-disable / delete / hand-written row edit / drift and escape hatches / RPC envelope and optimistic locking. - Still unconfirmed — the cross-version DSH matrix has not been systematically verified; installing from a git source (option C) has not been measured.
Verify and develop
node --check plugin-src/host/index.mjs # syntax pre-check, zero side effects
node --check plugin-src/host/store.mjs
node --check plugin-src/host/validate.mjs
node --check plugin-src/host/adapter.mjs
node --check plugin-src/client/client.js
node --test test/validate.test.mjs test/store.test.mjs test/host-smoke.mjs
npm run verify # package contract assertions
⚠️ Tests must name their files: on Node 24,
node --test testtreatstestas a module to load and fails withMODULE_NOT_FOUND.
host-smoke.mjs builds a fake host (a temp directory as DSH_HOME) and runs the whole flow, asserting that no secret ever appears in returned payloads. There is no build step and no runtime dependency: the host half uses only node:* and ctx services, the browser half uses the official module-loader factory format.
Known boundaries
- Only the
streamable-httpandstdiotransports of mcp-client rows are covered;headers,reconnect,toolCallTimeoutMs,maxInstructionBytesand similar fields remain file-owned (the panel does not touch them; rewrites carry existing keys through). - Hand-written rows cannot be deleted, and their identity and transport cannot be changed (a limit of the official editing service).
- The status column is not a health check (see above).
- Drift means read-only: once the self-owned layer file is modified externally, the panel stops writing and hands control back to you.
Documentation index
| What you want to know | Where |
|---|---|
| How to confirm step by step that it is working after install | docs/安装与验证.md |
| How it writes to disk: two layers, two write-back paths, RPC table, drift and undo override | docs/架构与写回模型.md |
| What changed in each release | CHANGELOG.md |
| Documentation index | docs/README.md |
Feedback
Open an issue for problems or feature requests. Include the DSH version and the plugin version (see the package manifest or CHANGELOG.md; this document does not duplicate it).
"Installed but not working" and "configuration got corrupted" are two entirely different troubleshooting paths — report them separately when you can tell them apart. Remove tokens, API keys and internal addresses before pasting configuration snippets — MCP configuration carries credentials by nature.
License
MIT, see LICENSE. Author: yiyunet. Not affiliated with, sponsored by, or endorsed by DeepSeek or DeepSeek Harness.
Links
More in this category
Tencent/WeKnora#dsh-weknora★ 38608
Four read-only tools over a WeKnora knowledge base: list knowledge bases, hybrid passage search, reassemble one document's chunks in order, and WeKnora's own cited RAG or ReAct-agent answer with a resumable session id.
DayuanJiang/next-ai-draw-io#dsh-plugin★ 37289
Draws draw.io diagrams in DeepSeek Harness through the next-ai-drawio MCP server: the link in the reply opens a live preview in the right sidebar, you can edit the diagram by hand, and each AI change is a version you can restore. Node.js 18+; npx downloads the MCP server on first use.
yikart/AiToEarn#dsh-plugin-aitoearn★ 28947
Generate copy, images and short videos, and publish with one click to Douyin, Kuaishou, Xiaohongshu, WeChat Official, Bilibili, Facebook, TikTok and more, covering the full content lifecycle from creation to publishing and monetization.
superdesigndev/treg★ 10049
Tool catalog for agents: search ~2,600 external endpoints (SEO and SERP, backlinks, social, people and company enrichment, ad libraries, scraping) by the task you want done, read each one's parameters and per-call price, then call it with the credential injected server-side. Ships the skill plus an MCP row that stays disabled until TREG_TOKEN is set.
T-Auto/dsh-ops★ 6112
Provides bash, PowerShell 7, and high-performance Rust tools for DSH on Windows to reduce token usage.
Hithink-Tech-Org/Financial-API#hithink-finance★ 4761
Query Hithink Finance data in DeepSeek Harness, view charts in chat, and save refreshable dashboards.
Community comments
Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.