@omdp/dsh-connector
统一管理MCP服务和用户技能的设置页面 适合需要在一个Web UI页面中统一编辑MCP服务器配置和用户技能的DSH用户。
安裝
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:XJungit/omdp說明文件
閱讀完整 README ↗omdp — only my DSH plugins
English
A single GitHub repo that collects all of my DeepSeek Harness (DSH) plugins as a monorepo. Each plugin lives in its own subdirectory and is an independently installable DSH bundle, published to npm on every v* tag.
Layout
omdp/
├── README.md # this file
├── package.json # root manifest — keeps bare-git installs functional (see below)
├── dsh-connector/ # unified MCP + Skills manager (Web UI settings tab)
│ ├── index.js # host half
│ ├── client.js # client half (Web UI)
│ ├── cordis.patch.yml # bundle activation row
│ ├── package.json
│ └── README.md
├── dsh-key-fallback/ # multi-key API key pool with automatic rotation
│ ├── lib/index.js # host half (ESM)
│ ├── lib/client.js # client half (Web UI settings tab)
│ ├── cordis.patch.yml # bundle activation row
│ ├── package.json
│ └── README.md
├── dsh-vision-bridge/ # vision bridge: let text-only models "see" via a configured multimodal endpoint
│ ├── index.js # host half
│ ├── client.js # client half (paste/drop → temp path)
│ ├── cordis.patch.yml # bundle activation row
│ ├── package.json
│ └── README.md
├── dsh-archived-sessions/ # archived-session manager (fork of @muwinds, DSH 0.2.0-rc.1 / 0.2.0-rc.2)
│ ├── lib/index.js # host half (ESM)
│ ├── lib/client.js # client half (Web UI settings tab)
│ ├── cordis.patch.yml # bundle activation row
│ ├── package.json
│ └── README.md
├── archive/ # archived plugins retained for historical reference
│ ├── dsh-gitbash-win/
│ ├── resume-stream/
│ ├── key-fallback-*/ # dsh-key-fallback version snapshots & design drafts
│ └── README.md
├── notes/ # development lessons & notes (三层:notes///)
├── docs/ # research notes, compatibility matrix, publish guide
└── / # each its own subdirectory + package.json
Plugins
@omdp/dsh-connector — MCP + Skills manager (v0.3.8)
One settings tab (Connector) that manages three things from the DSH Web UI:
-
MCP servers — edits the MCP block in
cordis.patch.yml(stdio / streamable-http), with full validation so bad config never reaches the next boot. Legacy SSE servers (e.g. Zhihu) are kept asmcp-remote --transport sse-onlystdio bridges; the plugin only manages that config text. -
User skills — read / write / delete skills under
~/.dsh/skills//SKILL.md(frontmatter preserved). -
Market explorer (v0.2.0+) — read-only browsing of ModelScope Skills hub and MCP plaza via anonymous OpenAPI; one-click copy of install commands /
mcpServersconfig snippets, skill "check update" viasource/sourceUpdatedfrontmatter. Market data lives only in process memory (30-min TTL), never on disk. -
Tool filter (v0.3.0+) — per-server allow-list for MCP tools (DSH 0.1.7+: the
connectorprofile entry'sconfig.toolFilters; older rc.x:settings.yamlconnector.toolFilters), prompt hiding + execution guard; unset = allow all. -
DSH 0.1.7 support (v0.3.3) —
jsdomis no longer imported at module top level (apunycode/resolution defect in DSH's package resolver made the whole plugin fail to import); tool filters moved to the volatileConfig/settings.replace()backend while keeping the rc.xsettings.yamlbackend. -
Declared DSH support + a stranded-filter rescue (v0.3.4) — new
@deepseek-ai/dshpeer (0.1.7-rc.1, per-version enumeration at the time; switched to a triple range in v0.3.8, see below), enforced by DSH's ownevaluatePluginCompatibility(): an untested newer runtime has the bundle gracefully skipped instead of failing undefined-ly, while runtimes≤0.1.6just see an unrecognized peer (the gate does not exist before 0.1.7). Also fixes tool filters silently reverting to allow-all: 0.1.7's one-shot importer renamessettings.yaml→settings.yaml.importedand silently skips sections without a volatileConfig, soconnector.toolFiltersstayed behind in.imported;ensureLegacyFiltersMigration()now moves it back on the first request (never overwriting filters you already have, never deleting.imported). -
DSH
0.1.7-rc.2added to the peer enumeration (v0.3.5) — zero code changes; verified by a file-by-file tarball diff (shell/settings/credentialslib/byte-identical, llm additive-only, app-boot changes unrelated to plugins), running the rc.2 gate against the new declaration, and a live regression on a scratchdsh@0.1.7-rc.2profile (filters endpoint 200). -
CRLF patches + the right profile file (v0.3.6) — two live bugs. (1)
parseMcpServers()'s key/value regex^\s+(\w+):\s*(.*)$never matches on a CRLF file (in JS.*does not match\r, and$does not match before it), sotransport/serverName/command/urlall fell into thepreservebucket: the API answeredtransport:"" serverName:"", which made the tool-filter section vanish silently (if (!props.serverName) return null) and the transport badge degrade tostdio. Parsing now normalizes line endings first (toLf()), and writes emit LF. (2)patchPath()hardcodedprofiles/web/cordis.patch.yml, so under the desktop app (which runsprofiles/desktop) the MCP editor was rewriting another profile's file — with no effect on its own MCP config, plus a wrong path shown in the UI. 0.1.7+ now reads the real path fromctx.get('profileContext').patchPath(thedsh-app-bootProfileContextcontract), keeping the legacy path only where that service does not exist (0.1.5/0.1.6);GET /api/mcpreturns it so the settings page displays the true file. -
DSH
0.2.0-rc.1added to the peer enumeration (v0.3.7) — zero code changes. After the desktop app moved to0.2.0-rc.1the gate skipped the bundle declared only up to0.1.7-rc.2(Connector tab gone,/connector/api/*→ 404 — a graceful skip, not a crash). Verified by a file-by-file SHA1 diff over everylib/file of both official tarballs (dsh-web-app/dsh-host-webserver/dsh-credentials/dsh-settings/dsh-tools/dsh-mcp-clientbyte-identical), by running the 0.2.0-rc.1evaluatePluginCompatibility()against the new manifest (pass; the old manifest is blocked), and by a live sandbox assembly — official@deepseek-ai/dsh@0.2.0-rc.1+ isolatedDSH_HOME+--dump-config→ plugin in the tree, no gate skip. -
Peer declaration switched to the triple range (v0.3.8) — zero code changes. The
@deepseek-ai/dshpeer moved from per-version enumeration to>=0.2.0-rc.1 =0.2.0-rc.1or bare UUID); deletion is dual-era since 0.3.6 — it prefersctx.shell.resolve()→execute()→await result()on DSH 0.1.7+, and falls back toresolve()→run()on ≤0.1.6, so one build deletes across the whole line. (0.3.5 only calledexecute()— which fixed 0.1.7 but silently broke rc.x, whererun()is the only method; 0.3.4 had the mirror-image bug. Verified by unpacking each@deepseek-ai/dsh-shelltarball'slib/types/index.d.ts.) -
0.3.10 — deleted archived sessions reappeared in the chat list: archiving is only a visibility mask in DSH (it never filters the host list;
dsh-session-queryhas zeroarchiv*references), so the client row survives inmanager.summariesand merely gets hidden. The old code only removed the archive id — lifting the mask made the surviving row visible again (and clicking it failed withsession/not-found), because the only removal notice it ever emitted came incidentally fromentry.detach()'ssession/disposed → api-session/removed, which only fires for a live session. 0.3.10 emitsapi-session/removedexplicitly on every delete path (wrapped in try/catch — cordisemitis synchronous and uncontained, so a throwing third-party listener must not abort a completed delete), releases the workspacesessionIdsaccounting slot viaentity.detachSession()(DSH keeps archived ids accounted by design, and never forgets them), and stops ignoringlocation.found === false(the old coderm -rf'd a guessed path, which always failed and left the archive id stuck forever). Client side: the component never receivedctx(it read free variables and swallowed theReferenceErrorin a silenttry/catch), so its refresh was dead code. Verified with an A/B run on a scrat