loading…
Search for a command to run...
loading…
An MCP server and VS Code extension that enables AI clients to interactively debug code using breakpoints, execution control, and state inspection. It is langua
An MCP server and VS Code extension that enables AI clients to interactively debug code using breakpoints, execution control, and state inspection. It is language-agnostic and works with any debugger that supports VS Code's launch.json configurations.
Enable an MCP Client to interactively debug code with breakpoints, expression evaluation, and program launching.
This is an MCP server and VS Code extension that exposes debugging capabilities via the Model Context Protocol. It's language-agnostic — it works with any debugger that has a valid launch.json in VS Code.
| Tool | Actions | Description |
|---|---|---|
debug_execute |
launch, stop, continue, stepOver, stepIn, stepOut | Control program execution during debugging |
debug_breakpoints |
set, remove, list | Manage breakpoints with support for conditions, hit counts, and log messages |
debug_inspect |
evaluate, stackTrace | Inspect program state while paused at a breakpoint |
.vsix directly, go to the three dots in "Extensions" in VS Code and choose "Install from VSIX..."
claude mcp add --transport stdio vscode-debug -- node /path/to/mcp-debug.js
Or add it to your project's .mcp.json:
{
"mcpServers": {
"vscode-debug": {
"command": "node",
"args": ["/path/to/mcp-debug.js"]
}
}
}
.vscode/mcp.json, then add:{
"servers": {
"vscode-debug": {
"type": "stdio",
"command": "node",
"args": ["/path/to/mcp-debug.js"]
}
}
}
mcpDebug.port — Server port (default: 4711)mcpDebug.autostart — Automatically start the server on activation (default: true)When multiple VS Code windows are open, the extension handles graceful hand-off of the MCP server between windows.
graph LR
subgraph MCP Clients
A[Claude Code / stdio client]
B[Cursor / SSE client]
end
subgraph Stdio Bridge
C[mcp-debug.js]
end
subgraph VS Code Extension
D[DebugServer]
E[VS Code Debug API]
end
F[Any Debugger<br/>Python, Node.js, C++, Go, ...]
A -- stdio --> C
C -- HTTP POST /tcp --> D
B -- SSE /sse --> D
D --> E
E --> F
The extension provides two ways for MCP clients to connect:
mcp-debug.js) receives MCP requests over stdio and forwards them via HTTP to the extension's debug server. Used by Claude Code and other stdio-based clients.Both paths use the VS Code Debug API under the hood, which means the extension works with any language/debugger that supports launch.json configurations (Python, Node.js, C++, Go, etc.).
npm install && cd mcp && npm install && cd ..npm run compilenpm run compilevsce package
This project uses conventional commits and release-please for automated versioning and releases.
All commits should follow the conventional commits format:
fix: — Bug fixes (patch version bump)feat: — New features (minor version bump)feat!: / fix!: / refactor!: — Breaking changes (major version bump)chore:, docs:, refactor:, test: — No version bumpEvery pull request automatically builds a .vsix artifact via CI. Download it from the GitHub Actions "Artifacts" section on the PR's checks to install and test the extension locally before merging.
When conventional commits are pushed to main, release-please automatically opens (or updates) a Release PR with a version bump and changelog entry. Merging that PR creates a GitHub release and builds the final .vsix, which is uploaded to the release assets.
This project is a fork of Claude Debugs For You by Jason McGhee. Thank you for creating the original extension and MCP server that this project builds upon.
Добавь это в claude_desktop_config.json и перезапусти Claude Desktop.
{
"mcpServers": {
"vscode-debug-mcp": {
"command": "npx",
"args": []
}
}
}