Workspace Bridge MCP
Provides structured Git integration for inspecting status, diffs, and history, plus locally approved staging/unstaging and commits bound to a reviewed staged patch.
Discovers root package.json scripts and supports running approved npm tasks, with manifest-bound approval for one run or the current bridge session.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Workspace Bridge MCPfind where saveUser is defined and show its references"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Workspace Bridge MCP
Give your AI client a practical workflow inside VS Code. Read related files together, navigate symbols, prepare precise edits, organize text files, and follow approved command tasks—with access controlled in the editor.
Workspace Bridge is an MCP server inside VS Code. External MCP clients connect to it. VS Code's built-in MCP support goes in the other direction: it makes VS Code a client of other servers. You do not need to add this extension as a server inside VS Code to expose the workspace.
Connection requirement: Streamable HTTP with a custom
Authorization: Bearer …header. Bearer authentication is not OAuth; hosted connectors that require OAuth may be incompatible. The bridge does not create a public tunnel.

Real v0.4.0 screenshot in an isolated development profile, with a synthetic demo workspace. No user project, credential or unrelated window is included.
v0.4: edit, review and verify
41 tools now include structured Git, semantic rename, formatting and edit-only quick fixes, plus manifest-bound npm tasks and conservative TAP summaries.
Preview a bounded multi-file refactor, approve it locally, and apply one text-only WorkspaceEdit. Changes remain unsaved for review. Language features depend on installed providers.
Inspect Git status, diffs and history; locally approve explicit staging/unstaging and commits bound to a completely reviewed staged patch. No hooks, signing or automatic push. Staging uses raw bytes without clean filters or line-ending conversion.
Discover root package.json scripts. Approve one run or the same task for this bridge session; changes to the manifest require approval again. Session approval can run changed project code with your account privileges; it is not a sandbox.
Grant edits, refactors, project tasks, Git writes and arbitrary terminal access separately, for 30 minutes, two hours or this session. Privileged grants expire while read access remains available.
Run background jobs for up to 60 minutes, sharing three active slots across terminal and project tasks. Retain a bounded rolling log with truncation offsets instead of stopping high-output jobs. Suspected secrets cause output to remain withheld.
Git currently requires a self-contained repository root and repository-local identity for commits; linked worktrees, submodules and special configurations are conservatively restricted. Identity is not returned to the model. Unsupported test output stays unknown. See v0.4 workflows and limits.
Related MCP server: VSCode MCP
One control center, from connection to completion
Open Workspace Bridge: Open Control Center from the Command Palette, the bridge sidebar, or the status bar. See the active workspace and permissions, search the 41-tool directory, follow background tasks, cancel bridge-owned work, and inspect recent request metadata in one editor panel.
The control center supports English and Chinese, keyboard navigation, narrow editor groups, and the active VS Code theme. It never displays tokens, command text, or terminal output. Copy client configuration intentionally copies a token into your clipboard; use it only in a trusted client.

