
danchuna/vscode-mcp-api
Developer toolsThis page was translated automatically. Technical details may differ from the original. View the original
Let web AI easily use MCP tools to manage local files
Overview
Bilibili Video Tutorial https://www.bilibili.com/video/BV1FMeW6RE1J User QQ group: 611067889 Attention! Any AI capable of calling MCP can use this plugin, and it is continuously being updated. Open source is not easy, please give it a Star to support. This project is based on the open-source project vscode-mcp-bridge. This project is based on the open-source project vscode-mcp-bridge. Expose running ** to AI agents via MCP (Model Context Protocol): agents can read and write files, view LSP diagnostics, execute terminal commands, operate git, and refactor—just like sitting in front of your computer. - :File read/write, visualized Diff, LSP (diagnostic/defining/reference/hover/symbol), full workspace refactoring, terminal management, git state, etc. - :/sse (local classic SSE) + /mcp (Streamable HTTP stateless, remote/proxy environment recommended) - :One-click exposure of local VS Code to the public (trycloudflare.com), allowing agents on web versions or other computers to access - :Real input box displays current external network address (auto-refresh), real button one-click copy address / copy keywords - **Whitelist with commands, control access surface - Extensions automatically run when VS Code starts, no manual activation required 1. Open the Extended panel (Ctrl+Shift+X) 2. Click the top right corner of the panel ··· → 3. Select vscode-mcp-api-1.0.1.vsix 4. (Ctrl+Shift+P → "Reload window") Port default is 3333, default "Fixed Port" policy: address http://127.0.0.1:3333 remains unchanged after reboot. If a port is occupied, a clear error report (including occupied processes) will be given, and it will not quietly roll over; If you need legacy rollover behavior, you can enable mcpServer.portFallback. Configure local MCP clients (Claude Code, Cline, and other MCP-supporting tools): Configuration example (~/.claude/mcp.json or clients supporting mcpServers):
Overview (machine translated)
Bilibili Video Tutorial https://www.bilibili.com/video/BV1FMeW6RE1J
User QQ group: 611067889
Attention! Any AI capable of calling MCP can use this plugin, and it is continuously being updated. Open source is not easy, please click Star for support.
Chinese | English
This project is based on the open-source vscode-mcp-bridge project. This project is based on the open-source project vscode-mcp-bridge.
Expose running VS Code instances to AI agents via MCP (Model Context Protocol): agents can read and write files, view LSP diagnostics, execute terminal commands, operate git, and refactor—just like sitting in front of your computer.
Functional Features
- 27 MCP tools: file read/write, visualization diff, LSP (diagnostic/defining/reference/hover/symbol), full workspace refactoring, terminal management, git state, and more
- Dual Transmission Endpoints:
/sse(Local Classic SSE) +/mcp(Streamable HTTP stateless, recommended for remote/proxy environments) - Built-in cloudflared external tunnel: exposes local VS Code to the public network (trycloudflare.com) with one click, allowing agents on web versions or other computers to connect
- “MCP Bridge Panel”: The real input box displays the current external address (auto-refreshing), and the real button allows one-click copy of address / keyword prompt
- Optional Bearer Token Authentication and command whitelist to control access surfaces
- Extensions run automatically when VS Code is launched, no manual activation required
Installation
Method 1: Install VSIX from the command line
Method 2: Install via VS Code interface
- Open the Extension panel (
Ctrl+Shift+X) - Click
···→ at the top right of the panel Install from VSIX - Select
vscode-mcp-api-1.0.1.vsix - Reload the window(
Ctrl+Shift+P→ “Reload the window”)
Verify the installation
After the window is reloaded, the status bar in the lower right corner will display the message MCP :3333; You can also perform a health check:
port default is 3333, default “Fixed Port” policy: address
http://127.0.0.1:3333remains unchanged after reboot. If a port is occupied, a clear error (including occupied processes) will be given, and it will not quietly be delayed; If older versions require delay behavior,mcpServer.portFallbackcan be enabled.
Use 1: Local Agent Integration (Same Computer)
Configure local MCP clients (Claude Code, Cline, and other MCP-supporting tools):
This page was translated automatically. Technical details may differ from the original.
Install
npx vsce package --no-dependencies # 生成 VSIXConfiguration
{
"mcpServers": {
"vscode": {
"url": "http://127.0.0.1:3333/mcp"
}
}
}