Skip to content

Install

Install Lintsure as a CLI, an MCP server for your coding agent, the Claude Code plugin or a GitHub Action. What you need, how to update and how to remove it.

Lintsure comes in four pieces. They share the same rules, run on your machine or in your own CI, and need no account. Pick the ones you need.

Piece What it gives you Start with
CLI A scan of any folder, with a report npx lintsure scan
MCP server Your coding agent can scan, plan and explain npx lintsure setup
Claude Code plugin Your rules and the guards, while the agent works /plugin install lintsure@lintsure
GitHub Action A check on every pull request uses: lintsure/action@v1

What you need

  • Node.js 22 or newer.
  • A repository with JavaScript, TypeScript or Python code. Some rules also read .env, JSON, YAML, TOML, Markdown and text files.

CLI

Run it without installing anything:

npx lintsure scan

Or install it once and run lintsure anywhere:

npm install -g lintsure
lintsure scan

Then run lintsure init to choose what to check. See the CLI for every command and flag.

MCP server for your coding agent

From your project’s folder:

npx lintsure setup

It asks which you want: every project on this machine (npx lintsure setup --everywhere) or only this one (npx lintsure setup --here). Somewhere else? Name the folder: npx lintsure setup path/to/your/project.

Asking your agent to install it? Open your project in the agent first. If the agent starts in an empty or temporary folder, Lintsure has nothing to connect to, and it will say so.

It adds the Lintsure MCP server to the agents the project uses: .mcp.json for Claude Code, .cursor/mcp.json, .vscode/mcp.json and .gemini/settings.json. Then ask your agent in plain words, for example “Lintsure, check this repo”. See the MCP server for each client.

Skills

From your project’s folder:

npx lintsure skills

It adds short instruction files that tell your agent when to check and how to handle findings. You pick which ones. See Skills.

Guards (the plugin)

From your project’s folder:

npx lintsure plugin

It installs the guards for the agents the project uses: Claude Code, Cursor, Codex and Gemini CLI. It shows what it will write first, leaves a hooks file you already have alone, and npx lintsure plugin --undo takes it out again. The guards for Cursor, Codex and Gemini CLI are new, so tell us if one misbehaves.

In Claude Code you can also add it from inside the agent:

/plugin marketplace add lintsure/plugin
/plugin install lintsure@lintsure

That’s all for local use. The plugin adds your rules, the guards, Memory, the end-of-task scan and the activity log. See Plugin and agent adapters for what each piece does and how to use the same guards in Cursor, Codex and Gemini CLI.

GitHub Action

Add a workflow step:

- uses: lintsure/action@v1

See the GitHub Action for the full workflow, and GitLab and Bitbucket for other CI.

Check that it’s ready

npx lintsure status

It checks Node, lintsure.config.yaml, the rule packs, .lintsure/rules.yml and which agents have the MCP server.

Update

  • CLI with npx: pin a version to stay on it (npx lintsure@0.3.17 scan), or leave it off to get the latest.
  • CLI installed globally: npm install -g lintsure@latest.
  • Plugin: update it from Claude Code’s /plugin menu.
  • GitHub Action: change the version in your workflow when you want a newer release.

Read the changelog before you update a pinned version in CI, so new checks don’t surprise you.

Remove

  • CLI: npm uninstall -g lintsure. With npx there’s nothing to remove.
  • MCP server: npx lintsure setup --undo removes what setup added.
  • Plugin: uninstall it from Claude Code’s /plugin menu.
  • Files in your repo: delete lintsure.config.yaml, the .lintsure folder and any report files. See Files and data for the full list.

Next steps

  1. Run your first scan and read Findings and statuses.
  2. Write your first rule in .lintsure/rules.yml. See Drift Guard.
  3. Add the check to CI with the GitHub Action.
  4. Stuck? See Troubleshooting and help.

Lintsure is a readiness tool, not an audit or legal advice. Results cover code only; a qualified person should review them. Disclaimer