dap-mcp
@KashunCheng
关于 dap-mcp
Model Context Protocol (MCP) server that interacts with a Debugger
基本信息
配置
使用下面的配置,将此服务器添加到你的 MCP 客户端。
{
"mcpServers": {
"dap_mcp": {
"command": "python",
"args": [
"-m",
"dap_mcp",
"--config",
"config.json"
]
}
}
}工具
12** Launch the debuggee program.
** Set a breakpoint at a specified file and line (with an optional condition).
** Remove a breakpoint from a specified file and line.
** List all breakpoints currently set in the debugger.
** Continue program execution after hitting a breakpoint.
** Step into a function call.
** Step out of the current function.
** Step over to the next line of code.
** Evaluate an expression in the current debugging context.
** Switch to a different stack frame.
** View source code around a specified line (using the last provided file if none is specified).
** Terminate the debugging session.
概览
What is dap-mcp?
dap-mcp is an MCP server that integrates the Model Context Protocol (MCP) with the Debug Adapter Protocol (DAP) to manage debugging sessions. It is designed for developers who want to leverage LLMs to streamline debugging workflows.
How to use dap-mcp?
Install with pip install dap-mcp, then run with python -m dap_mcp --config config.json. Optionally use uvx dap-mcp@latest --config config.json. Configure debugger settings, source directories, and debuggee parameters via a JSON configuration file.
Key features of dap-mcp
- Manage Debug Adapter Protocol (DAP) sessions.
- Set, list, and remove breakpoints.
- Control execution (continue, step in/out/next).
- Evaluate expressions in current debugging context.
- Switch stack frames and view source code.
- Flexible JSON configuration for debugger settings.
Use cases of dap-mcp
- Debug a Python program using debugpy with LLM-powered breakpoint management.
- Step through code interactively while an AI assistant inspects variable values.
- Evaluate expressions in a live debugging session from an MCP client.
- Automate breakpoint toggling across multiple source files during debugging.
FAQ from dap-mcp
What protocols does dap-mcp support?
dap-mcp integrates the Debug Adapter Protocol (DAP) for debugger communication and the Model Context Protocol (MCP) for AI-assisted context management.
What are the runtime requirements?
Python 3.10 or higher is required. The uv package manager is optional but recommended for running the server.
Where is the configuration stored?
Configuration is stored in a JSON file (e.g., config.json) that specifies the debugger path, source directories, module, working directory, and interpreter.
Can I add support for additional debuggers?
Yes. Add a new DAP configuration class in dap_mcp/config.py by subclassing DAPConfig with a unique type literal, then update the union type for validation.
What license does dap-mcp use?
dap-mcp is licensed under the AGPL-3.0 License.
其他 分类下的更多 MCP 服务器
MCP Go 🚀
mark3labsA Go implementation of the Model Context Protocol (MCP), enabling seamless integration between LLM applications and external data sources and tools.

EverArt
modelcontextprotocolModel Context Protocol Servers
Awesome Mcp Servers
punkpeyeA collection of MCP servers.
FastMCP v2 🚀
jlowin🚀 The fast, Pythonic way to build MCP servers and clients.
Mcp
browsermcpBrowser MCP is a Model Context Provider (MCP) server that allows AI applications to control your browser
评论