rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
PROJECT README
MCP Management for DeepSeek Harness — give every workspace (project directory) its own MCP servers, and only expose those tools to sessions running in that workspace.
中文说明:README.zh.md
MCP servers are usually configured once for the whole application, so a database tool, a GitHub
tool and a JetBrains tool are all visible in every conversation. This plugin scopes them to the
workspace: a session that runs in ~/work/api sees the servers configured for ~/work/api,
while a session in ~/work/docs sees a different set — or none at all.
defaultServers are inherited by every workspace (handy for tools
you always want).<workspace>/.dsh/mcp.json. Project-local configuration that can be committed to the
repository. File entries take precedence over the GUI-managed list; the familiar
{ "mcpServers": { ... } } shape is supported.mcp_management lets the model inspect and manage the mapping
(status, list, setServer, removeServer, setEnabled, setWorkspace).agent.ctx), so
tools appear and disappear per session as configuration changes — no restart needed.${env:NAME} inside command, args, url, env and headers is expanded
from the Host environment when connecting; secrets never need to be written into configuration.session works in /repo/app
│
▼
resolve server set: defaultServers < workspaces[path=/repo/app] < /repo/app/.dsh/mcp.json
│
▼
mount each server on THIS Agent's scope: agent.ctx.plugin('@deepseek-ai/dsh-mcp-client', …)
│
▼
tools mcp__<serverName>__<tool> exist only for this session
The plugin resolves the server list from the session's recorded working directory (the workspace
identity), connects the configured servers through the official @deepseek-ai/dsh-mcp-client
bridge, and mounts each instance on that Agent's context so the resulting tools are scoped to it.
Configuration changes commit to the profile's user patch layer as volatile config fields, which
re-bind live Agents without reloading the plugin.
dsh 0.2.x) with a profile whose composition provides tools,
loader, agents, configEditor, and the Web settings surface (the standard dsh-base +
dsh-web-app composition does).vendor/.Install the plugin into a DeepSeek Harness profile with dsh plugin. This is also the command the
DSH Plugin Center uses:
dsh plugin --profile web add @inkyi/dsh-mcp-management
The plugin is listed in the community hub (Verified, 2026-10-29): dsh-plugin.org → inkyi/dsh-mcp-management.
Before the npm release exists (or to track the repository directly), install straight from GitHub:
dsh plugin --profile web add github:inkyi/dsh-mcp-management
For a local clone (development — the profile links the directory and re-reads it after a recomposition):
git clone https://github.com/inkyi/dsh-mcp-management.git
dsh plugin --profile web add link:/absolute/path/to/dsh-mcp-management
The command installs the package into the profile, appends it to dsh.profile.bundles, and applies
the bundle patch in cordis.patch.yml; restart dsh web if it is already
running. The desktop app manages its reserved desktop profile from Plugins in the sidebar —
inside a session plugin_manager action=install_bundle target=... does the same.
Open Settings → MCP Management. If the navigation entry is missing, refresh the page once (the client half is loaded with the page).
Uninstall with dsh plugin --profile web remove @inkyi/dsh-mcp-management (or, inside a session,
plugin_manager action=remove_bundle target=@inkyi/dsh-mcp-management).
dsh web page, which has no in-window chooser bridge) it opens an in-page dialog where you
paste an absolute directory path or pick a workspace already registered in the sidebar.idea, transport streamable-http, URL http://127.0.0.1:64343/stream,
fail on startup error off (the IDE is not always running);github, transport stdio, command npx, args -y @modelcontextprotocol/server-github,
env GITHUB_TOKEN=${env:GITHUB_TOKEN}.<workspace>/.dsh/mcp.json (optional, takes precedence){
"mcpServers": {
"idea": {
"url": "http://127.0.0.1:64343/stream",
"failOnStartupError": false
},
"github": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-github"],
"env": { "GITHUB_TOKEN": "${env:GITHUB_TOKEN}" }
},
"disabled-example": {
"command": "node",
"args": ["server.mjs"],
"disabled": true
}
}
}
A url selects streamable-http, a command selects stdio; transport may be set explicitly.
disabled: true means "configured but not connected". Invalid entries are skipped and logged, and
do not affect the other servers.
defaultServers < workspaces[].servers (longest matching path wins, outer → inner) < .dsh/mcp.json
Server identity is serverName; a later source overrides an earlier entry with the same name and
adds the rest. enabled: false entries stay configured but are not connected.
mcp_management { "action": "status" } # this session's workspace, file config, servers
mcp_management { "action": "list" } # defaults + all workspace entries
mcp_management { "action": "setServer", "server": { … } } # upsert one server in the current workspace
mcp_management { "action": "setEnabled", "serverName": "idea", "enabled": false }
mcp_management { "action": "setWorkspace", "workspacePath": "/path", "servers": [ … ] }
GUI-managed values are written to the active profile's user patch layer
(~/.dsh/profiles/<profile>/cordis.patch.yml) in the mcp-management row, as the volatile fields
defaultServers and workspaces. You can also edit that YAML directly; volatile fields apply
without restarting.
Ordinary fields (fileConfigEnabled, fileConfigPath, matchSubdirectories) live in the same row
and take effect on the next plugin reload:
- id: mcp-management
name: '@inkyi/dsh-mcp-management'
config:
fileConfigEnabled: true # read <workspace>/.dsh/mcp.json (default true)
fileConfigPath: .dsh/mcp.json # location inside the workspace
matchSubdirectories: true # a session in a subdirectory inherits the workspace config
.dsh/mcp.json is not watched: edits apply to new sessions, or after a configuration save
triggers a re-bind.failOnStartupError: false, a failing server keeps reconnecting in the
background; status can briefly report connected before the tools are actually usable. Treat
the presence of mcp__<name>__* tools as the source of truth.@deepseek-ai/dsh-mcp-client rows configured elsewhere in the
profile are unaffected.--dsw-alias-* theme tokens; fine visual details (focus
rings, modal placement) may differ slightly between Harness versions.npm test # static bundle checks + pure-logic unit tests (no dependencies)
npm run check # static checks only
npm run fixture # dependency-free MCP stdio fixture smoke
npm run sdk-smoke # optional real MCP SDK handshake (skips if unavailable)
The suite never needs npm install. See test/README.md for the coverage matrix
and CONTRIBUTING.md for the ground rules. The design and the end-to-end
verification record live in DESIGN.md.
MIT. Vendored third-party code: Schemastery 3.18.5 and Cosmokit 1.8.6 (both MIT,
Copyright © 2021-present Shigma) — see NOTICE.md and vendor/LICENSE.*.txt.
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: mcp、mcp-server、deepseek-harness。