mcp-dap-server
by go-delve·★ 84·综合分 48
MCP 服务器桥接 AI 助手与 DAP 调试器,实现对运行中程序的编程式调试。
概述
MCP DAP 服务器通过调试适配器协议 (DAP) 在 AI 代理和调试器之间提供全面接口。它提供会话管理、断点控制、执行流程管理和状态检查等工具。服务器支持多种调试模式,包括源码、二进制文件、核心转储分析和进程附加。拥有13个文档完备的工具,使 AI 系统能够以完全编程方式调试多种编程语言的代码。
试试问 AI
装完之后,这里有 5 个你可以让 AI 做的事:
什么时候选它
当您需要 AI 代理通过 DAP 兼容调试器以编程方式控制不同编程语言的调试会话时,选择此服务器。
什么时候不要选它
如果您的编程语言不支持 DAP,或者您需要图形用户界面进行调试,请不要选择此服务器。
此 server 暴露的工具
从 README 抽取出 12 个工具debugmode, path, args, coreFilePath, processId, breakpoints, stopOnEntry, portStart a debugging session with various modes (source, binary, core, attach)
stopEnd the debugging session
restartargumentsRestart the debugging session with optional new arguments
breakpointfile, line, functionSet a breakpoint at a file:line location or on a function
clear-breakpointsfile, allRemove breakpoints from a file or clear all breakpoints
continuetoContinue program execution, optionally run to a specific location
stepmodeStep through code execution (over, in, or out)
pausethreadIdPause program execution on a specific thread
contextthreadId, frameIdGet full debugging context including location, stack trace, and variables
evaluateexpression, frameId, contextEvaluate an expression in the current debugging context
set-variablevariablesReference, name, valueModify a variable's value in the debugged program
disassemblememoryReference, instructionOffset, instructionCountDisassemble code at a memory address
可对比工具
安装
安装
前置条件
- 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-serverMCP 客户端配置
添加到您的 MCP 客户端配置中:
{
"mcpServers": {
"dap-debugger": {
"command": "mcp-dap-server",
"args": [],
"env": {}
}
}
}对于 Claude Code:
claude mcp add mcp-dap-server /path/to/mcp-dap-serverFAQ
- 此服务器支持哪些编程语言?
- MCP DAP 服务器支持任何具有 DAP 兼容调试器的语言。它已通过 delve 演示了 Go 调试,但设计上可支持支持调试适配器协议的语言特定调试器。
- 服务器如何处理多个调试会话?
- 每个调试工具调用都会创建一个新会话。服务器独立管理多个会话,允许同时调试不同的进程。
mcp-dap-server 对比
最后更新于 · 由 README + GitHub 公开数据自动生成。