SS 

signal-slot/mcp-gdb
Developer toolsこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
161 stars 28 forks 品質 66 トレンド 20
signal-slot/mcp-gdbは、[[T0]からインポートされたMCPサーバー候補です。
概要
signal-slot/mcp-gdbは、[[T0]からインポートされたMCPサーバー候補です。
概要(AI 翻訳)
Claudeや他のAIアシスタントで使用するGDBデバッグ機能を提供するモデルコンテキストプロトコル(MCP)サーバーです。
特徴
- GDBデバッグセッションの開始および管理
- 解析用のロードプログラムおよびコアダンプ
- ブレークポイントの設定、コードのステップスルー、メモリの検査
- 呼び出しスタック、変数、レジスタの表示
- VS Code統合によるソースコード閲覧
- 任意のGDBコマンドを実行する
設置
クロード・コード
クロードデスクトップ
ClaudeデスクトップMCPの設定に以下のものを追加してください:
ソースからインストール
使用法
例示コマンド
以下はClaudeを通じたGDB MCPサーバーの使用例です:
GDBセッション開始
プログラムを読み込む
ブレークポイントを設定する
プログラムの実行
変数の検証
バックトレースを取る
セッション終了
サポートされたGDBコマンド
gdb_start: 新しいGDBセッションを開始するgdb_load:プログラムをGDBにロードするgdb_command:任意のGDBコマンドを実行するgdb_terminate:GDBセッションを終了するgdb_list_sessions:すべてのアクティブなGDBセッションを一覧表示gdb_attach:実行中のプロセスにアタッチgdb_load_core: コアダンプファイルを読み込む
このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。
README
MCP GDB Server
A Model Context Protocol (MCP) server that provides GDB debugging functionality for use with Claude or other AI assistants.
Features
- Start and manage GDB debugging sessions
- Load programs and core dumps for analysis
- Set breakpoints, step through code, and examine memory
- View call stacks, variables, and registers
- View source code with VS Code integration
- Execute arbitrary GDB commands
Installation
Claude Code
claude mcp add gdb -- npx -y mcp-gdb
Claude Desktop
Add the following to your Claude Desktop MCP configuration:
{
"mcpServers": {
"gdb": {
"command": "npx",
"args": ["-y", "mcp-gdb"]
}
}
}
Install from Source
git clone https://github.com/signal-slot/mcp-gdb.git
cd mcp-gdb
npm install
npm run build
Usage
Example Commands
Here are some examples of using the GDB MCP server through Claude:
Starting a GDB session
Use gdb_start to start a new debugging session
Loading a program
Use gdb_load to load /path/to/my/program with the sessionId that was returned from gdb_start
Setting a breakpoint
Use gdb_set_breakpoint to set a breakpoint at main in the active GDB session
Running the program
Use gdb_continue to start execution
Examining variables
Use gdb_print to evaluate the expression "my_variable" in the current context
Getting a backtrace
Use gdb_backtrace to see the current call stack
Terminating the session
Use gdb_terminate to end the debugging session
Supported GDB Commands
gdb_start: Start a new GDB sessiongdb_load: Load a program into GDBgdb_command: Execute an arbitrary GDB commandgdb_terminate: Terminate a GDB sessiongdb_list_sessions: List all active GDB sessionsgdb_attach: Attach to a running processgdb_load_core: Load a core dump filegdb_set_breakpoint: Set a breakpointgdb_continue: Continue program executiongdb_step: Step program executiongdb_next: Step over function callsgdb_finish: Execute until the current function returnsgdb_backtrace: Show call stackgdb_print: Print value of expressiongdb_examine: Examine memorygdb_info_registers: Display registersgdb_list_source: List source code at current location or specified location with VS Code integration
License
MIT
インストール
npx -y mcp-gdb設定
{
"mcpServers": {
"gdb": {
"command": "npx",
"args": ["-y", "mcp-gdb"]
}
}
}