Debug Adapter Protocol (DAP)
Summary
dap-mcp is a server implementation that bridges debugging tools with AI systems through the Debug Adapter Protocol (DAP). It enables AI assistants to control debuggers, set breakpoints, step through code, evaluate expressions, and inspect variables - all through standardized MCP tools. The server supports multiple debugging backends (currently debugpy) and renders debugging information in XML format for easy consumption by LLMs, making it particularly valuable for AI-assisted debugging workflows where context about program state needs to be maintained throughout a conversation.
Available Actions(12)
launch
Launch the debuggee program.
set_breakpoint
Set a breakpoint at a specified file and line (with an optional condition).
remove_breakpoint
Remove a breakpoint from a specified file and line.
list_all_breakpoints
List all breakpoints currently set in the debugger.
continue_execution
Continue program execution after hitting a breakpoint.
step_in
Step into a function call.
step_out
Step out of the current function.
next
Step over to the next line of code.
evaluate
Evaluate an expression in the current debugging context.
change_frame
Switch to a different stack frame.
view_file_around_line
View source code around a specified line (using the last provided file if none is specified).
terminate
Terminate the debugging session.
社区评论
暂无评论. 成为第一个评论的人!
登录以参与讨论