Skip to main content
Glama
signal-slot

MCP GDB Server

by signal-slot

MCP GDB サーバー

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

特徴

  • GDBデバッグセッションを開始および管理する

  • 分析のためにプログラムとコアダンプをロードする

  • ブレークポイントを設定し、コードをステップ実行し、メモリを調べる

  • コールスタック、変数、レジスタを表示する

  • 任意のGDBコマンドを実行する

Related MCP server: GCP MCP

インストール

# 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 : レジスタを表示する

ライセンス

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

Install Server
A
security – no known vulnerabilities
F
license - not found
A
quality - confirmed to work

Resources

Looking for Admin?

Admins can modify the Dockerfile, update the server description, and track usage metrics. If you are the server author, to access the admin panel.

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/signal-slot/mcp-gdb'

If you have feedback or need assistance with the MCP directory API, please join our Discord server