
VS Claude
STDIOVS Code extension with MCP server for AI assistants to interact with Visual Studio Code
VS Code extension with MCP server for AI assistants to interact with Visual Studio Code
A VS Code extension with an integrated MCP server that allows MCP clients like Claude to interact with Visual Studio Code.
VS Claude provides a simple tool for AI assistants to open files and diffs in VS Code through the MCP (Model Context Protocol) interface.
open - Open files, diffs, and git comparisons in VS Code
mcp/main.go
for the full tool descriptiongit clone https://github.com/your-username/vs-claude.git cd vs-claude npm install npm run build npm install -g @vscode/vsce vsce package
Cmd+Shift+P
(Mac) or Ctrl+Shift+P
(Windows/Linux).vsix
fileAfter installation, you will be prompted to install the MCP server for Claude. Click "Install" to proceed.
If you need to install it later or manually:
Cmd+Shift+P
on Mac or Ctrl+Shift+P
on Windows/Linux)If your AI assistant supports MCP servers:
Cmd+Shift+P
on Mac or Ctrl+Shift+P
on Windows/Linux)VS Claude consists of two components:
Commands:
VS Claude: Install MCP
- Install the MCP server with ClaudeVS Claude: Uninstall MCP
- Remove the MCP server from ClaudeMCP Client (Claude) ↔ MCP Server ↔ File System ↔ VS Code Extension
~/.vs-claude/{windowId}.in
~/.vs-claude/{windowId}.out
~/.vs-claude/{windowId}.meta.json
npm run build # Build TypeScript and Go binaries npm run build:debug # Build with Go debug symbols (no cross-compilation) npm run check # Format with Biome, lint, and type check all code npm run test # Run tests npm run clean # Remove build artifacts
vs-claude/
├── src/ # TypeScript extension source
│ ├── extension.ts # Main entry point
│ ├── tools/ # Tool implementations
│ │ ├── open-tool.ts # File opening logic
│ │ └── types.ts # TypeScript types
│ ├── command-handler.ts # Command dispatcher
│ ├── window-manager.ts # Window IPC management
│ ├── logger.ts # Logging system
│ └── setup.ts # MCP installation logic
├── mcp/ # Go MCP server source
│ └── main.go # MCP server implementation
├── scripts/ # Build scripts
│ ├── build-extension.js # Extension bundling
│ └── build-mcp-server.sh # Cross-platform Go compilation
├── test/ # Test suite
│ ├── suite/ # Test implementations
│ └── test-workspace/ # Sample project for testing
├── build/ # Build outputs (generated)
│ ├── mcp/ # Cross-platform Go binaries
│ └── extension/ # TypeScript compilation output
└── CLAUDE.md # Project-specific instructions
The project includes comprehensive tests that:
Run tests with:
npm test
Press F5 to run the extension in development mode.
claude mcp list
When multiple windows are open, the MCP server returns an error listing available windows. The MCP client must then specify a windowId with each request:
mcp_vs-claude_open({ args: {"type": "file", "path": "/path/to/file.ts"}, windowId: "window-123" })
Contributions are welcome! Please read our contributing guidelines and submit pull requests to our repository.
vsce publish
, enter the stupid token[License information here]