go-delve/mcp-dap-server
MCP server to communicate with DAP servers allowing AI Agents the ability to debug live programs.
6011c2cd13e8Paths from tool input into commands, SQL, files and URLs
How much power the tools give an agent over the machine
Hidden instructions and poisoning in text for the model
Known vulnerabilities in the packages the server uses
How the server reads credentials and where they can go
Whether the tools do only what their descriptions say
How far the analysis went
The scanner traces each tool from its input to the operations its code performs, and here it could not follow every path. Code Safety is shown as partly traced instead of a score: no finding there is not a clean result. The score of Capability Exposure counts only what it could follow.
- In 12 places a tool's input is handed to a function whose name matches several definitions in the code; the scanner could not tell which one runs, so it stopped there
Top risks in plain words
- HIGHTool
debugreads or writes any file path by design: an agent steered by prompt injection can use it that way. - MEDIUM1 production dependency has known vulnerabilities (worst: medium).
How to use it safely
Practical steps from what we found in this server. They lower the risk; they do not replace a review of the code.
- Give it only the folder it needs
debugcan read or write any file path. Mount a single project folder, read-only where you can. - Turn off the tools you do not use
Most MCP clients let you disable single tools. If you do not need
debug, switch them off. - Update its vulnerable packages
Use
golang.org/x/sys0.44.0 or later. - Keep confirmations on
Leave your MCP client's confirmation prompt on for tools that change files, run commands or send data.
What its tools can do on your machine
The server offers 16 tools, 4 prompts. When an AI agent calls them, this is what their code can do on the machine where the server runs, as traced in the source. Tools that call code the scanner could not follow may do more.
debugdebugNo tool was seen to: start other programs on the machine; read passwords, tokens or keys; read environment variables; touch sensitive locations.
Where its requests and secrets go
Read from the names along each tool's calls, not from a run: what the code says, not every address it may reach at run time.
The literal addresses the tools' requests name.
- None: no request names a fixed host.
Constants or settings that start an address; the value comes from configuration.
- None seen.
Credential-like environment variables. Give the server a key with the least access it needs.
- None: no credential-like variable is read by the tools.
2 request addresses could not be settled from the code (built at run time).
Text it brings in from outside
Text that reaches the model from outside: an instruction hidden in it can steer the agent (prompt injection). Treat what these tools return as data, not as orders.
- files1 tool · debug
- web or API responses1 tool · debug
Tool annotations
No tool declares MCP annotations (readOnlyHint, destructiveHint and the rest). Clients use them to decide what to confirm; directories such as Anthropic's and OpenAI's ask for them.
Tools, prompts and resources (20: 16 tools, 4 prompts)
Open a row for its full description. Chips show what its code can reach, and which risky capability its own description declares.
debugtool Start a complete debugging session.FilesNetworkoutside textReads/writes files
Start 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.
debugtool Start a complete debugging session.FilesNetworkoutside textReads/writes files
Start 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.
debug-attachprompt Structured workflow for attaching to a running process
Structured workflow for attaching to a running process
debug-binaryprompt Structured workflow for assembly-level debugging of a compiled binary
Structured workflow for assembly-level debugging of a compiled binary
debug-core-dumpprompt Structured workflow for post-mortem analysis of a core dump
Structured workflow for post-mortem analysis of a core dump
debug-sourceprompt Structured workflow for debugging a program from source code
Structured workflow for debugging a program from source code
breakpointtool Set a breakpoint. Provide EITHER file+line OR function name (not both).
Set a breakpoint. Provide EITHER file+line OR function name (not both).
Examples: {"file": "/path/to/main.go", "line": 42} or {"function": "main.processData"}clear-breakpointstool Remove breakpoints. Provide 'file' to clear all breakpoints in a file, 'file'+'line' to clear a specific line breakpoint, 'function' to clear a function breakpo
Remove 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}contexttool Get full debugging context at the current stop location. Always returns ALL of the following — source location, full stack trace, and all variables with types a
Get 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.continuetool Continue program execution until the next breakpoint or termination.
Continue 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"}}disassembletool Disassemble machine code at a memory address. Returns assembly instructions.
Disassemble 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.evaluatetool Evaluate an expression in the debugged program's context. Returns the result value and type. All parameters except 'expression' are optional.
Evaluate 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-statetool Supervisor-only. Return the authoritative debugger state: generation, ordered sequence, stopped/running/ended/unknown, mode, continuous stopped duration, reason
Supervisor-only. Return the authoritative debugger state: generation, ordered sequence, stopped/running/ended/unknown, mode, continuous stopped duration, reason and thread. Not a model tool.
infotool
No description.
pausetool Pause a running program. Use 'context' afterwards to inspect the current state.
Pause a running program. Use 'context' afterwards to inspect the current state.
restarttool Restart the debugging session from the beginning. Optionally provide new command line arguments via 'args', or omit to reuse the previous arguments.
Restart the debugging session from the beginning. Optionally provide new command line arguments via 'args', or omit to reuse the previous arguments.
resumetool Supervisor-only. Continue a stopped live target independently of ordinary calls; never terminates the debuggee. Pass the generation from get-debug-state to reje
Supervisor-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-variabletool Modify a variable's value in the debugged program. Requires the variablesReference from a previous 'context' call's scope.
Modify 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"}steptool Step through code one line at a time.
Step 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).
stoptool End the debugging session. By default terminates the debuggee. Pass detach=true to detach without killing the process (leaves it running); detach requires adapt
End the debugging session. By default terminates the debuggee. Pass detach=true to detach without killing the process (leaves it running); detach requires adapter support.
Text the model reads (20)
Every tool, prompt and resource description as written in the code: the model sees all of it, the user usually does not.
debug tool
Start 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.
stop tool
End the debugging session. By default terminates the debuggee. Pass detach=true to detach without killing the process (leaves it running); detach requires adapter support.
breakpoint tool
Set a breakpoint. Provide EITHER file+line OR function name (not both).
Examples: {"file": "/path/to/main.go", "line": 42} or {"function": "main.processData"}clear-breakpoints tool
Remove 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}continue tool
Continue 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"}}step tool
Step 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).
pause tool
Pause a running program. Use 'context' afterwards to inspect the current state.
context tool
Get 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.get-debug-state tool
Supervisor-only. Return the authoritative debugger state: generation, ordered sequence, stopped/running/ended/unknown, mode, continuous stopped duration, reason and thread. Not a model tool.
resume tool
Supervisor-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.
evaluate tool
Evaluate 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"}info tool
restart tool
Restart the debugging session from the beginning. Optionally provide new command line arguments via 'args', or omit to reuse the previous arguments.
set-variable tool
Modify 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"}disassemble tool
Disassemble 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.debug tool
Start 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.
debug-source prompt
Structured workflow for debugging a program from source code
debug-attach prompt
Structured workflow for attaching to a running process
debug-core-dump prompt
Structured workflow for post-mortem analysis of a core dump
debug-binary prompt
Structured workflow for assembly-level debugging of a compiled binary
What we checked
The same checks run on every server. Each line below has one of these marks:
- 8 checks: command injection, argument injection, path traversal, server-side request forgery, SQL injection, code execution, unsafe deserialization, template injectionChecked on every scan. Results in this category are published only after a person has verified them.
- Runs programs the caller choosesNo tool runs a command or program the caller supplies — 20 tool handlers traced. Not every path could be followed, so this is not a clean pass.
- Executes caller-supplied codeNo tool evaluates code the caller supplies — 20 tool handlers traced. Not every path could be followed, so this is not a clean pass.
- Reads or writes any file path1 finding the scanner could not decide; see the findings below
- Requests any addressNo tool sends a request to an address the caller supplies — 20 tool handlers traced. Not every path could be followed, so this is not a clean pass.
- Runs caller-supplied SQLNo tool executes a query the caller supplies — 20 tool handlers traced. Not every path could be followed, so this is not a clean pass.
- Tools that start processesNot seen in the traced code of 20 capabilities; 20 more call code the scanner could not follow, where it may happen
- Tools that touch files2 of 20 capabilities touch files; 18 more call code the scanner could not follow, where it may happen
- Tools that call the network2 of 20 capabilities call the network; 18 more call code the scanner could not follow, where it may happen
Where the code is: 20 handlers in 5 files at commit 6011c2cd13e8
- 5 checks: tool poisoning, instruction override, hidden content, exfiltration requests, metadata integrityChecked on every scan. Results in this category are published only after a person has verified them.
- Dependency manifests3 manifests: go.mod, testdata/go/helloworld/go.mod, testdata/go/restart/go.mod
- Lockfiles checked against OSV3 files resolved and checked against the OSV database
- Known vulnerabilities in production dependencies MEDIUM1 production package with known advisories
- Known vulnerabilities in other dependenciesNo package used only for development, tests or examples has a known advisory
- MCP SDK versiongithub.com/modelcontextprotocol/go-sdk v1.6.0
- 3 checks: credential harvesting, undeclared credential access, credentials sent over the networkChecked on every scan. Results in this category are published only after a person has verified them.
- Tools that read credentialsNot seen in the traced code of 20 capabilities; 20 more call code the scanner could not follow, where it may happen
- Authentication declaredNot checked: needs the live server's tools/list (a remote server declares how clients authenticate)
- 3 checks: undeclared network access, undeclared file access, undeclared process executionChecked on every scan. Results in this category are published only after a person has verified them.
- Tool descriptions presentEvery tool has a description the model and the user can read (1 only in code no tool reaches)
- Statically known namesEvery tool's name could be read from the code
- Input schemasNot checked: needs the live server's tools/list (every tool declares an input schema)
- Destructive tools annotatedNot checked: needs the live server's tools/list (tools that write, delete or run commands carry destructivehint)
Dependencies with known vulnerabilities (1 in production)
golang.org/x/sysGo v0.43.0 MEDIUM 1 advisory 0.44.0
- MEDIUMGO-2026-5024 CVE-2026-39824Invoking integer overflow in NewNTUnicodeString in golang.org/x/sys/windows
Past security advisories
Vulnerabilities published for this server itself, from the GitHub Advisory Database.
No security advisories have been published for this server in the GitHub Advisory Database.
How it runs
| Where it runs | On your machine, started by your MCP client from this repository or its package |
|---|---|
| Transport | not stated in the code the scanner read; most local servers talk over stdio |
| Sign-in | not checked needs the live server |
| MCP SDK | github.com/modelcontextprotocol/go-sdk v1.6.0 |
The project's own security
| Security policy | none no SECURITY.md in the repository: report issues privately through GitHub if it is enabled |
|---|---|
| Past advisories | none in the GitHub Advisory Database |
| Last push | 2026-11-03 |
| Signed releases | not checked yet |
Where it is published
| Listed in | 1 catalog (github_search) |
|---|---|
| License | MIT |
| Created | 2025-07-14 |
| Topics | agentic-ai agents ai dap debugging debugging-tool mcp mcp-server |
Attack map
How the server is built and where its risky tools lead: servers, their tools, what the tools' code can do, and the traced route from a declared risky tool's argument to the operation it reaches. Click a node for details.