Skip to main content
Glama
goesByhc

dsh-unity-debug-bridge

by goesByhc

dsh-unity-debug-bridge

DSH ↔ Unity Editor ブレークポイントデバッグブリッジ:MCP server(stdio) の形で、Unity Editor のマネージドコード(Mono)のデバッグ機能を DSH agent に公開します —— エディタへのアタッチ、ブレークポイントの設定、ステップ実行、コールスタックの読み取り、読み取り専用評価。

機能

ツール

説明

unity_attach

Unity Editor にアタッチ(Library/EditorInstance.json を読み込み、プロセスとポートを自動検出)

unity_set_breakpoint / unity_continue

ブレークポイント;continue はヒットするまでブロックし、stopped を返す;resumeAfterStop=true の場合はヒット後に自動で再開(AI モード)、デフォルトは停止(人が確認するモード)

unity_step / unity_step_in / unity_step_out / unity_pause

ステップ実行と一時停止

unity_stack / unity_scopes / unity_variables

コールスタックと変数

unity_evaluate

読み取り専用評価(context=watch、状態変更禁止)

unity_status / unity_detach

セッション状態とクリーンアップ

Related MCP server: rr-mcp

前提条件

  • Node.js ≥ 18

  • Unity Editor(対象プロジェクトを開いている)、スクリプトデバッグが有効(後述)

  • DAP adapter: Unity-Technologies/vscode-unity-debugmaster ブランチのソースからビルド(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

使用の要点(ハマりポイント、必読)

  1. セッションは必ずクリーンに終了し、繰り返し attach できる:Unity 2022.3 のデバッグエージェントは、セッションが強制的に中断(adapter を kill)されると、後続の attach を拒否します(接続後にハンドシェイクがなく、静かに失敗します)。エディタを再起動するしか復旧できません。unity_detach(グレースフル切断)でセッションを終了すれば、同じエディタに繰り返し attach でき、再起動は不要です。

  2. TCP の事前チェックをしない:余分な接続(connect+close)はエージェントの状態を壊します。ポートを調べるには netstat を使用してください。ping 系のツールでデバッグポートに接続しないでください。

  3. EditorAttach 設定EditorPrefs "EditorAttach"=true はエディタ起動前に永続化されている必要があります(実行時の設定は無効です)。そうでないとデバッグエージェントがリッスンしません。エディタ内で EditorPrefs.SetBool("EditorAttach", true) を一度実行してからエディタを再起動してください。

  4. デバッグポート:Editor のデバッグポート = 56000 + process_id % 1000process_id<project>/Library/EditorInstance.json から取得)。固定 56000 ではありません。

  5. DAP 転送:Content-Length フレーム(行ごとの JSON ではない)。この adapter は configurationDone リクエストをサポートしていません。

詳細は docs/adapter-contract.md を参照。

ライセンス

MIT

A
license - permissive license
-
quality - not tested
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

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

  • A
    license
    -
    quality
    A
    maintenance
    Seamless 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,860
    Apache 2.0
  • A
    license
    -
    quality
    D
    maintenance
    MCP server for orchestrating multi-process rr debugging sessions with reverse execution, breakpoints, and dynamic session state.
    1
    MIT
  • A
    license
    -
    quality
    A
    maintenance
    Provides 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

View all related MCP servers

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

View all MCP Connectors

Latest Blog Posts

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