MCP Catalogs
首页

mcp-dap-server

by go-delve·84·综合分 48

MCP 服务器桥接 AI 助手与 DAP 调试器,实现对运行中程序的编程式调试。

developer-toolsai-llmops-infra
13
Forks
3
活跃 Issue
本月
最近提交
2 天前
收录于

概述

MCP DAP 服务器通过调试适配器协议 (DAP) 在 AI 代理和调试器之间提供全面接口。它提供会话管理、断点控制、执行流程管理和状态检查等工具。服务器支持多种调试模式,包括源码、二进制文件、核心转储分析和进程附加。拥有13个文档完备的工具,使 AI 系统能够以完全编程方式调试多种编程语言的代码。

试试问 AI

装完之后,这里有 5 个你可以让 AI 做的事:

:AI 助手自动化调试应用程序
:通过 AI 代理控制的远程调试会话
:程序化分析应用程序行为和性能
:此服务器支持哪些编程语言?
:服务器如何处理多个调试会话?

什么时候选它

当您需要 AI 代理通过 DAP 兼容调试器以编程方式控制不同编程语言的调试会话时,选择此服务器。

什么时候不要选它

如果您的编程语言不支持 DAP,或者您需要图形用户界面进行调试,请不要选择此服务器。

此 server 暴露的工具

从 README 抽取出 12 个工具
  • debugmode, path, args, coreFilePath, processId, breakpoints, stopOnEntry, port

    Start a debugging session with various modes (source, binary, core, attach)

  • stop

    End the debugging session

  • restartarguments

    Restart the debugging session with optional new arguments

  • breakpointfile, line, function

    Set a breakpoint at a file:line location or on a function

  • clear-breakpointsfile, all

    Remove breakpoints from a file or clear all breakpoints

  • continueto

    Continue program execution, optionally run to a specific location

  • stepmode

    Step through code execution (over, in, or out)

  • pausethreadId

    Pause program execution on a specific thread

  • contextthreadId, frameId

    Get full debugging context including location, stack trace, and variables

  • evaluateexpression, frameId, context

    Evaluate an expression in the current debugging context

  • set-variablevariablesReference, name, value

    Modify a variable's value in the debugged program

  • disassemblememoryReference, instructionOffset, instructionCount

    Disassemble code at a memory address

可对比工具

dap-go-mcpvscode-debug-server-mcpgdb-mcp-server

安装

安装

前置条件

  • Go 1.24.4 或更高版本
  • 与目标语言兼容的 DAP 调试器

从源码构建

git clone https://github.com/go-delve/mcp-dap-server
cd mcp-dap-server
go build -o bin/mcp-dap-server

MCP 客户端配置

添加到您的 MCP 客户端配置中:

{
  "mcpServers": {
    "dap-debugger": {
      "command": "mcp-dap-server",
      "args": [],
      "env": {}
    }
  }
}

对于 Claude Code:

claude mcp add mcp-dap-server /path/to/mcp-dap-server

FAQ

此服务器支持哪些编程语言?
MCP DAP 服务器支持任何具有 DAP 兼容调试器的语言。它已通过 delve 演示了 Go 调试,但设计上可支持支持调试适配器协议的语言特定调试器。
服务器如何处理多个调试会话?
每个调试工具调用都会创建一个新会话。服务器独立管理多个会话,允许同时调试不同的进程。

mcp-dap-server 对比

GitHub →

最后更新于 · 由 README + GitHub 公开数据自动生成。