Native runtime and crash-dump debugging through a local DAP-to-MCP bridge for coding agents.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
Give coding agents a real native debugger.
qwen-dap-mcp is a local Debug Adapter Protocol (DAP) β Model Context Protocol (MCP) bridge for native crash debugging, hang/deadlock triage, crash dumps, differential runtime analysis, remote targets, and bounded fix/verify workflows.
Built for Qwen Code, usable from any stdio MCP client, and designed to expose debugger evidence without turning MCP into a general-purpose shell.
Quick start Β· Capabilities Β· Debugger support Β· Safety Β· Docs Β· Contributing
Coding agents can read source and propose patches, but native failures often cannot be diagnosed reliably from source alone. The useful evidence lives at runtime: thread stacks, registers, locals, disassembly, exception state, modules, memory, wait states, symbols, and crash dumps.
qwen-dap-mcp makes that evidence available through MCP and adds agent-oriented workflows on top of raw debugger primitives:
Install directly from GitHub:
Or install the published npm package:
Then verify the extension:
You should see the qwen-dap-mcp server and the bundled native-runtime-debug skill.
Typical configuration:
CLI discovery is available without starting the stdio server:
The MCP server supplies debugger evidence and bounded workflow state. Source editing, builds, tests, and source-control operations stay with the coding agent's normal authorized tools.
| Problem | Agent-oriented capability |
|---|---|
| Native crash | Diagnose a stopped process, identify project frames, collect runtime evidence, and drive bounded fix/verify loops |
| Hang or deadlock | Observe, pause when needed, capture all-thread stacks, classify waits, and surface conservative deadlock candidates |
| Good run vs bad run | Compare stopped sessions semantically while suppressing raw ASLR/address noise |
| Suspicious value | Trace real writers with data breakpoints/watchpoints and bounded temporal tracing |
| Crash dump | Inspect Windows minidumps and supported LLDB/GDB postmortem targets without launching the failed program |
| Remote native target | Attach through validated gdbserver / lldb-server gdbserver endpoints with loopback-first policy |
| Multiple targets | Keep isolated DAP sessions and route requests by sessionId |
| Agent safety | Keep the default surface compact and optionally gate executable/mutating DAP actions with HOL Guard |
The default toolset intentionally exposes 14 high-signal tools:
| Tool | Purpose |
|---|---|
debug_this_crash | High-level native crash diagnosis and bounded autonomous verification |
debug_this_hang | High-level hang/deadlock triage |
debug_compare_runs | Semantic comparison of baseline and failing stopped sessions |
debug_trace_value | Bounded temporal tracing of a suspicious value |
debug_diagnose_stop | Diagnose the current debugger stop |
debug_source_disassembly | Correlate source with nearby native instructions |
debug_find_writer | Stop at the code that writes a watched value |
debug_run_to_stop | Continue/launch toward a bounded meaningful stop |
debug_open_dump | Open supported postmortem dump/core targets |
debug_snapshot | Capture structured runtime evidence |
debug_status | Inspect debugger/session state |
debug_continue | Continue the active target |
debug_disconnect | Cleanly end a debugger session |
debug_sessions | Create, inspect, and remove isolated sessions |
Need raw stacks, scopes, variables, memory, modules, breakpoints, evaluation, stepping, or adapter-specific controls? See the opt-in full toolset in docs/toolsets.md.
| Adapter / target | Supported use |
|---|---|
| CodeLLDB | Local native launch/attach and Windows minidump workflows |
LLVM lldb-dap | Native launch/attach, core-file inspection, and lldb-server gdbserver remote attach |
| GNU GDB 14+ DAP | Native launch/attach, core-file workflows, and hardened gdbserver remote attach |
Adapter discovery, prerequisites, and platform-specific setup are documented in docs/README.md.
Raw DAP is intentionally low level. qwen-dap-mcp keeps raw debugger access available in the full toolset, but its default surface focuses on workflows an agent can reason about directly.
| Source only | Raw DAP | qwen-dap-mcp agent tools | |
|---|---|---|---|
| Runtime debugger evidence | β | β | β |
| High-level crash diagnosis | β | β | β |
| All-thread hang triage | β | manual | β |
| Good-vs-bad semantic diff | β | manual | β |
| Explicit bounded fix/verify state | β | β | β |
| Verification fingerprinting | β | β | β |
A debugger can execute and mutate target state, so the bridge treats that power explicitly.
Read the full policy and threat model in docs/hol-guard.md and SECURITY.md.
The repository includes deterministic native fixtures so behavior can be tested instead of demonstrated only with screenshots:
benchmark/ also contains a reproducible comparison harness for source-only, dap-raw, and qwen-dap-mcp workflows. It deliberately ships without invented performance numbers; publishable results should record the exact model, settings, commit, reproduction, raw outcome, and verification status.
Start with the documentation index.
| Topic | Guide |
|---|---|
| CodeLLDB on Windows | docs/CODELLDB_WINDOWS.md |
LLVM lldb-dap | docs/lldb-dap.md |
| GNU GDB DAP | docs/gdb-dap.md |
| Remote debugging | docs/remote-debugging.md |
| Hang/deadlock analysis | docs/hang-debugging.md |
| Differential debugging | docs/differential-debugging.md |
| Agent vs full toolsets | docs/toolsets.md |
| HOL Guard integration | docs/hol-guard.md |
| Publishing / releases | docs/publishing.md |
Requirements: Node.js 20+.
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/qwen-dap-mcp)<a href="https://allmcps.com/mcp/qwen-dap-mcp"><img src="https://allmcps.com/api/badge/qwen-dap-mcp?style=directory" alt="Qwen DAP MCP on AllMCPs" /></a>