LSP Bridge for VS Code
A VS Code extension that gives Claude Code access to VS Code's language intelligence — hover info, go-to-definition, references, completions, diagnostics, and more — over a local LSP bridge. WhyClaude Code runs in the terminal and has no direct access to VS Code's language server features. This extension bridges that gap by exposing VS Code's language server providers through a Unix domain socket. When the bridge is running, Claude Code can query the same type information, diagnostics, and navigation data that you see in the editor. Other approaches — such as MCP servers that wrap LSP — suffer from significant token overhead. Every MCP tool definition is injected into the system prompt (roughly 550–1,400 tokens per tool), and each tool-call response is serialized into the conversation history where it is re-processed on every subsequent turn. An MCP LSP server exposing even a handful of operations can add thousands of tokens of schema overhead per session before any real work begins. This extension avoids that cost entirely. It integrates as a native LSP server plugin, so Claude Code handles language-server operations through its built-in LSP support rather than through MCP tool calls. Diagnostics flow automatically after every file edit without an explicit tool invocation, and active queries like hover or go-to-definition use Claude Code's internal LSP handling with no per-server schema overhead. The result is the most straightforward and token-efficient way to give LLM agents access to VS Code's language intelligence. Supported Language Features
Requirements
Usage
Loading the PluginThe Generate Local Claude Plugin command (step 3) creates a plugin directory at
To avoid typing this every time, you can add it as a shell alias or use a project-level script. CommandsAll commands are available from the Command Palette (
Auto-startTo start the bridge automatically when VS Code opens, enable the setting:
How It WorksThe extension listens on a Unix domain socket with a deterministic path derived from the workspace folder. A proxy script connects Claude Code to the socket using the LicenseMIT |