MCP サーバー GDB
MCP プロトコルに基づく GDB/MI プロトコル サーバー。AI アシスタントによるリモート アプリケーション デバッグ機能を提供します。
特徴
GDBデバッグセッションの作成と管理
ブレークポイントの設定と管理
スタック情報と変数を表示する
プログラム実行を制御する(実行、一時停止、ステップ実行など)
同時マルチセッションデバッグをサポート
エージェントの行動を検査してプロンプトを改善するための組み込みTUI(WIP)
インストール
ビルド済みバイナリ
リリース ページでバイナリを見つけ、作業プラットフォームごとに 1 つ選択すると、直接実行できます。
ソースからビルド
リポジトリをクローンしてcargoでビルドする
使用法
直接実行してください:
./mcp-server-gdb
サーバーは 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
- メモリの内容を読み取る
ライセンス
マサチューセッツ工科大学
This server cannot be installed
hybrid server
The server is able to function both locally and remotely, depending on the configuration or use case.
MCP プロトコルに基づく GDB/MI プロトコル サーバー。リモート アプリケーションのデバッグ機能を提供します。
Related MCP Servers
- -securityAlicense-qualityA MCP server for LLDB that allows automatic analyzing, debugging and disassembling of native apps.Last updated -59BSD 2-Clause "Simplified" License
- AsecurityAlicenseAqualityAn MCP server that connects to your React Native application debuggerLast updated -213326MIT License
- -securityAlicense-qualityAn MCP server that exposes GABI functionality, allowing users to run queries against a target endpoint with proper authentication.Last updated -2GPL 3.0
- AsecurityAlicenseAqualityA server that provides Model Control Protocol (MCP) tools for High Performance Computing, designed to integrate with Large Language Models in IDEs like Cursor and VSCode for debugging and other HPC tasks.Last updated -11MIT License