DSH Plugins Marketplace

DSH Plugins

Plugins

/

dsh-unity-mcp-bridge

x

dsh-unity-mcp-bridge

Manifest valid

A plugin that connects unitymcp (a third-party unitymcp tool, verified to deliver both speed and quality) and dsh, while also adding skill tools, streamlining the input and output volume of unitymcp, and accelerating the speed of using agents to assist Unity development.

hasBundlePatchMachine translated

dsh-unity-mcp-bridge

Feature overview and a measured comparison of "tools vs handling it directly from files" (token cost and latency, with the numbers behind them): FEATURES-AND-COMPARISON.md (Chinese).

中文说明(简明版)→ README.zh.md

A self-contained DeepSeek Harness (DSH) plugin that connects on demand to a Unity MCP server (AI Game Developer / com.ivanmurzak.unity.mcp). It is dormant until the user runs /unity-mcp-tools — Unity capability never turns on by itself (see Activation model). On top of that it adds the three things the stock @deepseek-ai/dsh-mcp-client does not give you:

  1. A vendored implementation — the bridge lives in this package, so a DSH/npx upgrade cannot silently revert it. (Patching the installed lib/index.js gets wiped on upgrade; this does not.)
  2. A shipped tool catalog skill — skills/SKILL.md (index) plus skills/reference/*.md (per-category detail) are registered as a runtime skill at activation. The model loads the index on demand and reads one category file only when it needs it.
  3. A restore-when-done helper tool — unity_tools_restore disables every Unity tool except the tool-management ones, so an on-demand tool set collapses back to the minimal resident set when the task is over.

It also carries the original fix that makes the workflow possible at all: resyncAfterTools — after a listed tool call returns, the bridge re-fetches tools/list itself and swaps the registry, instead of waiting for the server's notifications/tools/list_changed (which DSH's long-lived session does not receive).

Why not just patch the installed package?

@deepseek-ai/dsh-mcp-client is a build artifact inside the npx cache (.../node_modules/@deepseek-ai/dsh-mcp-client/lib/index.js). npx @deepseek-ai/dsh can reinstall or upgrade it at any time, silently dropping a hand-applied patch. Vendoring the implementation here makes the behaviour yours and version-pinned.

Install

The plugin is a normal npm package with @deepseek-ai/* declared as peer dependencies (the host provides them, exactly like upstream and like third-party plugins such as dshmarket). Only @modelcontextprotocol/sdk, zod and @deepseek-ai/schemastery are real dependencies.

DSH version compatibility

The five @deepseek-ai/dsh-* peers declare a floor, not a pin (>=0.1.5-rc.2), so one checkout installs into any DSH runtime from 0.1.5-rc.2 onward. Verified against the host's own gate (dsh-app-boot → evaluatePluginCompatibility, i.e. semver.satisfies(version, range, { includePrerelease: true })) for 0.1.5-rc.2, 0.1.7-rc.2 and 0.2.0-rc.2; the host API this package uses is unchanged across them. @deepseek-ai/cordis keeps ^4.0.2 — it is a separate version line and the host does not gate it. A genuinely incompatible future runtime is still reported by the host's install-time gate.

# 1) install into the profile that runs the MCP bridge (this profile forwards to pnpm)
#    <profile> is `web` for `dsh web`, `desktop` for the DeepSeek Harness desktop app
dsh plugin --profile <profile> add file:<path-to-this-checkout>
#    or straight from git:
dsh plugin --profile <profile> add git+https://github.com/xiake-1/dsh-unity-mcp-bridge.git

# 2) point your profile patch entry at this package instead of the stock client
#    %DSH_HOME%/profiles/<profile>/cordis.patch.yml
- insert:
    - id: unity-mcp
      name: 'dsh-unity-mcp-bridge'
      config:
        serverName: unity
        transport: streamable-http
        url: http://localhost:24009/p/<your-token>
        resyncAfterTools:
          - tool-set-enabled-state
        resyncIntervalMs: 0
  1. Restart the app (dsh web, or the desktop app). The skill and the helper tool appear automatically.

Do not run this bridge and the stock @deepseek-ai/dsh-mcp-client against the same serverName at the same time. They are separate module instances, so each believes it owns the namespace, and both would publish the same public tool names.

Companion skills: install and check

Two more shipped runtime skills cover the other half of the setup — the Unity-side plugin, and the link between the two halves. Unlike the catalog they are model-visible by default (they are the on-ramp and the doctor, not the Unity capability itself), and both are also slash commands:

SkillWhat it does
/unity-mcp-installChecks whether unity-mcp-cli is on the machine — installs it with npm install -g unity-mcp-cli when it is missing — then finds the Unity project inside the current workspace (by ProjectSettings/ProjectVersion.txt). If com.ivanmurzak.unity.mcp is already in Packages/manifest.json it says so; otherwise it runs unity-mcp-cli install-plugin <project> and re-reads the manifest to verify.
/unity-mcp-checkFinds the same project and pins everything to port 20000. The Unity side is rewritten with unity-mcp-cli bootstrap-local --url http://localhost:20000/ (the project's own UserSettings/AI-Game-Developer-Config.json, after a timestamped backup and a --dry-run diff); the DSH side's unity-mcp row is corrected to http://localhost:20000/mcp when it drifted; other clients still pinned to the old port are reported rather than silently broken. It then initializes the Unity tool set to a single enabled tool — tool-set-enabled-state, the same keep-set unity_tools_restore uses — with two unity-mcp-cli configure calls — --disable-all-tools, then --enable-tools tool-set-enabled-state; they must not be combined, because disable-all wins and would turn off the one management tool that can undo it (no running Editor needed), probes the port and HTTP endpoint, and finishes by loading the bridge with unity_mcp_activate to prove the link.

Both follow the documented setup flow at https://ai-game.dev/engines/unity. Set registerHelperSkills: false to ship without them; the configuration table below has the name and invocation knobs.

Configuration

Everything the stock client accepts (serverName, transport, command/args/env/cwd for stdio, url/headers for streamable-http, toolCallTimeoutMs, failOnStartupError, reconnect.*) works unchanged. On top of that:

FieldDefaultMeaning
autoStartfalseDormant by default: no connection and no bridged tools until a session opts in. Set true to connect at boot (the old always-on behaviour).
activateToolNameunity_mcp_activateName of the always-registered activation hook.
restoreDeactivatestrueunity_tools_restore also disconnects, returning the session to dormant. false keeps the connection alive.
skillModelInvocablefalseThe catalog skill is not offered to the model, so it never auto-loads and Unity capability never turns on by itself.
skillUserInvocabletrueThe skill is user-invocable: /unity-mcp-tools is the opt-in entry point.
resyncAfterTools[]Raw MCP tool names whose call completion triggers a tools/list re-sync and registry swap. Set it to ['tool-set-enabled-state'] for the on-demand workflow. The trigger runs ~200 ms after the call returns, so the in-flight result finalizes first.
resyncIntervalMs0Periodic re-sync (ms); 0 disables. Enabling it also picks up switches flipped by hand in the Unity window, at the cost of rebuilding the tool registrations every tick.
restoreToolNameunity_tools_restoreName of the native restore hook.
keepEnabledTools[]Extra raw tool names the restore hook leaves enabled (on top of tool-set-enabled-state).
registerCatalogSkilltrueRegister the shipped catalog as a runtime skill.
skillNameunity-mcp-toolsSkill name / slash command (/unity-mcp-tools).
registerHelperSkillstrueRegister the two shipped helper skills (/unity-mcp-install, /unity-mcp-check).
installSkillNameunity-mcp-installName of the skill that installs the Unity-side plugin into the workspace's Unity project.
checkSkillNameunity-mcp-checkName of the skill that verifies the bridge reaches Unity and repairs the profile URL.
helperSkillsModelInvocabletrueThe helpers, unlike the catalog, are offered to the model so it can reach for them unprompted.
helperSkillsUserInvocabletrueThey are also user-invocable slash commands.

Activation model (opt-in)

The plugin is dormant from boot: it registers exactly two tiny hook tools and does not connect to Unity, so a session that never asks for Unity pays ~895 characters (~224 tokens) and nothing else.

boot ──► DORMANT ──(/unity-mcp-tools ─► unity_mcp_activate)──► ACTIVE ──(unity_tools_restore)──► DORMANT
          2 hook tools                                          bridged mcp__unity__* tools
  1. The user invokes /unity-mcp-tools. The skill is model-invisible (skillModelInvocable: false), so this is the only way in; its body is injected as instructions.
  2. The model calls unity_mcp_activate → the bridge connects, and the Unity tools currently enabled on the Unity side are registered (mcp__unity__*).
  3. Work proceeds with the on-demand enable/use workflow below.
  4. unity_tools_restore disables every Unity tool except tool-set-enabled-state and disconnects, so the session is dormant again.

Workflow the model is told to follow

The skill body states it, and the hook tools enforce the ends of it:

  1. Activate — unity_mcp_activate (the first step after /unity-mcp-tools).
  2. Locate — read the index, then the one reference/<category>.md that matters.
  3. Enable — mcp__unity__tool-set-enabled-state with the needed commands set to enabled: true. Takes effect on the next step (the registry is rebuilt at request boundaries), never in the same step.
  4. Use — call mcp__unity__<command> on the next step.
  5. Restore — call unity_tools_restore when the Unity work is done. It disables everything except the management tool. Keep specific tools with unity_tools_restore({ "keep": ["gameobject-find"] }).

Every enabled command contributes its full JSON schema to every subsequent model request; disabled ones contribute nothing. Enabling is a temporary, reclaimable cost — forgetting step 4 is what turns it permanent. The restore helper exists so step 4 never requires enumerating 73 names.

Regenerating the catalog

tools/generate-unity-mcp-catalog.ps1 scans the installed com.ivanmurzak.unity.mcp@* package and rewrites skills/SKILL.md plus skills/reference/*.md (categories come from the plugin's own [AiTool(Title = ...)] attributes). Re-run it after a Unity plugin upgrade, then restart dsh web.

powershell -NoProfile -ExecutionPolicy Bypass -File tools/generate-unity-mcp-catalog.ps1 -ProjectRoot <your-unity-project>

Uninstall / rollback

dsh plugin --profile web remove dsh-unity-mcp-bridge

Then point the profile patch entry back at @deepseek-ai/dsh-mcp-client (or delete the row). No files outside this package are modified, so rollback is just the removal.

Provenance and license

lib/index.js is derived from @deepseek-ai/dsh-mcp-client v0.1.5-rc.2 (MIT, Copyright (c) 2026 DeepSeek — see LICENSE). The file header lists the exact modifications: plugin rename, resyncAfterTools/resyncIntervalMs, sync-completion reporting, the restore helper, and the runtime catalog skill. The MIT license permits this; the upstream copyright notice is retained.

Self-test

tools/selftest.mjs drives the real plugin against a live Unity MCP server with a minimal fake host context — no DSH restart needed. It needs the package dependencies installed (pnpm install inside the package, or run it from a profile that already has them), and it reads the endpoint from UNITY_MCP_URL, so no project token is stored in the repository.

$env:UNITY_MCP_URL = 'http://localhost:24009/p/<your-token>'   # your project's own endpoint
node tools/selftest.mjs

It asserts, in order: the module exports; Config accepts every new field with upstream-compatible defaults; apply() connects and registers both the bridged tool and the native helper; the catalog skill registers with the right resourceBase and a body containing the workflow; calling the bridged management tool makes the bridge re-sync on its own (the newly enabled tool appears in the registry); and the restore helper disables everything outside its keep set. Observed output on the reference setup:

3) apply() 启动…
   [info] unity-mcp-bridge: catalog skill "unity-mcp-tools" registered
   桥接工具: mcp__unityprobe__tool-set-enabled-state
   原生工具: unity_tools_restore
   技能正文包含工作流与恢复指令: true
4) 通过桥接工具开启 gameobject-find …
   [info] unity-mcp-bridge(unityprobe): tool tool-set-enabled-state returned, re-syncing tool list
   >>> 自动重同步是否生效: 是 ✓
5) 调用恢复工具 keep=[unity-tool-list] …
   返回: Disabled 1 Unity-MCP tool(s); kept enabled: tool-set-enabled-state, unity-tool-list.
   恢复后桥接工具: mcp__unityprobe__tool-set-enabled-state

Status

  • Verified against a live Unity MCP server: module load, Config defaults, apply() registration (bridged tools + native helper), runtime skill registration with resourceBase, self-driven re-sync after a management-tool call, and the restore helper's disable-everything-except-keep behaviour. See tools/selftest.mjs.
  • Not verified here: installation via dsh plugin --profile web add and a full dsh web boot with the plugin mounted — that needs a profile install and a DSH restart.

Comments

Loading…

Similar plugins

dsh-cordis-universal-adapter

by helibeiqi

Universal bridge adapter for DeepSeek Harness: consume external MCP servers & Agent Plugins 1.0 packages, and expose DSH native tools back as a standard MCP server. Host composition layer, bidirection

Tools & CapabilitiesManifest valid

★ 0

MIT

TypeScript

Aug 28, 2026

dsh plugin --profile web add @helibeiqi/dsh-cordis-universal-adapter

One-shot mcp-unity integration for DeepSeek Harness: bundled MCP server with zero manual config lets the agent drive the Unity editor through 34 tools - scenes, game objects, transforms, materials, pr

Tools & CapabilitiesManifest valid

★ 0

dsh plugin --profile web add dsh-unity-mcp

by cstarc

dsh 项目桥接插件:自动导入 .claude/.agents/.trae skills 并桥接 MCP 服务器(HTTP/SSE + stdio),GUI 开关控制、状态持久化

Manifest valid

★ 0

MIT

JavaScript

Oct 8, 2026

dsh plugin --profile web add dsh-skill-mcp-bridge

by functy23

DeepSeek Harness 的 MCP 服务与 Skills 管理器:面板里增删改 MCP 行、扫描导入其他 Agent 配置、管理 Skills(DSH Web 插件)

Tools & CapabilitiesManifest valid

★ 17

↓ 450/wk

MIT

TypeScript

Oct 6, 2026

dsh plugin --profile web add dsh-mcp-studio

by Momojie-S

DSH 插件: 按 workspace 加载 MCP server (agent-scoped)

Sessions & MessagesManifest valid

★ 3

MIT

TypeScript

Oct 10, 2026

dsh plugin --profile web add @momojie-s/dsh-workspace-mcp

by Js2Hou

用于 DeepSeek Harness 的 MCP 可视化管理插件:在「设置 → MCP」中查看已安装/启用的 MCP 服务器,支持增删、启用/停用,并实时查看连接状态。

UI & ExperienceManifest valid

★ 21

↓ 152/wk

MIT

TypeScript

Oct 10, 2026

dsh plugin --profile web add @js2hou/dsh-mcp-manager