MCP Bridge
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
MCP Bridge
Turns every VS Code window into an MCP server. Open several windows on different projects and each one can inspect and act on the others, and external agents can reach any of them.
How it works
On startup each window starts an MCP server on
127.0.0.1(Streamable HTTP, endpoint/mcp) with a random port and a random bearer token.It writes
{id, port, token, name, workspaceFolders}to~/.vscode-mcp-bridge/instances/<id>.json(directory mode0700, files0600) and removes the file when the window closes. Entries of crashed windows are pruned automatically.Every window watches that directory and offers the other windows as MCP servers to its own chat / agent mode (
VS Code: <workspace name>), so an agent in window A can use window B's tools directly.Every server also has
list_instancesandcall_instance, so a client connected to one window can reach all of them.
The status bar shows MCP :<port>; click it to see the running windows.
Related MCP server: vscode-mcp-api
Tools
Tool | Purpose |
| Identify this window / all running windows |
| Run a tool in another window (omit |
| Show a notification to the user of the window |
| Explore the workspace (reads include unsaved editor changes) |
| Problems reported by the window's language servers and linters |
| See / change what the user is looking at |
| Language intelligence |
| Modify files (setting |
| Run a shell command in the integrated terminal ( |
| Run any VS Code command ( |
File tools only accept paths inside the window's workspace folders.
Connecting external clients
Run MCP Bridge: Copy Connection Config in the window you want to expose:
stdio proxy (recommended) – a config that launches
out/stdioProxy.js --workspace <folder>. The proxy looks the window up in the registry for every message, so the config survives VS Code restarts:{ "mcpServers": { "vscode-myproject": { "command": "node", "args": ["<extension>/out/stdioProxy.js", "--workspace", "/path/to/myproject"] } } }Without arguments the proxy picks the window whose workspace contains the current directory, or the only running window.
--instance <id-or-name>selects one explicitly.HTTP – the direct URL plus
Authorization: Bearer …header. It contains a secret and changes each time the window restarts (setmcpBridge.portfor a fixed port).
Settings
Setting | Default | |
|
| Fixed port for this window; |
|
| Offer other windows as MCP servers to this window's chat |
|
| Expose |
|
| Expose |
|
| Expose |
The three enable* settings are ignored when they come from an untrusted workspace.
Security
The server listens on loopback only, requires the bearer token and rejects browser origins. Anyone who can read
~/.vscode-mcp-bridge (i.e. your user account) can drive every window, including the tools you enabled, so
keep the terminal and command tools off unless you need them.
Development
npm install
npm test # compiles and runs the unit tests
npm run package # builds the .vsixPress F5 to launch an Extension Development Host. Requires VS Code 1.101 or newer.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Shared memory MCP server for Claude Code, Codex, Gemini CLI and Cursor. Cited, editable.
Remote MCP server exposing your Node Command fleet (files, shell, processes, browser) to AI hosts.
The OpenRouter MCP server plugs OpenRouter into the AI tools you already use. Once connected, your assistant can pull live OpenRouter data (models, prices, your credits, rankings, and docs) and send quick test messages, all without leaving your editor.
Nifty's MCP server — exposes tasks, projects, messages, and files as tools for AI agents.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to interact with VS Code's language server protocol features (definitions, references, diagnostics) and debugger (breakpoints, stepping, variable inspection) via an MCP server.1MIT
- AlicenseNot gradedqualityBmaintenanceExposes a running VS Code instance to AI agents via MCP, enabling file operations, LSP diagnostics, terminal commands, Git workflows, and refactoring.23MIT
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to access VS Code's LSP-based code navigation and native debugging tools (definitions, references, outline, breakpoints, stepping, stack frames, variables, and evaluate) via the MCP protocol.MIT
- FlicenseNot gradedqualityAmaintenanceEnables MCP clients and AI coding agents to pull real-time editor intelligence from a running VSCode instance, including LSP diagnostics and hover/definition/signature info, symbol references with usage context, workspace-wide renames, and file opening across open workspaces. This replaces slow tsc/eslint/build round-trips with instant language-server results over a per-workspace socket.-