MCP <> DAP server written in Go

363 views
Skip to first unread message

Derek Parker

unread,
Jul 16, 2025, 8:14:38 PMJul 16
to golang-nuts
Hey all, I wanted to share something I started working on recently: https://github.com/go-delve/mcp-dap-server.

It's an MCP (Model Context Protocol) server that can connect to a DAP (Debug Adapter Protocol) server in order to have an AI Agent drive a debugger. The project is very new and as such still has room for improvements and fixes, but it works very well already. Currently the only debugger supported is Delve, but it can easily be modified to connect to any DAP server to drive not just Delve but also gdb, lldb, and anything else that speaks DAP.

Here are some demos of the MCP server being used from Claude Code:

Basic demo with multiple prompts
Autonomous agentic debugging pt.1
Autonomous agentic debugging pt.2

I'm happy to answer any questions and as always, contributions are very welcome! Happy debugging!

Michael Oguidan

unread,
Jul 19, 2025, 6:16:24 AMJul 19
to golang-nuts
Hi Derek Parker, please what are MCP and DAP

Jason E. Aten

unread,
Jul 19, 2025, 6:00:47 PMJul 19
to golang-nuts
Hi Michael, 

You can readily lookup these terms on the web. Derek gave you the expansion of both acronyms.

Jason

Christian Stewart

unread,
Jul 24, 2025, 3:28:49 AM (10 days ago) Jul 24
to golang-nuts
Hi Derek,

Thank you for your work on delve, it is an excellent debugger for Go.

mcp-dap-server looks very interesting, I have long been wondering if it would be possible to have the LLM use the debugger to diagnose bugs autonomously. It seems like this paired with rr for record + replay (an existing feature in Delve) would be an ideal setup. There are many bugs that are simply impossible to debug without a tool like Delve + rr, so this should be a big leap forward in LLM capability for software bugfixing.

Thanks!
Christian Stewart

Wojciech S. Czarnecki

unread,
Jul 25, 2025, 11:11:39 AM (8 days ago) Jul 25
to golang-nuts
Dnia Thu, 24 Jul 2025 00:28:48 -0700 (PDT)
"'Christian Stewart' via golang-nuts" <[email protected]> napisał/a:

> this should be a big leap forward in LLM capability for software bugfixing.

https://arstechnica.com/information-technology/2025/07/ai-coding-assistants-chase-phantoms-destroy-real-user-data/

:)

--
Wojciech S. Czarnecki
<< ^oo^ >> OHIR-RIPE

Christian Stewart

unread,
Jul 25, 2025, 2:12:10 PM (8 days ago) Jul 25
to Wojciech S. Czarnecki, golang-nuts
Anyone who uses LLMs knows they make mistakes.

That doesn't mean it's not a useful tool. I would have died and gone
to heaven had someone shown me LLM capabilities in 2015.

Many of us thought this wouldn't be possible in our lifetimes.

It's a fancy autocomplete, but a very very fancy one. Don't use it to
vibe code your app. Use it to transform text and information, like
it's supposed to do.

Best regards,
Christian
> --
> You received this message because you are subscribed to a topic in the Google Groups "golang-nuts" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/topic/golang-nuts/rZgJeCkiqZ8/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to [email protected].
> To view this discussion visit https://groups.google.com/d/msgid/golang-nuts/20250725171002.73a36a38%40xmint.
Reply all
Reply to author
Forward
0 new messages