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

          • A
            security
            A
            license
            A
            quality
            An MCP server that provides a comprehensive interface to Semgrep, enabling users to scan code for security vulnerabilities, create custom rules, and analyze scan results through the Model Context Protocol.
            Last updated -
            6
            192
            Python
            MIT License
            • Linux
            • Apple
          • -
            security
            A
            license
            -
            quality
            A Model Context Protocol (MCP) server for Cursor IDE that simplifies the installation and configuration of other MCP servers.
            Last updated -
            882
            23
            JavaScript
            MIT License
            • Apple
            • Linux
          • -
            security
            A
            license
            -
            quality
            An implementation of the Model Context Protocol (MCP) that enables interaction with debug adapters, allowing language models to control debuggers, set breakpoints, evaluate expressions, and navigate source code during debugging sessions.
            Last updated -
            2
            Python
            AGPL 3.0
          • -
            security
            A
            license
            -
            quality
            A MCP server for LLDB that allows automatic analyzing, debugging and disassembling of native apps.
            Last updated -
            1
            Python
            BSD 2-Clause "Simplified" License

          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