xiake-1/dsh-unity-mcp-bridge ↗★ 0

dsh-unity-mcp-bridge

提供按需启用的 Unity MCP 桥接工具 适合游戏开发用户,提供工具列表同步及自动断开重连机制。

套件
dsh-unity-mcp-bridge
相容性
待驗證
Harness 依賴範圍
>=0.1.5-rc.2
Cordis 依賴範圍
^4.0.2
版本
0.3.3
授權
MIT
最近更新
2026年10月19日

安裝

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:xiake-1/dsh-unity-mcp-bridge

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.