Command Palette

Search for a command to run...

UnylyUnyly
Browse all

Lsp Tools

FreeNot checked

Exposes Language Server Protocol (LSP) tools such as diagnostics, goto definition, find references, symbols, and rename as a stdio MCP server.

GitHubEmbed

About

Exposes Language Server Protocol (LSP) tools such as diagnostics, goto definition, find references, symbols, and rename as a stdio MCP server.

README

ci license: MIT

Standalone Language Server Protocol tools exposed as a stdio MCP server.

Used By

This package is the upstream source of truth for two downstream plugins. Codex consumes the repository-level package directly; OpenCode consumes the same runtime as a built-in MCP package.

Project Path Role
codex-lsp packages/lsp-tools-mcp/ Codex plugin that reuses these LSP MCP tools plus a Codex-specific PostToolUse diagnostics hook.
oh-my-openagent (a.k.a. oh-my-opencode) vendor/lsp-tools-mcp/ OpenCode plugin that registers this server as a built-in Tier-1 stdio MCP. Exposes lsp_diagnostics, lsp_goto_definition, lsp_find_references, lsp_symbols, lsp_prepare_rename, lsp_rename, and lsp_status to all agents.

If you fix or extend the LSP runtime here, downstream adapters should reuse this package. Do not fork the runtime into a downstream; land changes here instead.

Quick Start

npm install
npm run check
npm test
npm run build
printf '%s\n' '{"jsonrpc":"2.0","id":1,"method":"tools/list"}' | node dist/cli.js mcp

MCP Tools

This server exposes the following tools:

  • lsp.status
  • lsp.diagnostics
  • lsp.goto_definition
  • lsp.find_references
  • lsp.symbols
  • lsp.prepare_rename
  • lsp.rename

Tool aliases are also available for compatibility:

  • lsp_status
  • lsp_diagnostics
  • lsp_goto_definition
  • lsp_find_references
  • lsp_symbols
  • lsp_prepare_rename
  • lsp_rename

When an MCP host registers this server under the name lsp (the default in both downstreams), the tools are exposed to agents as lsp_status, lsp_diagnostics, and so on, matching the alias names above.

Configuration

Default config paths (matches codex-lsp's historical layout):

  • Project: .codex/lsp-client.json
  • User: ~/.codex/lsp-client.json

Path overrides via environment variables:

  • LSP_TOOLS_MCP_PROJECT_CONFIG
  • LSP_TOOLS_MCP_USER_CONFIG

Examples (oh-my-openagent points the project config at .opencode/lsp.json via the env var):

LSP_TOOLS_MCP_PROJECT_CONFIG=.opencode/lsp.json node dist/cli.js mcp
LSP_TOOLS_MCP_USER_CONFIG=.opencode/lsp.json node dist/cli.js mcp

Example config file:

{
	"lsp": {
		"typescript": {
			"command": ["typescript-language-server", "--stdio"],
			"extensions": [".ts", ".tsx", ".js", ".jsx"]
		}
	}
}

Architecture

  • src/lsp/* standalone LSP runtime (process management, JSON-RPC transport, configuration, diagnostics, workspace edits)
  • src/tools.ts MCP tool definitions and handlers
  • src/mcp.ts stdio MCP server entry and registration
  • src/cli.ts standalone CLI entry (mcp subcommand only)

Local Development

npm install
npm run check
npm test
npm pack --dry-run

License

MIT

from github.com/code-yeongyu/lsp-tools-mcp

Install Lsp Tools in Claude Desktop, Claude Code & Cursor

Recommended · one command, every IDE
unyly install lsp-tools-mcp

Installs into Claude Desktop, Claude Code, Cursor & VS Code — handles npx, uvx and build-from-source repos for you.

First time? Get the CLI: curl -fsSL https://unyly.org/install | sh

Or configure manually

Run in your terminal:

claude mcp add lsp-tools-mcp -- npx -y github:code-yeongyu/lsp-tools-mcp

FAQ

Is Lsp Tools MCP free?

Yes, Lsp Tools MCP is free — one-click install via Unyly at no cost.

Does Lsp Tools need an API key?

No, Lsp Tools runs without API keys or environment variables.

Is Lsp Tools hosted or self-hosted?

Self-hosted: the server runs locally on your machine via the install command above.

How do I install Lsp Tools in Claude Desktop, Claude Code or Cursor?

Open Lsp Tools on unyly.org, pick your client tab (Claude Desktop, Claude Code, Cursor) and press Install — the config is generated automatically, no JSON editing.

Related MCPs

Compare Lsp Tools with

Not sure what to pick?

Find your stack in 60 seconds

Author?

Embed badge for your README

Browse similar

All development MCPs