MCP 服务器 GDB
基于MCP协议的GDB/MI协议服务器,提供带有AI助手的远程应用程序调试功能。
特征
创建和管理 GDB 调试会话
设置和管理断点
查看堆栈信息和变量
控制程序执行(运行、暂停、单步执行等)
支持并发多会话调试
内置 TUI 用于检查代理行为,以便您可以改进提示(WIP)
安装
预构建的二进制文件
在发布页面中找到二进制文件,根据您的工作平台选择一个,然后您就可以直接运行它。
从源代码构建
克隆存储库并通过 cargo 构建它
用法
直接运行:
./mcp-server-gdbserver-gdb服务器支持两种传输模式:
Stdio(默认):标准输入/输出传输
SSE:服务器发送事件传输,默认为
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
- -security-license-qualityA MCP server for LLDB that allows automatic analyzing, debugging and disassembling of native apps.Last updated -59BSD 2-Clause "Simplified" License
- Asecurity-licenseAqualityAn MCP server that connects to your React Native application debuggerLast updated -213326MIT License
- Asecurity-licenseAqualityAn MCP server that exposes GABI functionality, allowing users to run queries against a target endpoint with proper authentication.Last updated -2GPL 3.0
- Asecurity-licenseAqualityA 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