About Dap Server
Dap Server is an MCP server published by go-delve in the Developer Tools category: mCP server to communicate with DAP servers allowing AI Agents the ability to debug live programs. Conduid read 15 tools from its source: breakpoint, clear-breakpoints, context, continue, debug, disassemble and 9 more. No package is published for it, so it installs from a source checkout.
The repository has 109 stars and 19 forks, is licensed MIT, and its last commit was on 3 Nov 2026. Conduid has no tagged release on record for it. It passes 5 of the 6 static checks Conduid ran on the repository; it does not pass Scoped permissions. Its topics include debugging-tool, debugging, devtools and dap.
Install
git clone https://github.com/go-delve/mcp-dap-serverTools (15)
breakpointSet a breakpoint. Provide EITHER file+line OR function name (not both). Examples: {"file": "/path/to/main.go", "line": 42} or {"function": "main.processData"}clear-breakpointsRemove breakpoints. Provide 'file' to clear all breakpoints in a file, 'file'+'line' to clear a specific line breakpoint, 'function' to clear a function breakpoint, or 'all': true to clear all breakpoints. Examples: {"file": "/path/to/main.go"} or {"file": "/path/to/main.go", "line": 42} or {"function": "main.processData"} or {"all": true}contextGet full debugging context at the current stop location. Always returns ALL of the following — source location, full stack trace, and all variables with types and values. There are no flags to control what is included; everything is always returned. Call with {} (no arguments) to use the current thread and top frame. Only three optional parameters exist: threadId, frameId, maxFrames. Do NOT pass any other parameters. Use 'info' with type 'threads' to discover valid thread IDs.continueContinue program execution until the next breakpoint or termination. By default returns a compact stop summary (location only). Set fullContext: true only if you need variables immediately — it saves a separate 'context' call but returns much more data. Leave fullContext false (the default) unless you know you need variables right away. Optionally specify 'to' for run-to-cursor: {"to": {"file": "/path/main.go", "line": 50}} or {"to": {"function": "main.Run"}}debugStart a complete debugging session. Modes: 'source' (compile & debug), 'binary' (debug executable), 'core' (debug core dump), 'attach' (connect to process). Debugger selection (via 'debugger' parameter): - 'delve' (default): For Go programs only. Requires dlv to be installed. - 'gdb': For C/C++/Rust and other compiled languages. Requires GDB 14+ with native DAP support (gdb -i dap). GDB does not support 'source' mode; compile your program with debug symbols (gcc -g -O0) and use 'binary' mode. Choose the debugger based on the language of the program being debugged: use 'delve' for Go, use 'gdb' for C/C++/Rust. By default, when stopped at a breakpoint returns a compact stop summary (location only). Set fullContext: true only if you need variables immediately — leave it false unless you plan to call 'context' right after anyway.disassembleDisassemble machine code at a memory address. Returns assembly instructions. Example: {"address": "0x00400780"} or {"address": "0x00400780", "count": 30} The 'address' is a hex memory address (e.g. from instructionPointerReference in a stack frame). 'count' defaults to 20 instructions.evaluateEvaluate an expression in the debugged program's context. Returns the result value and type. All parameters except 'expression' are optional. The default context is 'watch', which evaluates language expressions (C, C++, Go). Use valid language syntax, not debugger commands. Examples: {"expression": "x + y"}, {"expression": "*ptr"}, {"expression": "$rsp"}, {"expression": "(int)value"} For GDB commands (e.g. print/x), use context 'repl': {"expression": "print/x var", "context": "repl"}get-debug-stateSupervisor-only. Return the authoritative debugger state: generation, ordered sequence, stopped/running/ended/unknown, mode, continuous stopped duration, reason and thread. Not a model tool.infopausePause a running program. Use 'context' afterwards to inspect the current state.restartRestart the debugging session from the beginning. Optionally provide new command line arguments via 'args', or omit to reuse the previous arguments.resumeSupervisor-only. Continue a stopped live target independently of ordinary calls; never terminates the debuggee. Pass the generation from get-debug-state to reject stale requests. Not a model tool.set-variableModify a variable's value in the debugged program. Requires the variablesReference from a previous 'context' call's scope. Example: {"variablesReference": 1000, "name": "count", "value": "42"}stepStep through code one line at a time. By default returns a compact stop summary (location only). Set fullContext: true only if you need variables immediately — it saves a separate 'context' call but returns much more data. Leave fullContext false (the default) unless you know you need variables right away. Modes: 'over' (execute current line, step over function calls), 'in' (step into function calls), 'out' (run until current function returns).stopEnd the debugging session. By default terminates the debuggee. Pass detach=true to detach without killing the process (leaves it running); detach requires adapter support.Security checks
Static checks derived from the repository 10 days ago. Heuristics on the source, not an audit.
- ✓README presentThe repository's README runs to about 930 words.
- ✓License declaredThe repository declares the MIT license.
- ✓Tests presentA test suite exists in the repository.
- ✓Dependencies pinnedDependency versions are pinned by go.sum.
- ✓No dynamic code executionScanned 18 source files and found no eval, dynamic Function or shell execution.
- !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.
What the source scan found
- Transport
- stdiomain.go:49
- Starts other programs
- 3 callsbackend.go:66, backend.go:236, backend.go:321
- Outbound network calls
- No outbound network calls
- Writes or deletes files
- 2 callssecurity.go:20, security.go:22
- Lockfile
- go.sum
Pattern matches on the source text of 18 files: places to read, not proof of what the code does at run time.
README
The repository's README runs to about 930 words, fetched a month ago. The original in the repository is authoritative.
Read full README