Local Bazel monorepo quality gate running lint, coverage, and architecture checks with pass/fail verdicts.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
One-click editor setup isnβt available for this listing yet β we donβt have a confirmed install command, and weβd rather show nothing than point your editor at the wrong package or host. Follow the projectβs own setup instructions, linked above.
Inspect callable tools, capabilities, and parameters exposed to AI agents by Gavel.
Bazel builds your monorepo. Gavel judges it. Order in the codebase!
The quality gate for Bazel monorepos β build-graph-native, local, agent-ready.
Your monorepo builds green. That's not the same as innocent. Gavel gathers the
evidence as Bazel aspects, holds every change to the law you set in gavel.yaml,
and returns a verdict: the regression you just introduced stands charged, while a
decade of existing debt is not on trial. One verdict, handed to your CI, your
terminal, and your coding agent alike.

Prebuilt binaries for every platform are on the releases page.
Gavel needs a Bazel 8.0+ (bzlmod) workspace; verify with gavel --version.
Every change gets its day in court.
Analyzers β golangci-lint, PMD, CPD, SpotBugs, Error Prone, Ruff, Bandit,
ESLint, Clippy β run as Bazel aspects. They see the exact source tree,
dependency graph, and toolchains Bazel already resolves; no separate scanner, no
second config to drift. SonarQube re-scans the world; Gavel looks only at the
targets the graph says changed (--affected), so a run stays fast as the
monorepo grows. Every tool, every language, normalized to one format: SARIF.
gavel.yaml is the quality gate β code, reviewed and versioned with the
repo, not clicked into a web UI. It evaluates only what you just added against a
committed baseline: new findings, coverage regressions, new architecture
violations. Adopt Gavel on ten years of debt and it blocks on today's diff,
never on the backlog.
Every run saves a fingerprint snapshot; the next shows the delta β new, fixed, existing β plus the coverage trend. No server required.
Coding agents write code they can't see the consequences of β a lint regression,
a coverage drop, a layering violation land three commits later in CI. gavel mcp
starts a Model Context Protocol server that
exposes judge, lint_file, findings, coverage, and arch as tools. Point
Claude Code, Cursor, or Zed at it and the agent checks its own work against the
same Bazel-aware gate as it writes β a quality conscience, inline.
For editors and dashboards, gavel watch re-analyzes on every save and emits a
JSONL event stream. Both run fully local β no server, no network.
| SonarQube | Gavel | |
|---|---|---|
| Build-graph awareness | None | Bazel aspects understand target dependencies |
| Monorepo model | One project, or a branch per project | Hierarchical: per-package, per-project, whole repo |
| Analysis scope | Full scan or file diff | Bazel-aware: changed files + affected targets |
| Local workflow | Server round-trip | Fully local, zero network |
| Coding-agent / editor loop | β | MCP server + watch event stream |
| Quality gate | Web-UI config | Code (gavel.yaml), versioned with the repo |
| Progress tracking | Server-backed | Local fingerprint snapshots, no infrastructure |
| Footprint | Java server + database + scanner | One static Go binary, runs inside Bazel |
SonarQube is a mature platform with fifteen years of rules behind it, and Gavel isn't trying to replace it. Gavel answers a question SonarQube structurally can't: which packages of my Bazel monorepo are healthy, and did this change make one of them worse β where the build graph is the unit of analysis and the inner loop is where quality is actually won.
Already running aspect's rules_lint? Keep it. Gavel reads the SARIF it drops in
bazel-bin/(gavel judge --findings-source=rules_lint) and turns those reports into a gate β baseline delta, coverage, architecture, verdict β the layer rules_lint deliberately leaves to you.
Alpha β v0.1.0. Under active development; APIs and config formats may change. Gavel gates its own repository on every commit β it is its own first user.
Working today:
gavel init β scaffold config + Bazel integrationgavel judge β analyze, evaluate the gate, show findings and the deltagavel judge --project <name> Β· --quick Β· --summary Β· --affected β scope and shape the rungavel judge --absolute β evaluate all findings (release gates, nightly)gavel judge --json Β· --output-sarif report.sarif β structured output for CI, IDEs, GitHub Code Scanninggavel judge --server URL --token TOKEN β shared team baseline: fetch and submitgavel watch β re-analyze on change, emitting a JSONL event streamgavel mcp β Model Context Protocol server for editor / agent integrationgavel validate β check Bazel integration healthgavel.yaml and architecture.yml, field by fieldgavel-serverIssues and pull requests are welcome β see CONTRIBUTING.md and our Code of Conduct. Security reports go through SECURITY.md.
Factual signals from GitHub, npm, and our automated checks β not a rating.
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/gavelcode-gavel)<a href="https://allmcps.com/mcp/gavelcode-gavel"><img src="https://allmcps.com/api/badge/gavelcode-gavel?style=directory" alt="Gavel on AllMCPs" /></a>