Skip to content

AI assistants & MCP

Lintlane includes a local stdio MCP server and a reusable Lintlane skill. The server uses the official MCP SDK. The skill tells an assistant how to diagnose, check, fix, and verify a project; connecting the server exposes the actual tools.

First set up Lintlane in the target project. Add the following configuration to your host’s MCP settings; the settings file location depends on the host.

Configure an MCP-capable host with the following server entry. Replace both absolute paths with your installed Lintlane and target project paths:

{
"mcpServers": {
"lintlane": {
"command": "node",
"args": [
"/absolute/path/to/node_modules/lintlane/bin/mcp.mjs",
"--project",
"/absolute/path/to/project",
"--allow-write"
]
}
}
}

For this source checkout, use /absolute/path/to/lintlane/bin/mcp.mjs instead. After package installation, lintlane-mcp --project /absolute/path/to/project is also available as a binary. No dashboard or HTTP server is needed.

Omit --allow-write to disable the fix tool. This flag controls Biome fixes, not project-script execution: lintlane_run can run build, typecheck, and test scripts, which may write artifacts. Connect only to projects whose scripts you intend the assistant to execute. The configured project is fixed for the session; explicit file paths are checked against it, including symlink resolution. This is a tool boundary, not an OS sandbox for dependencies or repository scripts.

MCP tool Purpose
lintlane_doctor Setup diagnostics with a parsed report and write capability.
lintlane_checks Available check IDs, commands, defaults, and configuration problems.
lintlane_check Biome diagnostics on selected paths, defaulting to ..
lintlane_fix Supported Biome fixes on explicit paths; requires --allow-write.
lintlane_run Selected biome, typecheck, build, and test checks in pipeline order.
lintlane_check_commit Validate a proposed commit message using commitlint.
lintlane_preview_setup Preview initialization without changing files or installing dependencies.

Command results include exit code, stdout, stderr, timeout, and truncation flags. Calls are serialized, limited to two minutes, and retain at most 256 KiB of output. A failing check returns an MCP tool error with its diagnostics. Dependency installation, interactive prompts, and Git mutations are not exposed. Commitizen remains available through lintlane commit in a terminal.

To make the skill discoverable in Codex, copy the skills/lintlane directory from this checkout or the installed package into ~/.codex/skills/lintlane. Other hosts can load the same Markdown instructions through their skill system. The skill does not itself register the MCP server; configure both separately. Then ask, for example: “Use Lintlane to check the files I changed, fix supported issues, and run the available typecheck.”

  1. Call lintlane_doctor if setup is uncertain, and confirm the returned project matches your repository.
  2. Inspect the changed files with lintlane_check and explicit project-relative paths.
  3. When fixes are enabled, call lintlane_fix on those paths, review the diff, and rerun diagnostics. A failing fix call may still have applied some fixes.
  4. Discover available checks with lintlane_checks, then use lintlane_run with the relevant check IDs. Checks run in pipeline order, regardless of argument order.
  5. Validate a proposed message with lintlane_check_commit when needed. This does not create a commit.
  • Server fails to start: confirm both paths are absolute, Node.js 22+ is available to the host, and the target directory contains package.json.
  • Biome is missing: complete project setup in a terminal; the MCP tools do not install dependencies.
  • Fixes are disabled: add --allow-write to the server arguments and restart the connection.
  • Wrong project: update --project and reconnect. The project cannot change during a session.
  • A call times out or output is truncated: narrow the paths or selected checks, or use the terminal for a longer run and complete output.