microsoft/DebugMCP
Gift your VS Code agent a real debugger: breakpoints, stepping, inspection.
What it solves
When an AI coding assistant hits a bug, it usually has to guess from logs or error messages. DebugMCP fixes that by giving the assistant direct control over the real debugger — the same one a human developer would use inside VS Code. The AI can set breakpoints, run code line by line, look at variable values, and try out expressions, so it can find the root cause of a problem instead of reasoning from incomplete output.
How it works
DebugMCP is an MCP (Model Context Protocol) server that exposes the VS Code debugger as a set of tools an AI assistant can call. The tools cover the full debugging workflow: start and stop debug sessions, step over/into/out of code, continue to the next breakpoint, pause a freely running program, add and remove breakpoints, add logpoints, list variables, fetch variable values, and evaluate expressions. The server runs 100% locally (on port 3001 by default), requires no credentials, and auto-registers itself with supported assistants.
A separate standalone CLI (installed from npm as "debugmcp") can do the same job without VS Code at all. It connects AI agents directly to explicitly configured Debug Adapter Protocol (DAP) adapters over stdio — the CLI never discovers, downloads, or selects an adapter on its own; the user registers each adapter explicitly. The debug adapter and the target process run in the background.
The tool also ships a companion "debug-live" agent skill that gets installed into standard skills directories (~/.agents/skills/ and ~/.copilot/skills/). That skill carries the procedural debugging knowledge — when to debug, how to structure a root-cause investigation, language-specific quirks — so the assistant can load the full workflow on demand. The server advertises MCP instructions pointing agents at the skill before they start debugging.
Who it's for
Developers who use AI coding assistants — GitHub Copilot, GitHub Copilot CLI, Codex, Claude Code, Cline, Cursor, Windsurf, Roo Code, Antigravity, or any other MCP-compatible assistant — and want those assistants to debug code autonomously. It works with any language that VS Code can debug; the README explicitly lists full support for Python, JavaScript/TypeScript, Java, C/C++, Go, Rust, PHP, Ruby, and C#/.NET, each through its standard VS Code debugger extension.
Highlights
- AI assistants can autonomously set breakpoints, step through code, inspect variables, and evaluate expressions — exactly like a human developer at the debugger
- Runs 100% locally with zero configuration; no external communications and no credentials required
- Works with any MCP-compatible assistant, with auto-registration for nine popular AI coding tools
- Standalone CLI (npm package "debugmcp") works without VS Code by talking to explicitly configured DAP adapters — the adapter and target process run in the background, and it supports languages from Python and JavaScript to Java, Go, Rust, C#, PHP, Ruby, and more
- A bundled "debug-live" agent skill installs into standard skills directories so skills-compatible harnesses get a systematic debugging workflow on demand
- Debug output capture reads logpoint messages without pausing the program (opt-in; off by default)
- Output capture bounces credentials through a heuristic redaction, though the README warns it is not a guarantee that every secret is removed
Related
- Project
- Project
- Project
- Project