rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
PROJECT README
English | 中文
A DeepSeek Harness (DSH) plugin that puts Skills and MCP servers under one roof, reachable from both the settings menu and a main-interface sidebar entry — with hot-reload enable/disable toggles and Git-based skill install/update.
Two entry points, one panel
Both render the identical component, so the four tabs (Skills / MCP / Remote sources / Backup) behave the same wherever you open them.
The plugin updates itself from the panel
A version card sits above the tab strip, styled exactly like the proxy card next to it: it shows the running version, checks the upstream repository on demand, and offers a one-click update when a newer tag — or newer commits on the default branch — exist.
pnpm-lock.yaml against git ls-remote of the repository declared in package.json, using the same proxy as skill installs. It reports a version bump, a newer commit without a tag, "up to date", or "local-dir install, not checked".pnpm add <the spec your profile already records> in a detached child process — it does not uninstall the plugin. If it fails, the running version keeps working; on success you restart DSH to load the new code.settledBy so the history stays auditable). A failure, a still-running install, or an update you genuinely have not restarted for keeps its notice.Why not hot-swap? The host half is ESM cached by URL and the client bundle is cached by the browser, so an in-place replacement cannot take effect without a restart anyway. The panel says so instead of claiming success.
Layout: the two entry points are handled separately
The host's layout contract differs between the centre panel and the settings page, so the shell has two modes selected by data-surface:
Scrolling: long skill lists stay reachable, with no visible scrollbar
In the centre panel only the list scrolls while the title and tabs stay pinned to the top, so the refresh button and tab strip remain reachable even at the bottom of a long list, with breathing room after the last row.
No visible scrollbar at all: the wheel, trackpad, touch, and keyboard (arrow keys / PageUp / PageDown) all keep working — only the bar is no longer drawn. The horizontal insets therefore always equal the inner padding: symmetric left and right regardless of content length or whether scrolling is needed, with no sideways jump when a scrollbar would have appeared or disappeared. The same rules cover modals, so long forms still scroll.
scrollbar-gutter: stable is deliberately not used: it reserves scrollbar width even when the content fits (measured: stable 15px, stable both-edges 30px), leaving an empty band on a page that has nothing to scroll. All three hiding mechanisms are declared — scrollbar-width, -ms-overflow-style, and ::-webkit-scrollbar — so no browser falls back to a native bar that would skew the insets.
Ordering: alphabetical, always
List order is predictable, so you never have to hunt through entries:
Chrome_DevTools_MCP sorts before REA, instead of all uppercase names clumping at the top. Only when two names are identical in lowercase does the raw string break the tie, keeping the order stable.cordis.patch.yml in that same order, so the file and the UI never disagree.Skills
Lists every skill from all four standard roots, in official rank order: project .dsh/skills (100) → project .agents/skills (200) → user ~/.dsh/skills (400) → user ~/.agents/skills (500).
Handles both layouts: directory bundles (<name>/SKILL.md) and flat files (<name>.md), plus nested/categorised trees.
Enable/disable is a lossless rename: SKILL.md ⇄ SKILL.md.disabled (or <name>.md ⇄ <name>.md.disabled). The official provider only recognises the exact filenames, so the skill leaves the catalog while its files and references/, scripts/, assets/ stay fully intact. The provider's watcher picks the change up on the next catalog refresh — no restart.
Malformed skills stay listed but flagged 格式不合规 / Invalid format, so you can fix or delete them rather than being unable to see them.
Plugin-registered skills (no file on disk) are listed read-only.
Create, edit, and delete skills through the built-in editor; frontmatter is validated before anything touches disk.
Install / update from Git: shallow-clone a repository (or a subdirectory of one), discover every valid skill inside, and copy it to the chosen root. Records the source so you can re-pull later; git ls-remote tells you whether an update exists.
Junk directories are filtered out on write: .git, .hg, .svn, node_modules, __pycache__, .venv and friends never land in the skill directory. When the repository root is the skill bundle (a SKILL.md at the top level), the clone's .git would otherwise be copied wholesale — worth several MB of commit history and remote URLs. The UI lists exactly what was skipped.
Type / in a session to pick a skill: this plugin registers the skills it manages into DSH's skill registry, so the / menu matches and invokes them directly. A skill marked disable-model-invocation: true appears only there (the model never sees it), and a skill shown as disabled in the UI never appears in /. Changes take effect immediately — no restart.
Why this plugin supplies its own provider: the host-level
@deepseek-ai/dsh-skill-filesystemrow is deliberately disabled by the web app (its comment reads “presets own local discovery”), leaving each agent preset to mount its own. On some presets that provider does not actually take effect — skills on disk then appear neither in/nor to the model. This plugin does not depend on the preset being correct; it registers the roots it manages itself.
Proxy: a Git proxy field above the tabs
On many networks a direct git clone of a repository times out, which makes installing and updating skills impossible. A proxy bar sits above the four tabs — it is a prerequisite shared by every Git operation in every tab (install, update, check for updates), not a setting belonging to one of them.
git -c http.proxy=… -c https.proxy=… <subcommand>. Your global git config is never rewritten — try git config --global --get http.proxy before and after; it is untouched. The plugin only adds flags to its own calls.-c flags are added at all, so git falls back to whatever you configured globally (direct, or your own git config proxy). A git p-on-style global setting keeps working.http://user:pass@host:port has its password masked (http://user:***@host:port) everywhere it is sent to the browser, and is omitted from exported bundles unless you tick "Include MCP secrets". The field echoes the masked form; saving it unchanged, or editing only the host/port, keeps the stored password rather than clearing it. If a bundle carries a masked password and this machine has none, the import plan says so instead of writing an empty one that would fail confusingly later.http, https, socks4, socks4a, socks5, socks5h. A blank or malformed address is rejected with a readable reason rather than silently disabling the proxy.MCP servers
@deepseek-ai/dsh-mcp-client rows, and inspect servers declared elsewhere in config read-only.${MY_TOKEN} in any env or header value and it is written as a real !!js expression (\Bearer ${process.env.MY_TOKEN}`) — DSH has no${VAR}interpolation, so this is the only mechanism that actually reads the environment. The!!js` tag round-trips byte-exactly through every edit.Add MCP servers by pasting JSON
The MCP tab's “Add from JSON” takes a configuration straight from a doc so you don't have to copy it field by field.
mcpServers, VS Code servers, a bare array, a single server object, and even a bare name → config map all parse.serverName / name / id. The transport may be declared with type / transport; a lone url implies streamable-http, everything else is stdio.cordis.patch.yml until you confirm, and a batch triggers one remount instead of one per server.command fails only that entry; the rest import normally and every error is listed.${VAR} reference) produces a warning, because it will land in cordis.patch.yml in plain text.streamable-http with a warning rather than pretending they work — DSH's MCP client only supports stdio and streamable-http.MCP servers that require OAuth
Streamable-HTTP servers behind OAuth (Linear, Notion, Sentry and many hosted MCP endpoints) work too, even though DSH itself does not support it:
@deepseek-ai/dsh-mcp-client builds its transport as new StreamableHTTPClientTransport(url, { requestInit: { headers } }) — its config schema has only url and headers, no authProvider, and it never surfaces UnauthorizedError. So there is no hook to hand DSH an OAuth provider. The plugin runs the authorization-code flow itself and writes the resulting token into that row's Authorization header, which DSH then sends like any static bearer.resource is sent per RFC 8707 so the token is scoped to that server.127.0.0.1 on a random port, validates state with a constant-time compare, and shuts down as soon as the code arrives (5-minute timeout).refresh_token lives in <dshHome>/skill-mcp-tool/oauth.json (mode 600); only the access token is written into cordis.patch.yml.Authorization header it wrote, so the row does not keep a dead token.Authorization header is recognised and reported as such — that row needs no OAuth flow. This includes values written as a !!js expression, so Bearer ${GITHUB_TOKEN} counts as configured rather than showing "not authorized". Header names are case-insensitive per HTTP, so authorization works too, and the authorize / refresh / forget write paths clear every casing variant before writing the canonical name — a row never ends up with two Authorization headers.Backup: export / import your setup (for moving machines)
The Backup tab packs everything this plugin manages — Skills + MCP servers + Git source records — into a single JSON file you can import on a new machine.
Two payload modes, chosen at export time:
| Mode | Contains | Size | On import |
|---|---|---|---|
| Recipe (default) | Just the source: repository + commit + layout | usually a few KB | Re-clones from the recorded repo — needs network |
| Full contents | The skill files too (binaries as base64) | can be several MB | Restores files directly — works offline |
# From GitHub (recommended; works with any profile)
dsh plugin --profile web add github:artorias-zj/dsh-skill-mcp-tool
# The desktop profile also accepts the full URL
dsh plugin --profile desktop add https://github.com/artorias-zj/dsh-skill-mcp-tool
Or install from the DSH sidebar Plugins page by pointing at this directory. Then restart DSH so the client bundle is served.
Restart required. The plugin's client JavaScript is addressed by URL and cached by the browser/module system. Enabling the plugin compiles and mounts the host half immediately; the settings page and sidebar entry appear after a restart.
DSH has no runtime API to add, remove, or restart an MCP connection. A server is a loader row, and the supported way to change it is to edit its configuration and let HMR remount the row. This plugin writes to the profile's cordis.patch.yml, which DSH's HMR watches, then polls the loader to confirm the row actually remounted.
disabled boolean → HMR disposes or mounts the connection in place.The panel reports what actually happened: when a change is written but the host has not finished remounting, it says so rather than claiming success.
MCP rows are written inside a dedicated managed block:
# >>> dsh-skill-mcp-tool:mcp:begin
- insert:
- id: smt-mcp-<serverName>
name: "@deepseek-ai/dsh-mcp-client"
config: { ... }
# <<< dsh-skill-mcp-tool:mcp:end
Everything outside the markers is preserved byte for byte, so other plugins' managed blocks (for example dsh-skill-mcp-panel) and your hand-written rows are never touched. Rows owned by other tools appear as read-only "external" servers. Writes take a <file>.smt.lock lock and use an atomic temp-file rename, so a concurrent writer cannot corrupt the file.
Optional config on the row in cordis.patch.yml:
| Field | Default | Meaning |
|---|---|---|
dshHome |
$DSH_HOME or ~/.dsh |
Harness home used to locate skill roots, the profile patch, and the source record |
| Path | Purpose |
|---|---|
<profile>/cordis.patch.yml |
MCP server rows, inside the managed block |
<dshHome>/skills/** |
Skills it installs, creates, edits, or toggles |
<dshHome>/skill-mcp-tool/sources.json |
Index of Git install sources (an index only — deleting it never affects installed skills) |
<dshHome>/skill-mcp-tool/settings.json |
Plugin settings — currently just the Git proxy. Kept out of cordis.patch.yml on purpose: this plugin owns only the bytes between its MCP markers |
<dshHome>/skill-mcp-tool/update.json |
Progress of the last self-update (phase, exit code, from/to version, settledBy). Written by the child process so the panel can read it even after a restart; retired automatically once the update is proven applied |
<dshHome>/skill-mcp-tool/update.log |
Output of the last pnpm add run, shown in the panel on failure |
<dshHome>/skill-mcp-tool/oauth.json |
MCP OAuth records, including refresh tokens, mode 600. Tokens never reach the browser; only the access token is written into cordis.patch.yml |
All routes are same-origin, POST-only for writes, with an origin check that rejects cross-site requests.
| Route | Purpose |
|---|---|
state |
Skills + MCP + sources + proxy + environment in one read |
skill/set-enabled, skill/remove, skill/read, skill/write |
Skill management |
skill/install, skill/update, skill/check-updates, skill/forget-source |
Git sources |
mcp/list, mcp/save, mcp/remove, mcp/set-enabled |
MCP management |
mcp/oauth/status, mcp/oauth/authorize, mcp/oauth/refresh, mcp/oauth/forget |
OAuth for HTTP MCP servers: state / start authorization / rotate token / disconnect |
proxy/get, proxy/save, proxy/test |
Git proxy: read / write / probe both paths |
bundle/export, bundle/plan, bundle/import |
Settings export / review / import |
update/check, update/status, update/apply |
Self-update: compare with upstream / poll progress / start it |
| Field | Value |
|---|---|
| One-line value | Unified Skills + MCP manager with hot-reload toggles and Git-based skill install/update |
| Category | Skills & MCP |
| Supported profiles | desktop / web |
| Compatibility | DeepSeek Harness 0.2.x; Node.js ^22.15 or >=24; Windows / macOS / Linux |
| Permissions & services | Reads/writes the profile cordis.patch.yml and local skill roots; runs git for install/update (optionally through a proxy you configure); no telemetry |
| License | MIT |
MIT
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: mcp、deepseek-harness。