dsh-unity-debug-bridge
dsh-unity-debug-bridge
DSH ↔ Unity Editor 断点调试桥:以 MCP server(stdio) 形式,把 Unity Editor 托管代码(Mono)的调试能力暴露给 DSH agent —— 附加到编辑器、下断点、单步、读调用栈、只读求值。
能力
工具 | 说明 |
| 附加到 Unity Editor(读 |
| 断点;continue 阻塞到命中返回 stopped; |
| 单步与暂停 |
| 调用栈与变量 |
| 只读求值(context=watch,禁止改状态) |
| 会话状态与清理 |
Related MCP server: rr-mcp
前置条件
Node.js ≥ 18
Unity Editor(已打开目标项目),脚本调试已启用(见下)
DAP adapter:从 Unity-Technologies/vscode-unity-debug master 分支源码构建(2019 年的 Release 二进制不支持 Unity 2022.3),见 docs/adapter-contract.md
安装到 DSH
node install.mjs
# 然后重启 DSH,/mcp 面板出现 unity-debug-bridge(13 个 unity_* 工具)或在 DSH 的 MCP 设置里手动添加 stdio 服务器:
- insert:
- id: mcp-unity-debug-bridge
name: "@deepseek-ai/dsh-mcp-client"
config:
serverName: unity-debug-bridge
transport: stdio
command: node
args: ["<本包路径>/server/mcp-server-stdio.mjs"]
cwd: "<本包路径>"
toolCallTimeoutMs: 120000使用要点(踩坑实录,务必读)
会话必须干净结束、可反复 attach:Unity 2022.3 调试 agent 在会话被粗暴中断(kill adapter)后会拒绝后续 attach(连接后无握手,静默失败),只能重启编辑器恢复。只要通过
unity_detach(优雅断开)结束会话,同一编辑器可反复 attach,无需重启。不要做 TCP 预检:任何多余连接(connect+close)都会破坏 agent 状态;查端口用 netstat。不要用 ping 类工具去连调试端口。
EditorAttach 偏好:
EditorPrefs "EditorAttach"=true必须在编辑器启动前已持久化(运行时设置无效),否则调试 agent 不监听。可在编辑器内执行一次EditorPrefs.SetBool("EditorAttach", true)后重启编辑器。调试端口:Editor 调试端口 =
56000 + process_id % 1000(process_id来自<project>/Library/EditorInstance.json),不是固定 56000。DAP 传输:Content-Length 帧(非逐行 JSON);该 adapter 不支持
configurationDone请求。
License
MIT
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Alicense-qualityAmaintenanceSeamless automation and intelligent control over your Unity projects. By integrating with the MCP server and client, it allows AI agents or external tools to interact with your Unity environment—creating, modifying, and managing GameObjects, Components, Assets, Scenes, and more.3,860Apache 2.0
- Alicense-qualityDmaintenanceMCP server for orchestrating multi-process rr debugging sessions with reverse execution, breakpoints, and dynamic session state.1MIT
- AlicenseBqualityCmaintenanceMCP server for structured patching of Mono / .NET assemblies.6MIT
- Alicense-qualityAmaintenanceProvides MCP tools to manage and interact with Unity debug sessions in VS Code, including breakpoints, snapshots, evaluation, and stepping, via a named pipe to the Unity Debugger Pure extension.MIT
Related MCP Connectors
MCP server for understanding Javascript internals from ECMAScript specification.
MCP server for Klever blockchain smart contract development.
An MCP server for deep research or task groups
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/goesByhc/dsh-unity-debug-bridge'
If you have feedback or need assistance with the MCP directory API, please join our Discord server