Basic information
About dap-mcp Server
Model Context Protocol (MCP) server that interacts with a Debugger
dap-mcp is a MCP server in the Other category listed in the AddMCP.net directory, published by KashunCheng. Supported transport: stdio. Runtime: python. License: AGPL-3.0. The repository has 40 GitHub stars. Source code is hosted on github.com. Related topics: dap, debug, debug-adapter-protocol, debugging, llm.
Setup
{
"mcpServers": {
"dap_mcp": {
"command": "python",
"args": [
"-m",
"dap_mcp",
"--config",
"config.json"
]
}
}
}
{
"mcpServers": {
"dap_mcp": {
"command": "python",
"args": [
"-m",
"dap_mcp",
"--config",
"config.json"
]
}
}
}
{
"servers": {
"dap_mcp": {
"command": "python",
"args": [
"-m",
"dap_mcp",
"--config",
"config.json"
]
}
}
}
dap-mcp config
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"dap_mcp": {
"command": "python",
"args": [
"-m",
"dap_mcp",
"--config",
"config.json"
]
}
}
}
dap-mcp tools
Tool list not available yet
This listing does not currently have a tool list to display. This does not mean the server has no tools; check its documentation for supported capabilities.
We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.
Overview
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.
Frequently asked questions
1 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.
2 What are the runtime requirements?
Python 3.10 or higher is required. The uv package manager is optional but recommended for running the server.
3 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.
4 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.
5 What license does dap-mcp use?
dap-mcp is licensed under the AGPL-3.0 License.
Comments
No comments yet
Be the first to share feedback about this listing. Sign in to leave a comment.
Sign In