Skip to main content
Glama

MCP サーバー GDB

MCP プロトコルに基づく GDB/MI プロトコル サーバー。AI アシスタントによるリモート アプリケーション デバッグ機能を提供します。

特徴

  • GDBデバッグセッションの作成と管理

  • ブレークポイントの設定と管理

  • スタック情報と変数を表示する

  • プログラム実行を制御する(実行、一時停止、ステップ実行など)

  • 同時マルチセッションデバッグをサポート

  • エージェントの行動を検査してプロンプトを改善するための組み込みTUI(WIP)

Related MCP server: gdb_mcp

インストール

ビルド済みバイナリ

リリース ページでバイナリを見つけ、作業プラットフォームごとに 1 つ選択すると、直接実行できます。

ソースからビルド

リポジトリをクローンしてcargoでビルドする

cargo build --release
cargo run

使用法

  1. 直接実行してください: ./mcp-server-gdb

  2. サーバーは 2 つのトランスポート モードをサポートしています。

    • Stdio (デフォルト): 標準入出力トランスポート

    • SSE: Server-Sent Events トランスポート、デフォルトはhttp://127.0.0.1:8080

構成

src/config.rsファイルを変更するか、環境変数を使用してサーバーの構成を調整できます。

  • サーバーIPアドレス

  • サーバーポート

  • GDBコマンドのタイムアウト時間(秒)

サポートされているMCPツール

セッション管理

  • create_session - 新しいGDBデバッグセッションを作成する

  • get_session - 特定のセッション情報を取得する

  • get_all_sessions - すべてのセッションを取得する

  • close_session - セッションを閉じる

デバッグ制御

  • start_debugging - デバッグを開始する

  • stop_debugging - デバッグを停止する

  • continue_execution - 実行を継続する

  • step_execution - 次の行にステップインする

  • next_execution - 次の行をステップオーバーする

ブレークポイント管理

  • get_breakpoints - ブレークポイントリストを取得する

  • set_breakpoint - ブレークポイントを設定する

  • delete_breakpoint - ブレークポイントを削除する

デバッグ情報

  • get_stack_frames - スタックフレーム情報を取得する

  • get_local_variables - ローカル変数を取得する

  • get_registers - レジスタを取得する

  • read_memory - メモリの内容を読み取る

ライセンス

マサチューセッツ工科大学

Related MCP Connectors

Related MCP Servers

  • A
    license
    B
    quality
    D
    maintenance
    An MCP server providing direct access to gdb-multiarch for debugging Nintendo Switch executables on Yuzu or hardware via a GDB stub. It features specialized tools for offset-based breakpoints, instruction patching, and frame-pointer backtraces relative to the game's base address.
    33
    3
    MIT
  • A
    license
    A
    quality
    D
    maintenance
    An MCP server that enables AI assistants to control GDB debugging sessions, including breakpoint management, thread analysis, and variable inspection, using the GDB/MI protocol.
    22
    1
    MIT
  • A
    license
    Not graded
    quality
    C
    maintenance
    MCP server for remote debugging with gdbserver, offering full debugging capabilities including breakpoint control, stepping, memory inspection, and process management.
    MIT
  • A
    license
    B
    quality
    C
    maintenance
    MCP server that wraps gdb to enable LLMs to drive live debugging sessions, including starting sessions on binaries, attaching to processes, and running commands.
    7
    1,214 PyPI
    3
    MIT