
A debugger interface for Go programs that integrates with MCP (Model Context Protocol).
A debugger interface for Go programs that integrates with MCP (Model Context Protocol).
A debugger interface for Go programs that integrates with MCP (Model Context Protocol).
debug_testThe easiest way to install the MCP Go Debugger is with Go:
go install github.com/sunfmin/mcp-go-debugger/cmd/mcp-go-debugger@latestThis will download, compile, and install the binary to your $GOPATH/bin directory.
Alternatively, you can build from source:
git clone https://github.com/sunfmin/mcp-go-debugger.git
cd mcp-go-debugger
make installAdd the following to your Cursor configuration (~/.cursor/mcp.json):
{
"mcpServers": {
"go-debugger": {
"command": "mcp-go-debugger",
"args": []
}
}
}Add the MCP to Claude Desktop:
claude mcp add go-debugger mcp-go-debuggerVerify the connection:
/mcpThis debugger is designed to be integrated with MCP-compatible clients. The tools provided include:
ping - Test connection to the debuggerstatus - Check debugger status and server uptimelaunch - Launch a Go program with debuggingattach - Attach to a running Go processdebug - Debug a Go source file directlydebug_test - Debug a specific Go test functionset_breakpoint - Set a breakpoint at a specific file and linelist_breakpoints - List all current breakpointsremove_breakpoint - Remove a breakpointcontinue - Continue execution until next breakpoint or program endstep - Step into the next function callstep_over - Step over the next function callstep_out - Step out of the current functioneval_variable - Eval a variable's value with configurable depthlist_scope_variables - List all variables in current scope (local, args, package)get_execution_position - Get current execution position (file, line, function)get_debugger_output - Retrieve captured stdout and stderr from the debugged programclose - Close the current debugging sessionAsk the AI assistant to debug your Go program:
> Please debug my Go application main.goThe AI assistant will use the MCP to:
If your Go application is already running, you can attach the debugger:
> Attach to my Go application running with PID 12345> I'm getting a panic in my processOrders function when handling large orders.
> Can you help me debug it?The AI will help you:
If you want to debug a specific test function instead of an entire application:
> Please debug the TestCalculateTotal function in my calculator_test.go fileThe AI assistant will use the debug_test tool to:
You can also specify test flags:
> Debug the TestUserAuthentication test in auth_test.go with a timeout of 30 secondsThis is especially useful for:
When working with nested structures or complex types:
> Can you eval the user.Profile.Preferences object at line 45? I need to see all nested fields in detail.The AI will:
eval_variable tool with appropriate depth parametersTo debug a program that requires command-line arguments:
> Debug my data_processor.go with the arguments "--input=data.json --verbose --max-records=1000"The debugger will:
For debugging concurrent Go programs:
> I think I have a race condition in my worker pool implementation. Can you help me debug it?The AI can:
For understanding complex control flow:
> Walk me through what happens when the processPayment function is called with an invalid credit cardThe AI assistant will:
Pick your client and paste the snippet. Each one is the same server, written the way that client expects it.
claude mcp add go-debugger -- mcp-go-debugger{
"mcpServers": {
"go-debugger": {
"args": [],
"command": "mcp-go-debugger"
}
}
}code --add-mcp '{"name":"go-debugger","args":[],"command":"mcp-go-debugger"}'[mcp_servers.go-debugger]
command = "mcp-go-debugger"Runs locally on your device. Your client starts the server itself, so nothing has to be hosted.
Paste this prompt into your agent. It reads this page and does the setup for you.
Read https://aiagentslisting.com/mcp/mcp-go-debugger to learn what the "MCP Go Debugger" MCP server does and how to install it. Add it to my coding agent's MCP configuration as documented on that page, then confirm the server connects and list the tools it exposes.Agents can also browse this directory over MCP at https://aiagentslisting.com/api/mcp
claude mcp add go-debugger mcp-go-debuggerThis server runs locally, so we can't read its tool list over the web yet.
Maintain this server? Claiming proves you own the listing and earns the last 4 points.
Claim this listingPaste this line near the top of your repository's README. The badge always renders the current score.
[](https://aiagentslisting.com/mcp/mcp-go-debugger)Nothing comparable is listed yet.
v0.0.6Release notesv0.0.5Release notesv0.0.4Release notesv0.0.3Release notesv0.0.2Release notesv0.0.1First usableRelease notesConnect to the AI Agents Listing MCP server at https://aiagentslisting.com/api/mcp using the HTTP transport and complete the sign-in when it asks. Then call the submit_review tool for the listing "mcp-go-debugger" with a rating from 1 to 5 and a short note on what worked and what did not.No reviews yet
Be the first to share your experience with this tool.
One email a week. New agents, MCP servers and skills, and what is actually getting traction.