alfonsogarciacaro/mcp-vscode-connector
3.2
If you are the rightful owner of mcp-vscode-connector and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to dayong@mcphub.com.
The MCP Connector is a VSCode extension that functions as a Model Context Protocol server, enabling AI code agents to interact with active debug sessions.
Tools
10
Resources
0
Prompts
0
MCP Connector
A VSCode extension that acts as an MCP (Model Context Protocol) server to allow AI code agents to interact with debug sessions.
Features
- Start/Stop MCP Connector: Simple commands to control the MCP server
- Session Management: List and monitor active debug sessions
- Breakpoint Control: Set, remove, and list breakpoints
- Variable Inspection: Examine variables in the current debug scope
- Execution Control: Step through code and continue execution
- Call Stack: Get current call stack information
- Expression Evaluation: Evaluate expressions in debug context
MCP Tools Available
list_debug_sessions- List all active debug sessionsget_active_session_info- Get current session detailslist_breakpoints- Get all breakpoints in workspaceset_breakpoint- Set breakpoint with optional conditionsremove_breakpoint- Remove specific breakpointsinspect_variables- Get variables in current scopestep_execution- Step control (over/into/out)continue_execution- Resume until next breakpointget_call_stack- Get current call stackevaluate_expression- Evaluate expressions in debug context
Usage
- Start a debug session in VSCode (Python, TypeScript/Node.js, etc.)
- Open Command Palette (Ctrl+Shift+P or Cmd+Shift+P)
- Run "Start MCP Connector"
- Connect your AI agent to the MCP server
- Use the MCP tools to interact with debug sessions
Security
- The extension works with existing debug sessions (AI cannot start sessions independently)
- All actions are logged to the "MCP Connector" output channel
- AI has read access by default, with configurable control permissions
Installation
This extension is currently in development. To install:
- Clone this repository
- Run
npm install - Run
npm run compile - Press F5 in VSCode to launch a new Extension Development Host window
- Or package the extension using
vsce package
To install the mcp in Claude: claude mcp add --transport sse mcp-vscode-connector http://localhost:8743/mcp/sse
Development
- TypeScript based VSCode extension
- Uses VSCode Debug API for language-agnostic debugging
- MCP server implementation using official SDK
- Comprehensive logging for debugging and monitoring
Requirements
- VSCode 1.104.0 or higher
- Node.js for TypeScript compilation