lsp-setup

lsp-setup is a command for Claude Code from zircote/lsp-tools. It costs 20 tokens per session (4,535 once invoked), scanned B, original, MIT.

A command that sets up language-server checks for the current project. It can detect supported languages, verify or offer to install their servers, configure hooks, and update CLAUDE.md with guidance.

In plain words
What is it for?
Use it to configure LSP support for languages including TypeScript, JavaScript, Python, Markdown, and Terraform, with options to skip installation, hooks, documentation changes, or run verification only.
Why use it?
It gathers several setup tasks into one workflow and shows which language services are ready.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: reads .claude/ paths; mentions CLAUDE.md; names the AskUserQuestion tool.

Part of the lsp-tools plugin — 1 skill, 4 commands, 2 hooks shipped together

Good fit Use it to configure LSP support for languages including TypeScript, JavaScript, Python, Markdown, and Terraform, with options to skip installation, hooks, documentation changes, or run verification only.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/zircote/lsp-tools/lsp-setup
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.

Clone the repo
git clone --depth 1 https://github.com/zircote/lsp-tools

Made for: Claude Code.

Or install lsp-tools, the plugin that ships this one along with the rest of its 1 skill, 4 commands, 2 hooks.

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-setup

README.md
[![agentmods](https://agentmods.dev/badge/commands/zircote/lsp-tools/lsp-setup/github.svg)](https://agentmods.dev/commands/zircote/lsp-tools/lsp-setup)
Your own site
<a href="https://agentmods.dev/commands/zircote/lsp-tools/lsp-setup"><img src="https://agentmods.dev/badge/commands/zircote/lsp-tools/lsp-setup/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.

agentmods 80×15 button for lsp-setup

Your own site · 80×15
<a href="https://agentmods.dev/commands/zircote/lsp-tools/lsp-setup"><img src="https://agentmods.dev/badge/commands/zircote/lsp-tools/lsp-setup.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 20 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 4,535 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00020 $0.04535
Opus 5.5 $0.00008 $0.01814
Sonnet 5.5 $0.00004 $0.00907
Haiku 4.5 $0.00002 $0.00453

Measured 2mo ago against content hash 98810cc5f3f8, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade B, and why

lsp-setup scanned grade B 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 2mo 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.

Unrestricted tool accessmediumExcessive agency

A wildcard tool grant or "run any command" leaves no least-privilege boundary at all.

/lsp-tools:* for related commands
commands/lsp-setup.md · 534 lines

How it starts

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

<help_check>

Help Check

If $ARGUMENTS contains --help or -h:

Output this help and HALT (do not proceed further):

<help_output>

LSP_SETUP(1)                                         User Commands                                         LSP_SETUP(1)

NAME
    lsp-setup - Set up LSP hooks, verify servers, and configure CLAUDE.md

SYNOPSIS
    /lsp-tools:lsp-setup [language...] [options]

DESCRIPTION
    Complete LSP toolchain setup: detects languages (including Markdown and
    Terraform), verifies LSP servers are installed, offers to install missing
    servers, configures hooks, and updates CLAUDE.md with LSP guidance.

    SPECIALIZED PLUGINS: If zircote/*-lsp plugins are installed (rust-lsp,
    terraform-lsp, markdown-lsp), hooks for those languages are skipped since
    the specialized plugins provide their own hooks.

OPTIONS
    --help, -h           Show this help message
    --skip-install       Skip LSP server installation prompts
    --skip-hooks         Skip hooks installation
    --skip-claudemd      Skip CLAUDE.md modifications
    --verify-only        Only verify LSP servers, don't install anything

LANGUAGES
    TypeScript/JavaScript, Python, Go, Rust, Java, Kotlin, C/C++, C#,
    PHP, Ruby, HTML/CSS, LaTeX, Markdown, Terraform

SPECIALIZED PLUGINS (hooks provided by plugin, not lsp-tools)
    zircote/rust-lsp       16 hooks (clippy, security, dependencies)
    zircote/terraform-lsp  17 hooks (tflint, trivy, checkov, terragrunt)
    zircote/markdown-lsp   4 hooks (links, frontmatter, code blocks, syntax)

EXAMPLES
    /lsp-tools:lsp-setup                     Auto-detect and full setup
    /lsp-tools:lsp-setup typescript python   Setup specific languages
    /lsp-tools:lsp-setup --verify-only       Check LSP server status
    /lsp-tools:lsp-setup --skip-install      Setup hooks only

SEE ALSO
    /lsp-tools:* for related commands

                                                                      LSP_SETUP(1)

</help_output>

After outputting help, HALT immediately. Do not proceed with command execution. </help_check>


Read the full file on GitHub · 534 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. 2mo ago First seen · 534 lines · 20 tokens per session scan B 98810cc5f3f8

Subscribe to this mod's changes

lsp-setup is a command published in the GitHub repository zircote/lsp-tools (18 stars, last pushed 4d ago), licensed MIT. It adds 20 tokens to every session and 4,535 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it B with 1 finding (unrestricted tool access). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

lsp-setup compared with commands from other repositories

lsp-setup next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
lsp-setupzircote/lsp-toolsCommand184d agoMITB20Claude Code
capturelugassawan/swe-workbenchCommand32d agoMITA22Claude Code
debuglugassawan/swe-workbenchCommand32d agoMITA46Claude Code
hotfixlugassawan/swe-workbenchCommand32d agoMITA32Claude Code
report-issuelugassawan/swe-workbenchCommand32d agoMITB19Claude Code
codesage-reindexiliaal/codesageCommand21yesterdayMITA28Claude Code
estimatecdeust/ai-architect-mcp-codebaseCommand73d agoMITA0Claude Code