pansila_mcp_server_gdb
0
MCP Server GDB is a server based on the GDB/MI protocol and MCP protocol, designed for remote application debugging with AI assistant support. It offers various debugging features including session management, breakpoint control, and information retrieval.
MCP Server GDB
A GDB/MI protocol server based on the MCP protocol, providing remote application debugging capabilities with AI assistants.
Features
- Create and manage GDB debug sessions
- Set and manage breakpoints
- View stack information and variables
- Control program execution (run, pause, step, etc.)
- Support concurrent multi-session debugging
Installation
Pre-built Binaries Find the binaries in the release page and choose one for your platform to run directly.
Build From Source Clone the repository and build it using cargo.
Usage
- Run directly:
./mcp-server-gdb
- Supports two transport modes:
- Stdio (default): Standard input/output
- SSE: Server-Sent Events transport, default at
http://127.0.0.1:8080
Configuration
Modify the src/config.rs
file or use environment variables for configurations like server IP, port, and GDB command timeout.
Supported MCP Tools
Session Management
- Create, get, and close GDB debugging sessions
Debug Control
- Start, stop, continue, and step through execution
Breakpoint Management
- Get, set, and delete breakpoints
Debug Information
- Access stack frames, local variables, registers, and memory contents