rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
PROJECT README
English | 中文 · ·
A per-workspace MCP and skill manager for DeepSeek Harness.
One button on each workspace row opens a popup where you decide which MCP servers and which skills that workspace gets. Global MCP, project MCP and skills all switch independently per workspace.
DSH's own MCP configuration is profile-wide: whatever is in mcp: applies to every
workspace and every session. In daily use that means:
codebase is useful in project A and in project B, but the two projects keep different
.codebase/codebase.db files — one global config can only point at one of them.~/.claude/skills show up in every session although
only a couple of workspaces really want them.This plugin moves the switches down to the workspace layer:
| Object | Source | Switch granularity |
|---|---|---|
| Global MCP | mcpServers in ~/.claude.json |
per workspace |
| Project MCP | the workspace's own .mcp.json |
per workspace |
| Manual MCP | hand-written dsh-mcp-client rows in the profile |
per workspace |
| Skills | .dsh/skills, .claude/skills, .agents/skills, ~/.dsh/skills, ~/.claude/skills, ~/.agents/skills |
per workspace |
Enabled/Disabled and
Connected/Not connected shown inline.cwd. Focusing or switching a
session never stops another workspace's servers; a workspace's servers unload with its last
session.mcp__<workspace>__* tools plus
global/manual ones reach the current session, so another live workspace's tools never leak in./name injection, and a direct skill tool call is refused with an explicit reason..claude/skills and user ~/.claude/skills
are scanned, including SKILL.md files without YAML frontmatter..mcp.json, so new workspaces and edited configs apply without restarting DSH.$DSH_HOME.Turn the tab on first: Plugins → Experimental plugins → enable “Custom plugin markets”. (It is an optional experimental bundle; the Discover tab only exists once it is installed. You do this once.)
Discover → Add index source, and enter:
https://gyp8735abc.github.io/dsh-mcp-manager/index.json
Search for MCP manager, mcp, workspace or gyp8735abc, open the entry, press Install.
Market indexes are unsigned; titles, authors and sources are publisher claims. Only add index sources you trust, and check in the confirmation dialog that the source is
@gyp8735abc/dsh-mcp-manager.A "plugin market" is not an app store: DSH has no central store, the market only reads the index URLs you add. Besides the index above you can add the community index this plugin is submitted to —
https://cdn.jsdelivr.net/npm/dsh-plugin-catalog/index.json(the Awesome DSH Plugin catalog) — and search there.
dsh plugin --profile web add @gyp8735abc/dsh-mcp-manager
The package is also a DSH bundle (dsh.bundle.patch), so the plugin row is inserted into the
profile composition automatically — no hand-written cordis.patch.yml needed.
git clone https://github.com/gyp8735abc/dsh-mcp-manager.git
cd dsh-mcp-manager
dsh plugin --profile web add .
dsh --profile web --dump-config | grep -A 3 dsh-mcp-manager
Seeing id: dsh-mcp-manager means it is in the composition tree. Then restart dsh web
and hard-reload the browser (Ctrl+Shift+R) — the client bundle is injected at startup only.
After that, every workspace row gains a plug icon to the left of its ⋯ menu.
The popup shows:
┌ MCP & skills ───────────────────────────────┐
│ Workspace D:\ai-workspace Active │
│ │
│ Project MCP (.mcp.json) │
│ ● codebase stdio Enabled Connected │
│ ○ e2e-runner stdio Disabled — │
│ │
│ Global MCP (~/.claude.json) │
│ ● everything-search http Enabled Connected│
│ │
│ Manual MCP (profile) │
│ ○ codegraph stdio Disabled — │
│ │
│ Project skills (this workspace) │
│ ● officecli .dsh Enabled │
│ ○ probe .claude Disabled │
│ │
│ Global skills (all workspaces) │
│ ● diagnose-windows-sandbox-acl ~/.dsh │
└──────────────────────────────────────────────┘
codebase in workspace A becomes
a__codebase, and the model sees mcp__a__codebase__search_code. That is what lets two
workspaces' same-named servers coexist as separate processes instead of shadowing each other.$DSH_HOME/mcp-manager/state.json ($DSH_HOME defaults to ~/.dsh):
{
"projects": [
{
"path": "D:\\ai-workspace",
"disabled": ["dsh-mcp-manager__codebase"],
"disabledSkills": ["office"]
}
]
}
| Field | Meaning |
|---|---|
path |
Absolute workspace path (identity key) |
disabled |
MCP runtime names disabled in this workspace; project servers use the workspace-qualified name (<slug>__<name>), global/manual servers their plain name |
disabledSkills |
Skill names disabled in this workspace |
mcp: section of $DSH_HOME/settings.yaml is imported once.codebase) are honoured in disabled, so old lists
keep working.The popup uses three same-origin endpoints, which you can also call yourself:
| Method | Path | Purpose |
|---|---|---|
GET |
/api/dsh-mcp-manager/inventory?active=<workspace path> |
Full inventory for one workspace (MCP groups, skills, connection state) |
POST |
/api/dsh-mcp-manager/activate |
{ "path": "..." } — remember the focused workspace |
POST |
/api/dsh-mcp-manager/set |
{ "path": "...", "kind": "mcp"\|"skill", "name": "...", "enabled": true } |
cwd
defaulting to the workspace directory — so relative paths such as .codebase/codebase.db
land in their own workspace.dsh-mcp-client rows): kept enabled while any live workspace
wants them, because one loader row can only own one process.Roots are merged with lowest rank winning, one entry per skill name:
| Order | Root | Source tag |
|---|---|---|
| 1 | <workspace>/.dsh/skills |
project-dsh |
| 2 | <workspace>/.claude/skills |
project-claude |
| 3 | <workspace>/.agents/skills |
project-agents |
| 4 | ~/.dsh/skills |
user-dsh |
| 5 | ~/.claude/skills |
user-claude |
| 6 | ~/.agents/skills |
user-agents |
The .claude roots and the frontmatter-less parser are added through
ctx.skills.registerProvider() — the same public seam the shipped provider uses — so no core
package is patched.
A skill is <dir>/SKILL.md or a bare .md file directly under a root. Without frontmatter the
directory name becomes the skill name and the first body line the description (the usual Claude
Code shape).
A disabled skill takes effect in three places: the session catalog stops listing it,
/skill-name is no longer injected, and the skill tool refuses it with an explicit
“disabled for this workspace” message.
| Item | Requirement |
|---|---|
| DSH | >=0.2.0-rc.2 <0.3.0 (checked against the running version at install time) |
| Node.js | >=22 |
| Surface | Web only (dsh web and the desktop GUI's web view); headless / acp have no UI entry |
The only runtime dependencies are packages that ship with the DSH installation
(@deepseek-ai/dsh-mcp-client etc.); the plugin itself has none.
.claude/skills while DSH is running appears after
a restart (existing and project skills all load at startup).MutationObserver and re-added after re-renders. If it does not
show up, first check that the DSH version is inside >=0.2.0-rc.2 <0.3.0.cwd.state.json..mcp.json files and
~/.claude.json — that is the same trust you would give that configuration. Only use it with
repositories and configs you trust.dsh web listens on
loopback only (the default 127.0.0.1). With --host 0.0.0.0, anyone who can reach the port
can toggle your MCP servers.settings.yaml; its only write
is $DSH_HOME/mcp-manager/state.json.node --check lib/index.js # host: inventory, per-workspace state, union mounting, routes
node --check lib/skill-filter.js # skill filter (SkillRegistry prototype + tools.guard)
node --check lib/skill-roots.js # Claude skill-root provider
node --check client/client.js # browser bundle (ModuleLoader factory form)
npm run pack:check # verify the npm package contents (run before publishing)
npm run market:index # regenerate docs/index.json
| Path | Purpose |
|---|---|
lib/index.js |
Host: state, inventory / activate / set, union mounting, session tool filtering |
lib/skill-filter.js |
Per-workspace skill filtering (catalog, injection, tool call) |
lib/skill-roots.js |
.claude roots and frontmatter-less SKILL.md parsing |
client/client.js |
Browser half: workspace-row button and the popup (English / 中文) |
cordis.patch.yml |
Bundle patch that inserts the plugin row |
locale/{en,zh}.json |
Title/description shown on the Plugins page |
docs/index.json |
Plugin market index (format 1), served from GitHub Pages |
docs/PUBLISHING.md |
Release process (npm, GitHub, market index) |
The browser half is a hand-written ModuleLoader bundle
(window.__ModuleLoader__.load({ factory })) with no build step — edit and reload the page.
See docs/PUBLISHING.md.
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: mcp、deepseek-harness。