Real v0.2.0 screenshot from an isolated VS Code development profile and a synthetic sample project. The native sidebar remains available; this image predates the v0.3 control center. No token or personal project is shown. The banner and workflow illustrations are original project assets.
Start in three steps
Install. Download the
.vsixfrom Releases, verify its checksum, then choose Extensions → … → Install from VSIX… in VS Code.Start. Open a trusted folder, open Workspace Bridge in the Activity Bar, and select Open control center → Start bridge. Confirm the workspace shown in the panel.
Connect. Select Copy client configuration, add it to a compatible MCP client, then use Copy starter prompt to begin with workspace discovery and reading.
The bridge starts with read access; editing and terminal execution stay off until you enable them locally. Each window has its own token. Connection configuration contains that secret—keep it in protected client settings, out of repositories and chat messages.
Detailed installation, client configuration, and troubleshooting →
Work with the editor's context
Your goal | What the bridge provides |
Read a useful slice of the project | Workspace discovery, safe file listing, literal search, and batch reads of up to ten related files—including unsaved editor changes and per-file hashes. |
Navigate the code | Workspace and document symbols, definitions, type definitions, implementations, references, hover, diagnostics, and opening an allowed file for local review. Language features use installed providers. |
Make a precise change | Local diff previews, hash-checked whole-file writes, range edits, and unique literal replacements. Range edits and replacements preview by default. |
Organize project text files | Create safe directories, move one saved text file without overwriting, or send one file to Trash after local confirmation. No recursive deletion or permanent-delete fallback. |
Run and follow a check | Short foreground commands or named background tasks with status polling, optional bounded output, and cancellation. Enable access locally and approve every command. |
Stay in control | A theme-aware control center with searchable tools, permission states, owned tasks, request metadata, connection copying, token rotation, and local diagnostics export. |
The server exposes 41 tools and the review_workspace prompt. v0.3 adds batch reading, wider code navigation, text-file lifecycle tools, and asynchronous command tasks. The tool reference documents exact arguments and limits. Active selection text and background-task output are returned only when explicitly requested.
Permissions you can see
Capability | Initial state | Local control |
Read allowed files and editor context | Available when the bridge runs in a trusted workspace | Stop the bridge to end access. File tools enforce the selected workspace boundary and filtering. |
Preview edits, save, create directories, move or trash text files | Off | Enable editing for this session. Existing-file changes need the current SHA-256; moving/trashing also rejects unsaved changes. Each Trash operation requires local confirmation. |
Execute a terminal command | Off | Enable terminal access, then approve each command and its working directory. |
Reach the bridge remotely | Loopback listener only | Configure your own HTTPS forwarding and allowed hostname. See remote access. |
Stopping the bridge or changing workspaces resets editing and terminal grants. Reloading a window creates a new token; rotation revokes the old one immediately. Use the configuration from the intended window and rediscover its workspace before making changes.
Background tasks are session-only: at most three can await approval, run, or stop at once. A task ID or awaiting_approval response is not completion. Poll its state, inspect the final result, and remember that cancellation or failure does not undo effects the command already produced.
Approved terminal commands use your operating-system account; they are not sandboxed. They can access files outside the workspace and use the network.
Connect a client
Copy the actual configuration from the running panel. This example illustrates the connection shape; client schemas differ:
{
"mcpServers": {
"workspace-bridge": {
"type": "http",
"url": "http://127.0.0.1:<PORT>/mcp",
"headers": { "Authorization": "Bearer <TOKEN>" }
}
}
}<PORT> and <TOKEN> are placeholders. A stdio-only client needs its own HTTP adapter. Remote clients need a user-managed HTTPS route; this release has no OAuth authorization server, automatic tunnel, or multi-window router.
Try a first request such as:
Discover the current workspace, then read its README and current diagnostics. Summarize what you found with file references. Do not change files or run terminal commands.
Privacy, with explicit limits
Local by default. Loopback binding, bearer authentication, VS Code SecretStorage, and no telemetry. Copying the configuration intentionally places a token on the clipboard and in your chosen client.
Constrained file tools. Relative paths, real-path checks, link rejection, sensitive-name/content filtering, and bounded results. Filters cannot recognize every secret or provide operating-system isolation.
Minimal bridge records. The control center, activity logs, and exported bridge diagnostics omit file contents, command text, terminal output, tokens, and user absolute paths. Requested file, language-service, and command results still go to the client and follow its retention policies.
Read the security policy, threat model, and audit notes before exposing an endpoint or enabling terminal access. Passing tests and scans do not prove that every vulnerability is absent.
Verification and compatibility
The release workflow checks builds, unit tests, packaging, and privacy on Windows, macOS, and Linux. Real editor integration has also been exercised in isolated Windows and Linux environments. See validation evidence and the CI run for the exact release scope.
Requires VS Code 1.96+. WSL, SSH, containers, and other remote extension hosts need separate acceptance; “local” means the machine running the extension host. Client compatibility depends on transport and authentication support, not the client's brand.
Build and contribute
Requires Node.js 22+:
git clone https://github.com/Yari-tuber/vscode-workspace-bridge-mcp.git
cd vscode-workspace-bridge-mcp
npm ci
npm test
npm run privacy
npm run build
npm run test:integration
npm run packageIntegration tests use a separate VS Code profile and temporary workspace. They download a test runtime unless VSCODE_EXECUTABLE selects an existing one. Use dummy data for development and acceptance.
Resource | Purpose |
Installation, settings, token lifecycle, and connection errors | |
Searchable capabilities, permissions, owned tasks, and request metadata | |
Schemas, line conventions, editing workflow, and error handling | |
HTTPS forwarding, host validation, and remote environments | |
Comparable bridges, design references, and future work | |
Development expectations and changes | |
Upstream inspiration and dependency licenses |
Released under the MIT license. This project does not imply endorsement by VS Code, MCP client vendors, or upstream projects.
This server cannot be deployed
Maintenance
Related MCP Connectors
Lean 4 MCP server: compile, prove theorems, and formalize math with Mathlib.
The official Svelte MCP server providing docs and autofixing tools for Svelte development
Enable secure connectivity between Sentry issues and debugging data, and LLM clients, using a Model Context Protocol (MCP) server.
MCP server for mandates, delegation, policy-gated execution, credential grants, and audit.
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceEnables MCP clients to inspect and interact with VS Code virtual workspaces and live editor buffers, including reading, searching, editing, saving, and diagnostics without shell access.1MIT
- FlicenseNot gradedqualityAmaintenanceEnables MCP clients and AI coding agents to query a running VSCode instance for real-time LSP diagnostics, hover/definition/signature info, symbol references, and workspace-wide renames instead of waiting on slow tsc or eslint runs. It also supports opening files, listing workspaces, and executing VSCode commands through a bridge extension.-
- FlicenseNot gradedqualityAmaintenanceEnables MCP clients and AI coding agents to query an open VSCode instance for real-time LSP diagnostics, type information, definitions, references, file navigation, and workspace-wide symbol renaming.-
- 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.-