xiake-1/dsh-unity-mcp-bridge ↗★ 0
dsh-unity-mcp-bridge
提供按需启用的 Unity MCP 桥接工具 适合游戏开发用户,提供工具列表同步及自动断开重连机制。
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:xiake-1/dsh-unity-mcp-bridge说明文档
阅读完整 README ↗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:
| Field | Default | Meaning |
|---|---|---|
autoStart | false | Dormant by default: no connection and no bridged tools until a session opts in. Set true to connect at boot (the old always-on behaviour). |
activateToolName | unity_mcp_activate | Name of the always-registered activation hook. |
restoreDeactivates | true | unity_tools_restore also disconnects, returning the session to dormant. false keeps the connection alive. |
skillModelInvocable | false | The catalog skill is not offered to the model, so it never auto-loads and Unity capability never turns on by itself. |
skillUserInvocable | true | The 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. |
resyncIntervalMs | 0 | Periodic 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. |
restoreToolName | unity_tools_restore | Name of the native restore hook. |
keepEnabledTools | [] | Extra raw tool names the restore hook leaves enabled (on top of tool-set-enabled-state). |
registerCatalogSkill | true | Register the shipped catalog as a runtime skill. |
skillName | unity-mcp-tools | Skill name / slash command (/unity-mcp-tools). |
registerHelperSkills | true | Register the two shipped helper skills (/unity-mcp-install, /unity-mcp-check). |
installSkillName | unity-mcp-install | Name of the skill that installs the Unity-side plugin into the workspace's Unity project. |
checkSkillName | unity-mcp-check | Name of the skill that verifies the bridge reaches Unity and repairs the profile URL. |
helperSkillsModelInvocable | true | The helpers, unlike the catalog, are offered to the model so it can reach for them unprompted. |
helperSkillsUserInvocable | true | They are also user-invocable slash commands. |