delve-mcp
MCP server for Delve debugger integration
This is a TypeScript-based MCP server that provides a complete interface to the Delve debugger for Go programs. It implements all major Delve commands and capabilities through MCP tools.
Features
Resources
- List and access debug sessions via
delve://
URIs - Each session has metadata about its type, target, and port
- JSON representation for session details and state
Tools
Debug, trace, and analyze Go programs with:
- Debug commands (
debug
,attach
,exec
,test
) - Core dump analysis
- Program tracing
- Replay debugging with
rr
- DAP server support
- Breakpoint management with conditions
- Execution control (
continue
,step
,next
) - Variable inspection and evaluation
- Backend selection (
native
,lldb
,rr
) - Logging configuration
- Session management
Environment Setup
The server requires:
- Go installed with Delve (
go install github.com/go-delve/delve/cmd/dlv@latest
) - For replay functionality: Mozilla
rr
(https://github.com/mozilla/rr) - Node.js and npm
Installation
To install Delve MCP server:
Development
Install dependencies:
Build the server:
For development with auto-rebuild:
Configuration
To use with Claude Desktop, add the server config:
- On Linux:
~/.config/Claude/claude_desktop_config.json
. - On MacOS:
~/Library/Application Support/Claude/claude_desktop_config.json
. - On Windows:
%APPDATA%/Claude/claude_desktop_config.json
.
Available Tools
Debug Commands
debug
- Debug a Go package in current directory or specified packageattach
- Attach to a running process by PIDexec
- Execute and debug a precompiled binarytest
- Debug tests in current package or specified packagecore
- Examine a core dump file with associated executabledap
- Start a Debug Adapter Protocol (DAP) serverreplay
- Replay an rr trace recordingtrace
- Trace program execution with function matching
Control Commands
setBreakpoint
- Set a breakpoint with optional conditionremoveBreakpoint
- Remove an existing breakpointcontinue
- Continue program executionnext
- Step over to next linestep
- Step into function callstepout
- Step out of current functionvariables
- List local variables in current scopeevaluate
- Evaluate expression in current scope
Configuration Commands
version
- Get Delve version informationsetBackend
- Configure debug backend (native
,lldb
,rr
)configureLogging
- Configure debug logging components
Usage Examples
Starting a Debug Session
Managing Breakpoints
Inspecting State
License
MIT.
hybrid server
The server is able to function both locally and remotely, depending on the configuration or use case.
Go プログラム用の Delve デバッガーへの完全なインターフェイスを提供する TypeScript ベースの MCP サーバー。自然言語コマンドを使用して Go コードのデバッグ、トレース、分析が可能になります。
Related MCP Servers
- AsecurityAlicenseAqualityTypeScript-based MCP server designed to enhance code editing experiences by providing features such as hover information, code completion, and diagnostics.Last updated -324MIT License
- AsecurityFlicenseAqualityA TypeScript-based MCP server designed for experimentation and integration with Calude Desktop and Cursor IDE, offering a modular playground for extending server capabilities.Last updated -25937JavaScript
- -securityAlicense-qualityA GDB/MI protocol server based on the MCP protocol, providing remote application debugging capabilities.Last updated -39RustMIT License
- -securityAlicense-qualityA Model Context Protocol (MCP) server that allows AI assistants like Claude to interact with Go's Language Server Protocol (LSP) and benefit from advanced Go code analysis features.Last updated -38GoApache 2.0