Back to Browse

Qwen Dap MCP Server

Developer ToolsModerate7.2MCP RegistryLocal
Free

Server data from the Official MCP Registry

Native runtime and crash-dump debugging through a local DAP-to-MCP bridge for coding agents.

About

Native runtime and crash-dump debugging through a local DAP-to-MCP bridge for coding agents.

Security Report

7.2
Moderate7.2Low Risk

This is a well-engineered MCP server for native debugger integration with strong security practices. The code demonstrates careful attention to safety boundaries, proper input validation via Zod schemas, and appropriate permission scoping. Minor code quality observations exist (broad exception handling, potential error logging), but the server's architecture clearly prioritizes safety with read-only semantics where appropriate, session isolation, optional policy gating via HOL Guard, and validated remote endpoint handling. Supply chain analysis found 1 known vulnerability in dependencies (0 critical, 1 high severity). Package verification found 1 issue.

3 files analyzed · 5 issues found

Security scores are indicators to help you make informed decisions, not guarantees. Always review permissions before connecting any MCP server.

Permissions Required

This plugin requests these system permissions. Most are normal for its category.

HTTP Network Access

Connects to external APIs or services over the internet.

env_vars

Check that this permission is expected for this type of plugin.

File System Read

Reads files on your machine. Normal for tools that analyze or process local data.

File System Write

Writes or modifies files on your machine. Check that this is expected for the tool.

process_spawn

Check that this permission is expected for this type of plugin.

Shell Command Execution

Runs commands on your machine. Be cautious — only use if you trust this plugin.

How to Install

Add this to your MCP configuration file:

{
  "mcpServers": {
    "io-github-slp-dev1-qwen-dap-mcp": {
      "args": [
        "-y",
        "@slp-dev1/qwen-dap-mcp"
      ],
      "command": "npx"
    }
  }
}

Documentation

View on GitHub

From the project's GitHub README.

qwen-dap-mcp

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.

CI Release npm npm downloads MCP Registry License Node GitHub stars

Quick start · Capabilities · Debugger support · Safety · Docs · Contributing

Why this exists

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:

  • Evidence first — inspect the actual failing process instead of guessing from source.
  • High-level workflows — crash, hang, differential, writer-tracing, dump, and verification tools are designed for agents rather than humans driving a debugger console.
  • Bounded automation — autonomous fix/verify state is explicit, serializable, iteration-limited, and re-checks the original reproduction.
  • Small default surface — the normal agent toolset stays compact while advanced low-level DAP tools remain opt-in.
  • Local by default — the MCP server communicates over stdio and debugger adapters run locally unless you explicitly configure a validated remote target.

Quick start

Qwen Code

Install directly from GitHub:

qwen extensions install SLP-DEV1/qwen-dap-mcp

Or install the published npm package:

qwen extensions install @slp-dev1/qwen-dap-mcp

Then verify the extension:

/mcp
/skills

You should see the qwen-dap-mcp server and the bundled native-runtime-debug skill.

Any stdio MCP client

npx -y @slp-dev1/qwen-dap-mcp

Typical configuration:

{
  "mcpServers": {
    "qwen-dap-mcp": {
      "command": "npx",
      "args": ["-y", "@slp-dev1/qwen-dap-mcp"]
    }
  }
}

CLI discovery is available without starting the stdio server:

qwen-dap-mcp --help
qwen-dap-mcp --version

30-second example

You: Debug why app.exe crashes with --repro

Coding agent
  ↓
qwen-dap-mcp starts a DAP debugger
  ↓
captures the native failure + project-controlled frame
  ↓
correlates stack + registers + locals + disassembly
  ↓
backtracks runtime evidence toward the likely producer
  ↓
agent applies a minimal source fix
  ↓
builds and repeats the original reproduction
  ↓
verifies whether the original crash fingerprint is gone

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.

What it does

ProblemAgent-oriented capability
Native crashDiagnose a stopped process, identify project frames, collect runtime evidence, and drive bounded fix/verify loops
Hang or deadlockObserve, pause when needed, capture all-thread stacks, classify waits, and surface conservative deadlock candidates
Good run vs bad runCompare stopped sessions semantically while suppressing raw ASLR/address noise
Suspicious valueTrace real writers with data breakpoints/watchpoints and bounded temporal tracing
Crash dumpInspect Windows minidumps and supported LLDB/GDB postmortem targets without launching the failed program
Remote native targetAttach through validated gdbserver / lldb-server gdbserver endpoints with loopback-first policy
Multiple targetsKeep isolated DAP sessions and route requests by sessionId
Agent safetyKeep the default surface compact and optionally gate executable/mutating DAP actions with HOL Guard

