MCP Server GDB

by pansila
Verified
MIT License
13
  • Linux
  • Apple

local-only server

The server can only run on the client’s local machine because it depends on local resources.

Integrations

  • Integration with Rust for debugging Rust applications, allowing users to set breakpoints, view stack information, and control program execution through GDB.

MCP サーバー GDB

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

特徴

  • GDBデバッグセッションの作成と管理
  • ブレークポイントの設定と管理
  • スタック情報と変数を表示する
  • プログラム実行を制御する(実行、一時停止、ステップ実行など)
  • 同時マルチセッションデバッグをサポート

インストール

ビルド済みバイナリ

リリース ページでバイナリを見つけ、作業プラットフォームごとに 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 - メモリの内容を読み取る

ライセンス

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

-
security - not tested
A
license - permissive license
-
quality - not tested

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

  1. Features
    1. Installation
      1. Pre-built Binaries
      2. Build From Source
    2. Usage
      1. Configuration
        1. Supported MCP Tools
          1. Session Management
          2. Debug Control
          3. Breakpoint Management
          4. Debug Information
        2. License
          ID: md0l0j81g1