Go Delve Debugger MCP Server logo

Go Delve Debugger MCP Server

by xhd2015

An MCP server that allows LLMs to interact with the Delve Go debugger. It enables AI assistants to debug Go applications by exposing tools to start, control, and interact with debug sessions.

View on GitHub

Last updated: N/A

What is Go Delve Debugger MCP Server?

This is a Model Context Protocol (MCP) server that integrates with the Delve Go debugger, allowing AI assistants to debug Go applications.

How to use Go Delve Debugger MCP Server?

First, install the server using go install github.com/xhd2015/dlv-mcp/cmd/dlv-mcp@latest. Then, start the server with dlv-mcp --listen :9097. Configure your MCP client (like Cursor) to connect to http://localhost:9097/sse. Use the available tools to manage debug sessions, breakpoints, and execution control.

Key features of Go Delve Debugger MCP Server

  • Start debug sessions for Go programs

  • Set breakpoints in code

  • Step through code (next, step in, step out)

  • Evaluate expressions in the context of a debug session

  • Inspect variables and stack traces

Use cases of Go Delve Debugger MCP Server

  • Automated debugging with AI assistants

  • Interactive debugging within LLM-powered IDEs

  • Remote debugging of Go applications

  • Programmatic control of Delve debugger

FAQ from Go Delve Debugger MCP Server

What is MCP?

MCP stands for Model Context Protocol, a standard for communication between models and external tools.

What is Delve?

Delve is a debugger for the Go programming language.

How do I install Delve?

Use the command go install github.com/go-delve/delve/cmd/dlv@latest.

What Go version is required?

Go 1.21 or higher is required.

How do I inspect the MCP Server?

Run bunx @modelcontextprotocol/inspector dlv-mcp