GNU Debugger (GDB)
БесплатноНе проверенIntegrates with GNU Debugger to enable execution of arbitrary GDB commands within debugging sessions for automated debugging workflows, intelligent breakpoint m
Описание
Integrates with GNU Debugger to enable execution of arbitrary GDB commands within debugging sessions for automated debugging workflows, intelligent breakpoint management, and conversational program state inspection.
README
A lightweight MCP server that runs inside GDB. It exposes a single tool, gdb-command, which proxies input directly to GDB’s command interpreter and returns the textual output. The server runs over SSE and is started from within GDB via the mcp-server command.
Features
gdb-command: pass any GDB command, get back its output.- Minimal, self-contained script:
gdb-mcp(loaded viasource).
Requirements
- GDB with Python support enabled.
- Python 3.x and the
fastmcplibrary available to GDB’s embedded Python.
Check Python support: gdb -q -ex "python print('ok')" -ex quit
Install FastMCP: python3 -m pip install fastmcp
If import fails in GDB, ensure fastmcp is installed to the same Python environment GDB uses.
Quick Start
- Start GDB with the MCP extension loaded
gdb -q -ex 'source ./gdb-mcp'- Alternatively, load from within gdb
source ./gdb-mcp
- Launch the SSE server from within GDB
mcp-server 127.0.0.1 3333
- Connect an MCP client to the server
- Configure your MCP client to connect to the SSE server at the host/port selected above and call tool
gdb-command.
Tool: gdb-command
- Parameters:
command(string): the exact GDB command to run (e.g.,info registers).
- Returns: string (captured GDB output or an error message).
Notes & Tips
- No timeout or stop control is provided by this script. To interrupt long-running target execution, issue the
interruptcommand. - Do not bind publicly unless you trust clients; this endpoint can execute arbitrary GDB commands.
- To auto-load, add a line to your
~/.gdbinit:source /absolute/path/to/gdb-mcp. - There is no builtin 'stop server' functionality. To teardown the server, exit GDB.
License
MIT — see LICENSE.
Acknowledgements
- Built on top of the excellent
fastmcplibrary.
Установка GNU Debugger (GDB)
У этого сервера нет опубликованного пакета — он собирается из исходников. Открой репозиторий и следуй инструкции в README.
▸ github.com/jtang613/gdb-mcpFAQ
GNU Debugger (GDB) MCP бесплатный?
Да, GNU Debugger (GDB) MCP бесплатный — установка в пару кликов через Unyly без оплаты.
Нужен ли API-ключ для GNU Debugger (GDB)?
Нет, GNU Debugger (GDB) работает без API-ключей и переменных окружения.
GNU Debugger (GDB) — hosted или self-hosted?
Self-hosted: сервер запускается локально на твоей машине командой из раздела установки.
Как установить GNU Debugger (GDB) в Claude Desktop, Claude Code или Cursor?
Открой GNU Debugger (GDB) на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.
Похожие MCP
GitHub
PRs, issues, code search, CI status
автор: GitHubFilesystem
Secure file operations with configurable access controls.
Memory
Knowledge graph-based persistent memory system.
Template MCP Server
A CLI tool to create a new Model Context Protocol server project with TypeScript support, dual transport options, and an extensible structure
автор: mcpdotdirectCompare GNU Debugger (GDB) with
Не уверен что выбрать?
Найди свой стек за 60 секунд
Автор?
Embed-бейдж для README
Похожее
Все в категории development
