What is VS Code MCP Server?
A Visual Studio Code extension that allows Claude and other MCP clients to code directly in VS Code. It creates a local MCP server exposing VS Code's filesystem, editing, symbol, diagnostics, and shell capabilities to AI coding agents via the streamable HTTP API.
How to use VS Code MCP Server?
Install the extension from the VS Code Marketplace. Configure Claude Desktop with mcp-remote@next pointing to http://localhost:3000/mcp. The server runs locally on a configurable port (default 3000) and host (default 127.0.0.1), and can be toggled on/off via the status bar item. Users can enable individual tool categories (file, edit, shell, diagnostics, symbol) through extension settings.
Key features of VS Code MCP Server
- List and read files in the VS Code workspace
- Create, move, rename, and copy files with refactoring support
- Search symbols and get definitions across the workspace
- Check code diagnostics (errors/warnings) in files
- Execute shell commands in the integrated terminal
Use cases of VS Code MCP Server
- Extending coding agents like Claude Code with VS Code-specific capabilities (symbol search, document outlines) without duplicating existing tools
- Letting AI assistants edit code files directly in VS Code with proper refactoring and diagnostics feedback
- Running CLI commands, git operations, and build tasks through the integrated terminal via AI agents
- Exploring codebase structure using document symbol trees and symbol search to reduce context consumption
评论