Borrowing it
Nothing to install: this file belongs to ProfessioneIT/lsp-mcp-server. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/ProfessioneIT/lsp-mcp-server/main/CLAUDE.mdgit clone --depth 1 https://github.com/ProfessioneIT/lsp-mcp-serverWrote 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.
[](https://agentmods.dev/instructions/professioneit/lsp-mcp-server/claude-md)<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/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<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="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.02726 | $0.02726 |
| Opus 5.5 | $0.01090 | $0.01090 |
| Sonnet 5.5 | $0.00545 | $0.00545 |
| Haiku 4.5 | $0.00273 | $0.00273 |
Grade C, and why
lsp-mcp-server CLAUDE.md scanned grade C with 1 finding 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 17d 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.
Recursive force deletehighDestructive command
rm -rf with a variable or a broad path is one typo away from removing the wrong tree.
npm run clean # rm -rf dist How it starts
The opening of the file, as written. The whole thing — 102 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 exposes 29 lsp_* tools (definition, references, hover, symbols, diagnostics, completion, rename, code actions, call/type hierarchy, formatting, highlights, inlay hints, selection/folding ranges, batch indexing, and server management). Built-in server configs cover TypeScript/JS, Python, Rust, Go, C/C++, Ruby, PHP, Elixir, Kotlin, and Java.
Commands
npm run build # Compile TypeScript (src/ -> dist/)
npm run dev # tsc --watch
npm test # Unit tests (vitest, tests/unit/**/*.test.ts)
npm run test:watch
npm run test:integration # Build and test the executable over MCP stdio
npm run typecheck # tsc --noEmit
npm run lint # ESLint on src/ only
npm run lint:fix
npm run clean # rm -rf dist
npm test -- tests/unit/position.test.ts # Single test file
npm test -- -t "converts 1-indexed" # Tests matching a name
npx @modelcontextprotocol/inspector node dist/index.js # Interactive MCP testing
tests/integration/ exercises the compiled MCP executable with clients identifying as Codex and Claude Code, using local LSP fixtures. Run npm run test:integration to build and execute it without external language servers or API credentials. Codex setup is documented in README.md.
Release
Every push to main triggers .forgejo/workflows/publish.yml: npm test, npm run typecheck, npm run test:integration (including the build), then an automatic patch bump, a vX.Y.Z tag, a chore: bump version ... [skip ci] commit, and npm publish. Do not bump the version manually. Lint is not run in CI, so run it locally.
Architecture
Claude Code ──[MCP/stdio]──> lsp-mcp-server ──[LSP/stdio]──> Language Servers
│
├── ConnectionManager (one client per serverId + workspaceRoot)
├── DocumentManager (per-URI versioning, open/close)
├── DiagnosticsCache (stores pushed publishDiagnostics)
└── Tool handlers (src/tools/*.ts)
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.
- 17d ago Changed · +1 lines · +49 tokens per session 7feae28217c5
- 25d ago Changed · +2 lines · +282 tokens per session 0ab3b9ab82e4
- 1mo ago Changed · -25 lines · +784 tokens per session scan A → C 81cb4ee30f39
- 1mo ago First seen · 124 lines · 1,611 tokens per session scan A 0f9514574545
lsp-mcp-server CLAUDE.md is an instructions file published in the GitHub repository ProfessioneIT/lsp-mcp-server (24 stars, last pushed 3d ago), licensed MIT. It adds 2,726 tokens to every session, about $0.0109 per session on Opus 5.5. A static security scan graded it C with 1 finding (recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other instructions, from other repositories
vscode buildNext.instructions.md
Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).
next.js AGENTS.md
AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.
vscode oss-third-party-notices.instructions.md
Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, cache eligibility and rollout and applying the notice (cutover).
langchain AGENTS.md
AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.
vscode copilot-instructions.md
Copilot instructions for microsoft/vscode, covering vs code copilot instructions, project overview, root folders, core architecture (src/ folder) and built-in extensions (extensions/ folder).
deepseek-harness AGENTS.md
AGENTS.md instructions for deepseek-ai/deepseek-harness, covering agents.md, pre-stable apis and released session data, repository layout, commands and host sandbox failures.