Skip to content

Model Context Protocol (MCP)

l0-git supports the Model Context Protocol, allowing it to act as an MCP server. This enables seamless integration with LLM agents like Claude Code, providing them with "eyes" on your repository's hygiene.

Usage

To start l0-git in MCP mode:

bash
lgit mcp

Tools

l0-git exposes several tools to MCP clients:

ToolDescription
gates_checkRun all gates (or one) and persist results.
gates_listInspect the registered gate set.
findings_listRich filter + sort + pagination over findings.
findings_statsAggregate stats (severity, status, top files).
findings_ignoreMark a finding as ignored.
findings_deleteDrop a finding.
findings_remediateReturn a structured remediation recipe.

Integration with Claude Code

Add l0-git to your ~/.claude.json (or use claude mcp add):

json
{
  "mcpServers": {
    "l0-git": {
      "command": "/usr/local/bin/lgit",
      "args": ["mcp"]
    }
  }
}

Once registered, Claude can automatically run checks and suggest fixes for hygiene violations.

Released under the MIT License.