A VSCode extension that provides comprehensive multi-language debugging capabilities and automatically exposes itself as an MCP (Model Context Protocol) server for seamless integration with AI assistants.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
DebugMCP - Empowering AI Agents with Multi-Language Debugging Capabilities
A VSCode extension that provides comprehensive multi-language debugging capabilities and automatically exposes itself as an MCP (Model Context Protocol) server for seamless integration with AI assistants.
📢 Beta Version Notice: This is a beta version of DebugMCP maintained by ozzafar@microsoft.com and orbarila@microsoft.com. We welcome feedback and contributions to help improve this extension.
DebugMCP bridges the gap between professional debugging and AI-assisted development by providing a powerful debugging interface that AI assistants can use to help you identify and fix issues in your code. DebugMCP enables AI assistants to perform sophisticated debugging operations on your behalf.
The extension automatically activates and registers as an MCP server
Verification
After installation, you should see:
DebugMCP extension in your installed extensions
MCP server automatically running on port 3001 (configurable)
Debug tools available to connected AI assistants
📝 Note: No additional debugging rule instructions are needed - the extension works out of the box.
💡 Tip: Enable auto-approval for all debugmcp tools in your AI assistant to create seamless debugging workflows without constant approval interruptions.
The extension handles debug configurations intelligently:
Existing launch.json: If a .vscode/launch.json file exists, it will:
Search for a relevant configuration
Use a specific configuration if found
Default Configuration: If no launch.json exists or no relevant config, it creates an appropriate default configurations for each language based on file extension detection
Requirements
VSCode with appropriate language extensions installed:
MCP-compatible AI assistant (Copilot, Cline, Roo..)
Demo
Watch to see DebugMCP in action, showing the integration between the VSCode extension and an AI assistant using the MCP protocol.
Development
To build the extension:
npm install
npm run compile
Contributing
This project welcomes contributions and suggestions. Most contributions require you to agree to a
Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us
the rights to use your contribution. For details, visit https://cla.opensource.microsoft.com.
When you submit a pull request, a CLA bot will automatically determine whether you need to provide
a CLA and decorate the PR appropriately (e.g., status check, comment). Simply follow the instructions
provided by the bot. You will only need to do this once across all repos using our CLA.
Security vulnerabilities should be reported following the guidance at https://aka.ms/SECURITY.md.
Please do not report security vulnerabilities through public GitHub issues.
Trademarks
This project may contain trademarks or logos for projects, products, or services. Authorized use of Microsoft
trademarks or logos is subject to and must follow
Microsoft's Trademark & Brand Guidelines.
Use of Microsoft trademarks or logos in modified versions of this project must not cause confusion or imply Microsoft sponsorship.
Any use of third-party trademarks or logos are subject to those third-party's policies.