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.
Connect the server
Section titled “Connect the server”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.
Fix permissions and project scope
Section titled “Fix permissions and project scope”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.
Available tools
Section titled “Available tools”| 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.
Add the companion skill
Section titled “Add the companion skill”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.”
A typical assistant workflow
Section titled “A typical assistant workflow”- Call
lintlane_doctorif setup is uncertain, and confirm the returned project matches your repository. - Inspect the changed files with
lintlane_checkand explicit project-relative paths. - When fixes are enabled, call
lintlane_fixon those paths, review the diff, and rerun diagnostics. A failing fix call may still have applied some fixes. - Discover available checks with
lintlane_checks, then uselintlane_runwith the relevant check IDs. Checks run in pipeline order, regardless of argument order. - Validate a proposed message with
lintlane_check_commitwhen needed. This does not create a commit.
Troubleshooting
Section titled “Troubleshooting”- 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-writeto the server arguments and restart the connection. - Wrong project: update
--projectand 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.