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 のデバッグエージェントは、セッションが強制的に中断(adapter を kill)されると、後続の attach を拒否します(接続後にハンドシェイクがなく、静かに失敗します)。エディタを再起動するしか復旧できません。
unity_detach(グレースフル切断)でセッションを終了すれば、同じエディタに繰り返し attach でき、再起動は不要です。TCP の事前チェックをしない:余分な接続(connect+close)はエージェントの状態を壊します。ポートを調べるには netstat を使用してください。ping 系のツールでデバッグポートに接続しないでください。
EditorAttach 設定:
EditorPrefs "EditorAttach"=trueはエディタ起動前に永続化されている必要があります(実行時の設定は無効です)。そうでないとデバッグエージェントがリッスンしません。エディタ内でEditorPrefs.SetBool("EditorAttach", true)を一度実行してからエディタを再起動してください。デバッグポート:Editor のデバッグポート =
56000 + process_id % 1000(process_idは<project>/Library/EditorInstance.jsonから取得)。固定 56000 ではありません。DAP 転送:Content-Length フレーム(行ごとの JSON ではない)。この adapter は
configurationDoneリクエストをサポートしていません。
詳細は docs/adapter-contract.md を参照。
ライセンス
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