Default agent tool surface

The default toolset intentionally exposes 14 high-signal tools:

ToolPurpose
debug_this_crashHigh-level native crash diagnosis and bounded autonomous verification
debug_this_hangHigh-level hang/deadlock triage
debug_compare_runsSemantic comparison of baseline and failing stopped sessions
debug_trace_valueBounded temporal tracing of a suspicious value
debug_diagnose_stopDiagnose the current debugger stop
debug_source_disassemblyCorrelate source with nearby native instructions
debug_find_writerStop at the code that writes a watched value
debug_run_to_stopContinue/launch toward a bounded meaningful stop
debug_open_dumpOpen supported postmortem dump/core targets
debug_snapshotCapture structured runtime evidence
debug_statusInspect debugger/session state
debug_continueContinue the active target
debug_disconnectCleanly end a debugger session
debug_sessionsCreate, 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.

Debugger support

Adapter / targetSupported use
CodeLLDBLocal native launch/attach and Windows minidump workflows
LLVM lldb-dapNative launch/attach, core-file inspection, and lldb-server gdbserver remote attach
GNU GDB 14+ DAPNative launch/attach, core-file workflows, and hardened gdbserver remote attach

Adapter discovery, prerequisites, and platform-specific setup are documented in docs/README.md.

More than raw DAP

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 onlyRaw DAPqwen-dap-mcp agent tools
Runtime debugger evidence
High-level crash diagnosis
All-thread hang triagemanual
Good-vs-bad semantic diffmanual
Explicit bounded fix/verify state
Verification fingerprinting

Safety by design

A debugger can execute and mutate target state, so the bridge treats that power explicitly.

  • No arbitrary shell tool is exposed by the MCP server.
  • No source-writing primitive is exposed by the MCP server.
  • No general memory-write primitive is part of the default agent surface.
  • Remote endpoints are validated and non-loopback access requires explicit allowlisting.
  • Autonomous workflow state is explicit rather than hidden inside a background loop.
  • Optional HOL Guard 2.2+ integration can fail closed before protected adapter startup or executable/mutating DAP actions cross the debugger boundary.

Read the full policy and threat model in docs/hol-guard.md and SECURITY.md.

Repro labs and benchmark harness

The repository includes deterministic native fixtures so behavior can be tested instead of demonstrated only with screenshots:

npm run demo:build -- null-pointer
npm run demo:repro -- null-pointer

npm run demo:hang:build -- deadlock
npm run demo:hang:repro -- deadlock

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.

Documentation

Start with the documentation index.

TopicGuide
CodeLLDB on Windowsdocs/CODELLDB_WINDOWS.md
LLVM lldb-dapdocs/lldb-dap.md
GNU GDB DAPdocs/gdb-dap.md
Remote debuggingdocs/remote-debugging.md
Hang/deadlock analysisdocs/hang-debugging.md
Differential debuggingdocs/differential-debugging.md
Agent vs full toolsetsdocs/toolsets.md
HOL Guard integrationdocs/hol-guard.md
Publishing / releasesdocs/publishing.md

Development

Requirements: Node.js 20+.

git clone https://github.com/SLP-DEV1/qwen-dap-mcp.git
cd qwen-dap-mcp
npm ci
npm run check

npm run check builds TypeScript, runs the test suite, and validates the self-contained Qwen extension package. CI additionally exercises native crash/hang fixtures, adapter-specific real smoke tests, package output, HOL Guard compatibility, and the container build.

See CONTRIBUTING.md before opening a pull request.

Distribution

Published as:

  • npm: @slp-dev1/qwen-dap-mcp
  • MCP Registry: io.github.SLP-DEV1/qwen-dap-mcp
  • Qwen Code extension: qwen extensions install SLP-DEV1/qwen-dap-mcp
  • GitHub Releases: self-contained extension archives

Current release details are in CHANGELOG.md and GitHub Releases.

Contributing

Bug reports, reproducible native failure cases, adapter compatibility findings, documentation fixes, and focused feature proposals are welcome. Please keep additions evidence-driven and prefer high-level agent workflows over expanding the default surface with raw debugger commands.

If this project saves you a debugging session, consider starring the repository — it helps other MCP and coding-agent users discover it.

License

Apache-2.0. See LICENSE and NOTICE.

Reviews

No reviews yet

Be the first to review this server!