MCP Server GDB logo

MCP Server GDB

by pansila

A GDB/MI protocol server based on the MCP protocol, providing remote application debugging capabilities with AI assistants. It allows for creating and managing GDB debug sessions.

View on GitHub

Last updated: N/A

What is MCP Server GDB?

MCP Server GDB is a GDB/MI protocol server built on the MCP protocol. It enables remote application debugging, allowing users to debug applications remotely with the assistance of AI tools.

How to use MCP Server GDB?

To use MCP Server GDB, you can either download pre-built binaries from the release page or build it from source using cargo. After running the server, it supports two transport modes: Stdio (default) and SSE (Server-Sent Events) accessible at http://127.0.0.1:8080. Configuration can be adjusted in src/config.rs or via environment variables.

Key features of MCP Server GDB

  • 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

Use cases of MCP Server GDB

  • Remote application debugging

  • Debugging with AI assistance

  • Concurrent debugging of multiple sessions

  • Debugging applications on different platforms

  • Automated debugging workflows

FAQ from MCP Server GDB

How do I create a new debugging session?

Use the create_session MCP tool.

How can I set a breakpoint?

Use the set_breakpoint MCP tool.

How do I continue program execution?

Use the continue_execution MCP tool.

How can I view the stack frame information?

Use the get_stack_frames MCP tool.

What transport modes are supported?

The server supports Stdio (default) and SSE transport modes.