Skip to main content
Glama

MCP Server GDB

MCP 服务器 GDB

基于MCP协议的GDB/MI协议服务器,提供带有AI助手的远程应用程序调试功能。

特征

  • 创建和管理 GDB 调试会话
  • 设置和管理断点
  • 查看堆栈信息和变量
  • 控制程序执行(运行、暂停、单步执行等)
  • 支持并发多会话调试
  • 内置 TUI 用于检查代理行为,以便您可以改进提示(WIP)

安装

预构建的二进制文件

在发布页面中找到二进制文件,根据您的工作平台选择一个,然后您就可以直接运行它。

从源代码构建

克隆存储库并通过 cargo 构建它

cargo build --release cargo run

用法

  1. 直接运行: ./mcp-server-gdb server-gdb
  2. 服务器支持两种传输模式:
    • 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 - 读取内存内容

执照

麻省理工学院

-
security - not tested
A
license - permissive license
-
quality - not tested

hybrid server

The server is able to function both locally and remotely, depending on the configuration or use case.

基于MCP协议的GDB/MI协议服务器,提供远程应用程序调试功能。

  1. 特征
    1. 安装
      1. 预构建的二进制文件
      2. 从源代码构建
    2. 用法
      1. 配置
        1. 支持的 MCP 工具
          1. 会话管理
          2. 调试控制
          3. 断点管理
          4. 调试信息
        2. 执照

          Related MCP Servers

          • -
            security
            A
            license
            -
            quality
            A Model Context Protocol (MCP) server that wraps the dbt CLI tool, enabling AI coding agents to interact with dbt projects through standardized MCP tools. Developed by Mammoth Growth.
            Last updated -
            15
            Python
            MIT License
            • Linux
            • Apple
          • -
            security
            A
            license
            -
            quality
            A MCP server for LLDB that allows automatic analyzing, debugging and disassembling of native apps.
            Last updated -
            51
            Python
            BSD 2-Clause "Simplified" License
          • -
            security
            A
            license
            -
            quality
            An MCP server that exposes GABI functionality, allowing users to run queries against a target endpoint with proper authentication.
            Last updated -
            Python
            GPL 3.0

          View all related MCP servers

          MCP directory API

          We provide all the information about MCP servers via our MCP API.

          curl -X GET 'https://glama.ai/api/mcp/v1/servers/pansila/mcp_server_gdb'

          If you have feedback or need assistance with the MCP directory API, please join our Discord server