MCP server exposing VS Code features
## VS Code MCP Server: IDE Integration and Extension The **VS Code MCP Server** integrates Visual Studio Code capabilities into Google Antigravity, enabling AI-assisted editor operations, workspace management, and development workflow automation. ### Why VS Code MCP? - **Editor Integration**: Direct integration with VS Code for seamless AI-assisted editing - **Extension Access**: Leverage VS Code extensions through AI-powered automation - **Workspace Management**: Manage multi-root workspaces and project configurations - **Debugging Support**: Control VS Code debugging sessions programmatically - **Settings Control**: Configure editor settings and preferences automatically ### Key Features #### 1. Editor Operations ```python from anthropic import Anthropic client = Anthropic() response = client.messages.create( model="claude-sonnet-4-20250514", max_tokens=1024, messages=[{ "role": "user", "content": "Open file in VS Code, navigate to function definition, and show references" }] ) ``` #### 2. Workspace Management ```python # Manage workspace response = client.messages.create( model="claude-sonnet-4-20250514", max_tokens=1024, messages=[{ "role": "user", "content": "Add folder to workspace and configure workspace-specific settings" }] ) ``` #### 3. Extension Control ```python # Control extensions response = client.messages.create( model="claude-sonnet-4-20250514", max_tokens=1024, messages=[{ "role": "user", "content": "Install recommended extensions for Python development and configure them" }] ) ``` #### 4. Debugging ```python # Manage debugging response = client.messages.create( model="claude-sonnet-4-20250514", max_tokens=1024, messages=[{ "role": "user", "content": "Start debugging session with breakpoint at line 42 and inspect variables" }] ) ``` ### Configuration ```json { "mcpServers": { "vscode": { "command": "npx", "args": ["-y", "@anthropic/mcp-server-vscode"], "env": { "VSCODE_IPC_HOOK": "auto", "VSCODE_WORKSPACE": "/path/to/workspace" } } } } ``` ### Use Cases **Editor Automation**: Automate repetitive editor tasks through AI assistance. **Project Setup**: Configure development environments with appropriate settings and extensions. **Code Navigation**: Navigate large codebases efficiently with AI-guided exploration. **Debugging Assistance**: Set up and control debugging sessions programmatically. The VS Code MCP Server bridges AI assistance with your IDE, enabling powerful editor automation and workflow integration.
{
"mcpServers": {
"vscode": {
"mcpServers": {
"vscode": {
"args": [
"-y",
"vscode-as-mcp-server"
],
"command": "npx"
}
}
}
}
}