Skip to main content
Glama

MCP GDB Server

by signal-slot

MCP GDB 服务器

模型上下文协议 (MCP) 服务器提供 GDB 调试功能,可与 Claude 或其他 AI 助手一起使用。

特征

  • 启动和管理 GDB 调试会话
  • 加载程序和核心转储进行分析
  • 设置断点、单步执行代码并检查内存
  • 查看调用堆栈、变量和寄存器
  • 执行任意 GDB 命令

安装

# Clone the repository git clone https://github.com/signal-slot/mcp-gdb.git cd mcp-gdb # Install dependencies npm install # Build the project npm run build

用法

与 Claude 或其他支持 MCP 的助手一起使用

  1. 在 Claude 桌面应用程序或浏览器扩展中配置 MCP 设置以包含此服务器:
{ "mcpServers": { "gdb": { "command": "node", "args": ["/path/to/mcp-gdb/build/index.js"], "disabled": false } } }
  1. 重新启动 Claude 或刷新页面。
  2. 现在您可以在与 Claude 的对话中使用 GDB 工具。

示例命令

以下是通过 Claude 使用 GDB MCP 服务器的一些示例:

启动 GDB 会话
Use gdb_start to start a new debugging session
加载程序
Use gdb_load to load /path/to/my/program with the sessionId that was returned from gdb_start
设置断点
Use gdb_set_breakpoint to set a breakpoint at main in the active GDB session
运行程序
Use gdb_continue to start execution
检查变量
Use gdb_print to evaluate the expression "my_variable" in the current context
获取回溯
Use gdb_backtrace to see the current call stack
终止会话
Use gdb_terminate to end the debugging session

支持的 GDB 命令

  • gdb_start :启动一个新的 GDB 会话
  • gdb_load :将程序加载到 GDB
  • gdb_command :执行任意 GDB 命令
  • gdb_terminate :终止 GDB 会话
  • gdb_list_sessions :列出所有活动的 GDB 会话
  • gdb_attach :附加到正在运行的进程
  • gdb_load_core :加载核心转储文件
  • gdb_set_breakpoint :设置断点
  • gdb_continue :继续程序执行
  • gdb_step :单步执行程序
  • gdb_next :跳过函数调用
  • gdb_finish :执行直到当前函数返回
  • gdb_backtrace :显示调用堆栈
  • gdb_print :打印表达式的值
  • gdb_examine :检查内存
  • gdb_info_registers :显示寄存器

执照

麻省理工学院

-
security - not tested
F
license - not found
-
quality - not tested

local-only server

The server can only run on the client's local machine because it depends on local resources.

提供 GDB 调试功能,可与 Claude 或其他 AI 助手一起使用,允许用户管理调试会话、设置断点、检查变量以及通过自然语言执行 GDB 命令。

  1. 特征
    1. 安装
      1. 用法
        1. 与 Claude 或其他支持 MCP 的助手一起使用
        2. 示例命令
      2. 支持的 GDB 命令
        1. 执照

          Related MCP Servers

          • -
            security
            F
            license
            -
            quality
            Provides AI-powered assistance for coding problems using Google's Gemini AI, combined with Perplexity insights and Stack Overflow references, facilitating contextual analysis and automatic response archiving for improved troubleshooting.
            Last updated -
            10
            TypeScript
          • -
            security
            F
            license
            -
            quality
            Enables AI assistants to interact with Metabase databases and dashboards, allowing users to list and execute queries, access data visualizations, and interact with database resources through natural language.
            Last updated -
            25
            JavaScript
            • Apple
          • -
            security
            F
            license
            -
            quality
            Enables AI assistants to interact with Metabase, providing access to dashboards, questions, databases, and tools for executing queries and viewing data through natural language.
            Last updated -
            JavaScript
            • Apple
          • -
            security
            F
            license
            -
            quality
            Allows developers to query security findings (SAST issues, secrets, patches) using natural language within AI-assisted tools like Claude Desktop, Cursor, and other MCP-compatible environments.
            Last updated -
            1
            Python
            • Linux
            • Apple

          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/signal-slot/mcp-gdb'

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