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: re-dotnet-patch
前提条件
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 deployed
Maintenance
Related MCP Connectors
MCP server to assist with JxBrowser development.
MCP server for understanding Javascript internals from ECMAScript specification.
MCP server for Klever blockchain smart contract development.
Related MCP Servers
- AlicenseNot gradedqualityAmaintenanceSeamless 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.4,455Apache 2.0
- AlicenseBqualityCmaintenanceMCP server for structured patching of Mono / .NET assemblies.6MIT
- AlicenseNot gradedqualityAmaintenanceProvides 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
- FlicenseNot gradedqualityBmaintenanceLocal Streamable HTTP MCP server exposing Unity Editor inspection, authoring, testing, profiling, play-mode, and build tools.-