lsp-mcp-server CLAUDE.md

lsp-mcp-server CLAUDE.md is an instructions file for coding agents from ProfessioneIT/lsp-mcp-server. It costs 1,611 tokens per session, scanned A, original, MIT.

Repository guidance for an MCP server that connects coding agents to language tools for understanding and editing code.

In plain words
What is it for?
Building the project, running one test or the full test suite, checking types and lint, and trying the server with MCP Inspector.
Why use it?
It gives the agent the project's build, test, lint, and development commands, reducing guesswork when making changes.

Instructions file

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add instructions/professioneit/lsp-mcp-server/claude-md
Clone the repo
git clone --depth 1 https://github.com/ProfessioneIT/lsp-mcp-server

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for lsp-mcp-server CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/professioneit/lsp-mcp-server/claude-md.svg)](https://agentmods.dev/instructions/professioneit/lsp-mcp-server/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/professioneit/lsp-mcp-server/claude-md"><img src="https://agentmods.dev/badge/instructions/professioneit/lsp-mcp-server/claude-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 1,611 This file is loaded in full into every session.
When invoked 1,611 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.01611 $0.01611
Opus 5 $0.00805 $0.00805
Sonnet 5 $0.00322 $0.00322
Haiku 4.5 $0.00161 $0.00161

Measured 5d ago against content hash 0f9514574545, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

lsp-mcp-server CLAUDE.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

CLAUDE.md · 124 lines

How it starts

The opening of the file, as written. The whole thing — 124 lines — stays where its author put it; the contents beside it link to each section on GitHub.

CLAUDE.md

This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.

Project Overview

lsp-mcp-server is an MCP (Model Context Protocol) server that bridges Claude Code to Language Server Protocol (LSP) servers. It enables semantic code intelligence capabilities like go-to-definition, find-references, hover information, workspace symbol search, diagnostics, completion, rename, code actions, call/type hierarchy, and document formatting.

Build Commands

npm run build          # Compile TypeScript to dist/
npm run dev            # Watch mode for development
npm start              # Run the compiled server (node dist/index.js)
npm test               # Run unit tests (vitest)
npm run test:watch     # Watch mode for tests
npm run test:integration  # Run integration tests (separate vitest config)
npm run lint           # Run ESLint
npm run lint:fix       # Auto-fix ESLint issues
npm run typecheck      # Type-check without emitting
npm run clean          # Remove dist/

Running a Single Test

npm test -- tests/unit/position.test.ts           # Run specific test file
npm test -- -t "converts 1-indexed"               # Run tests matching pattern

Interactive Testing with MCP Inspector

npx @modelcontextprotocol/inspector node dist/index.js

Architecture

Claude Code ──[MCP/stdio]──> lsp-mcp-server ──[LSP/stdio]──> Language Servers
                                   │
                                   ├── ConnectionManager (keyed by serverId + workspaceRoot)
                                   ├── DocumentManager (per-URI versioning, thread-safe open/close)
                                   ├── DiagnosticsCache (stores pushed publishDiagnostics)
                                   └── Tool Handlers (24 MCP tools)

Key Design Decisions

  1. Server Instance Keying: Servers are keyed by (serverId, workspaceRoot) pairs via createServerKey() in src/utils/workspace.ts. This enables proper monorepo support where each workspace can have its own language server instance.

Read the full file on GitHub · 124 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 124 lines · 1,611 tokens per session scan A 0f9514574545

Subscribe to this mod's changes

lsp-mcp-server CLAUDE.md is an instructions file published in the GitHub repository ProfessioneIT/lsp-mcp-server (21 stars, last pushed 2mo ago), licensed MIT. It adds 1,611 tokens to every session, about $0.0081 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.