MCP GDB Server

by signal-slot
Verified

local-only server

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

Integrations

  • Allows accessing the MCP GDB server repository for installation and setup.

MCP GDB サーバー

Claude やその他の AI アシスタントで使用するための GDB デバッグ機能を提供するモデル コンテキスト プロトコル (MCP) サーバー。

特徴

  • GDBデバッグセッションを開始および管理する
  • 分析のためにプログラムとコアダンプをロードする
  • ブレークポイントを設定し、コードをステップ実行し、メモリを調べる
  • コールスタック、変数、レジスタを表示する
  • 任意のGDBコマンドを実行する

インストール

# Clone the repository git clone https://github.com/signal-slot/mcp-gdb.git cd mcp-gdb # Install dependencies npm install # Build the project npm run build

使用法

Claude や他の MCP 対応アシスタントと併用する

  1. このサーバーを含めるように、Claude デスクトップ アプリまたはブラウザ拡張機能で MCP 設定を構成します。
{ "mcpServers": { "gdb": { "command": "node", "args": ["/path/to/mcp-gdb/build/index.js"], "disabled": false } } }
  1. Claude を再起動するか、ページを更新してください。
  2. これで、Claude との会話で GDB ツールを使用できるようになります。

コマンド例

Claude を介して GDB MCP サーバーを使用する例をいくつか示します。

GDBセッションの開始

Use gdb_start to start a new debugging session

プログラムの読み込み

Use gdb_load to load /path/to/my/program with the sessionId that was returned from gdb_start

ブレークポイントの設定

Use gdb_set_breakpoint to set a breakpoint at main in the active GDB session

プログラムの実行

Use gdb_continue to start execution

変数の検討

Use gdb_print to evaluate the expression "my_variable" in the current context

バックトレースを取得する

Use gdb_backtrace to see the current call stack

セッションを終了する

Use gdb_terminate to end the debugging session

サポートされているGDBコマンド

  • gdb_start : 新しいGDBセッションを開始する
  • gdb_load : プログラムをGDBにロードする
  • gdb_command : 任意のGDBコマンドを実行する
  • gdb_terminate : GDBセッションを終了する
  • gdb_list_sessions : アクティブなGDBセッションをすべて一覧表示する
  • gdb_attach : 実行中のプロセスにアタッチする
  • gdb_load_core : コアダンプファイルをロードする
  • gdb_set_breakpoint : ブレークポイントを設定する
  • gdb_continue : プログラムの実行を継続する
  • gdb_step : ステッププログラム実行
  • gdb_next : 関数呼び出しをステップオーバーする
  • gdb_finish : 現在の関数が戻るまで実行する
  • gdb_backtrace : コールスタックを表示する
  • gdb_print : 式の値を印刷する
  • gdb_examine : メモリを調べる
  • gdb_info_registers : レジスタを表示する

ライセンス

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

-
security - not tested
F
license - not found
-
quality - not tested

Claude やその他の AI アシスタントで使用するための GDB デバッグ機能を提供します。これにより、ユーザーはデバッグ セッションを管理し、ブレークポイントを設定し、変数を調べ、自然言語で GDB コマンドを実行できます。

  1. Features
    1. Installation
      1. Usage
        1. Using with Claude or other MCP-enabled assistants
        2. Example Commands
      2. Supported GDB Commands
        1. License
          ID: eezj3c4pzn