lsp-setup

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

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

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 commands/zircote/lsp-tools/lsp-setup
Clone the repo
git clone --depth 1 https://github.com/zircote/lsp-tools

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

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. 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.00020 $0.04535
Opus 5 $0.00010 $0.02268
Sonnet 5 $0.00004 $0.00907
Haiku 4.5 $0.00002 $0.00453

Measured 3d ago against content hash 98810cc5f3f8, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 3d 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. 3d 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 (12 stars, last pushed 23d ago), licensed MIT. It adds 20 tokens to every session and 4,535 once invoked, about $0.0001 per session on Opus 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.