Skip to main content
Glama

suite-gate

PyPI Python Licence

suite-gate connects six command-line audit tools: git-surface, trust-path, release-drift, git-overlap, pr-merge-audit and glassbox. It has three parts:

  • One result format. Each tool, run with --audit-json, prints the same JSON object: every finding with a rule id, a severity, one sentence and the evidence to check it (file, line, ref, commit).

  • A gate. suite-gate gate BASE REF runs the tools that apply to what a branch changes and gives one verdict, pass, warn, fail or error, from a versioned rules file.

  • An MCP server. suite-gate mcp lets a coding agent run the installed tools and read their results, so it can check its own branch before asking for review.

Branches written by coding agents arrive faster than a person can read them. The checks that matter (does it change CI, an install script, a dependency, a workflow's trust boundary, another branch's files?) are spread over six tools with six output formats. suite-gate makes them one check with one answer, and keeps every finding that led to it.

It decides nothing on its own. The verdict follows fixed rules in a file you can read and version, no model takes part, and each finding is the tool's own, unchanged.

Example output

The gate on a demo branch that adds a pull-request workflow, an agent instruction file and an npm install script, and edits a file another branch also edits:

One tool's result in the shared format (git surface --audit-json, first lines):

Related MCP server: reprove

Requirements

  • Python 3.9 or later, standard library only.

  • git 2.38 or later, as an executable named git on PATH, for the gate.

  • The audit tools to run, at a version that has --audit-json:

    Tool

    Minimum

    Install

    git-surface

    0.4.0

    pip install git-surface

    trust-path

    0.8.1 (0.9.0 for --forge)

    pip install trust-path

    release-drift

    0.7.0

    pip install release-drift

    git-overlap

    0.7.0

    pip install git-overlap

    pr-merge-audit

    2.3.0

    pip install pr-merge-audit

    glassbox

    0.6.0

    brew install jacob-adm/tap/glassbox, or a release

    The gate uses the first four. The MCP server offers each tool that is installed. pip install "suite-gate[all]" installs the five Python tools at the versions this release is tested with (see Install); glassbox is installed separately.

Install

From PyPI:

pip install suite-gate

With the five Python audit tools, pinned to the versions this release is tested with (git-surface, trust-path, release-drift, git-overlap and pr-merge-audit):

pip install "suite-gate[all]"

From a clone:

git clone https://github.com/jacob-adm/suite-gate
cd suite-gate
pip install .

Either way pip installs suite-gate as a console script. Check the install:

suite-gate --version
suite-gate 0.4.0

Without installing, it also runs from a clone as python3 -m suite_gate.

How it works

  1. Find what the branch changes. The gate takes the merge base of BASE and REF and lists the paths REF changes since then, as a pull request's "files changed" does.

  2. Pick the checks. The rules file names each check and when it runs: git-surface always, trust-path when a workflow changed, release-drift for each changed lockfile, git-overlap against the other branches. A check that does not apply is listed as skipped, with the reason.

  3. Run each tool with --audit-json. Every result is checked against the format before it is used: a tool that is missing, too old, or prints an invalid object is an error, never a pass.

  4. Decide. fail if a finding has a severity the rules fail on (high by default) and its rule is not one the rules downgrade to a warning; else error if a check could not run; else warn if a finding has a warn severity (medium, low); else pass. The exit status is 1 for fail, 2 for error and 0 otherwise.

  5. Report. One line per check, then each finding with its path and line. With --json, one object with the rules' name, version and SHA-256, the commits, and every tool's result, unchanged except that trust-path's leaves out the paths already at the merge base.

Commands

suite-gate gate [--repo DIR] [--rules FILE] [--forge FORGE] [--json] BASE REF   one verdict for REF against BASE
suite-gate mcp [--timeout SECONDS]                                              serve the audit tools to an MCP client
suite-gate session save|check|run [--repo DIR]... [-- COMMAND]                  what an agent session left that runs later
suite-gate validate [FILE]                                                      check an audit result object

See Gate for every option, the rules file and the JSON result, and MCP server for the tools an agent gets.

Quick start

Install the tools the gate runs, then run it inside the repository on the branch to check. Replace main with the base branch:

pip install git-surface trust-path release-drift git-overlap
suite-gate gate main ci

For a branch named ci whose only change is to a CI workflow:

FAIL: ci into main (rules default 1)
  git-surface    ran      1 high (always runs)
  trust-path     ran      nothing found (changed: .github/workflows/ci.yml)
  release-drift  skipped  no changed lockfile
  git-overlap    ran      nothing found (against 5 other branch(es) under refs/heads/)
high   git-surface.ci  ci modifies CI file .github/workflows/ci.yml  [.github/workflows/ci.yml]

git-surface reports the workflow change as high, so the verdict is fail and the exit status is 1. trust-path ran because a workflow changed and found no path from untrusted input. No lockfile changed, so release-drift was skipped.

To run the gate on every pull request, use the GitHub Action. To give a coding agent the tools, register the MCP server. For Claude Code:

claude mcp add suite-gate -- suite-gate mcp

Documentation

  • The tools: every tool in the suite, what it reports, how to install it, and the pages that test or measure it.

  • For coding agents: how an agent runs suite-gate, reads --audit-json and cites the evidence.

  • Gate: the command, the rules file, the verdict and the JSON result.

  • MCP server: setting it up, the tools, and how results and errors are returned.

  • GitHub Action: the gate on every pull request, with findings annotated on their lines.

  • Session check: a glassbox snapshot before an agent session and a report after it, by hand, around one command, or as Claude Code hooks.

  • Result format: the object each tool prints with --audit-json, its exit status rules, and the JSON Schema with examples that pass and fail.

  • Screenshots: each tool's real output on a demo repository, with and without --audit-json.

  • Contributing: running the tests and contributing a change.

  • Reporting a vulnerability

License

Apache License 2.0; see LICENSE.

Available Tools

13 tools
gateA
Read-only

suite-gate: one verdict (pass, warn, fail or error) for ref against base, from the built-in rules: git-surface always, trust-path when workflows changed, release-drift for each changed lockfile (queries registries), git-overlap against the other local branches. Returns every tool's audit result with its evidence.

Inputs: ref (required), base (required), repo (required), forge.

git_overlapB
Read-only

git-overlap: pairs of refs that change the same path since base (git footprint, then git overlap). Optional 'with' keeps only pairs that include that ref.

Inputs: base (required), refs (required), repo (required), with.

git_pairmergeB
Read-only

git-overlap: whether each pair of refs merges (git pairmerge, in memory). Optional 'onto' merges each pair as both would land on that base.

Inputs: repo (required), pairs (required), onto.

git_surfaceB
Read-only

git-surface: what each ref changes, since its merge base with base, that runs or is trusted (CI, hooks, agent files, install scripts, dependencies, hidden text).

Inputs: base (required), refs (required), repo (required).

glassbox_persistA
Read-only

glassbox: persistence points (launch agents, shell startup, git hooks, agent configs) added, changed or removed since a snapshot saved with glassbox persist --save.

Inputs: since (required), home, repos.

glassbox_reachA
Read-only

glassbox: which sensitive locations (credentials, private data) a process started here could read. Opens each location read-only; never reads contents.

Inputs: home, since.

list_audit_toolsA
Read-only

The six audit tools, whether each is installed, its version and the minimum version with --audit-json.

Inputs: no named parameters.

pr_merge_audit_reportC
Read-only

pr-merge-audit: the findings of a merge-test results file (which PRs merged, conflicted or failed their tests).

Inputs: results (required).

release_drift_diffA
Read-only

release-drift: what a new release artifact adds over an old one (install scripts, start-up hooks, native code, new dependencies, URL hosts, encoded strings).

Inputs: new (required), old (required).

release_drift_lockfileB
Read-only

release-drift: every package a lockfile change upgrades, downloaded from its registry and compared as release_drift_diff does.

Inputs: new (required), old (required).

release_drift_provenanceB
Read-only

release-drift: whether a new version was published differently from the old one (provenance removed, workflow changed, another npm account).

Inputs: new (required), old (required), name (required), registry (required).

release_drift_sourceC
Read-only

release-drift: files of a release artifact that are not, as they are, in git at ref.

Inputs: ref (required), repo (required), artifact (required).

trust_pathB
Read-only

trust-path: paths by which untrusted input reaches a secret, write permission, OIDC token, environment or AI agent action in GitHub Actions workflows (Gitea and Forgejo with forge).

Inputs: dir (required), ref, forge.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.3/5.0

    Scored across 13 tools

    Disambiguation4/5

    Each tool targets a distinct facet of the audit domain: git surface/overlap/pairmerge are separable questions, the four release_drift_* tools cover diff, source, lockfile and provenance, and glassbox_persist vs glassbox_reach are clearly split by verb. The main overlap is that `gate` aggregates the same analyses the individual tools expose, and release_drift_diff vs release_drift_lockfile could be momentarily confused since the lockfile tool is described as doing the diff comparison.

    Naming Consistency3/5

    All names are snake_case, which keeps them readable, but the prefixing scheme is irregular: some tools carry namespace prefixes (glassbox_, git_, release_drift_, pr_merge_audit), while `trust_path`, `gate` and the verb-style `list_audit_tools` do not fit that pattern. Mixed prefix conventions plus one verb_noun outlier make the set predictable only in part.

    Tool Count5/5

    Thirteen tools is well within a healthy range for a multi-checker audit suite, and each has a specific job: individual analyses, two glassbox helpers, a discovery/version tool, and one aggregating verdict. Nothing looks redundant enough to drop, and the composite `gate` tool keeps the surface from feeling like a sprawl.

    Completeness4/5

    Coverage is broad for a supply-chain/ref-audit domain: git footprint and mergeability, workflow trust paths, release artifact drift, lockfile and provenance checks, persistence and reach, plus a verdict aggregator. Minor gaps exist, such as no tool to create/save a glassbox snapshot (the description defers to an external `glassbox persist --save`) and no explicit ref/branch enumeration helper, but agents can work around these.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      B
      quality
      C
      maintenance
      Enables AI coding agents to perform evidence-based, read-only audits of supported software projects by exposing bounded project inventory and static-analysis findings for discovery, code review, integration tracing, security, and tests. Reports are returned as Markdown or JSON directly in the tool response, with no code executed or files written.
      8
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables a coding agent, over stdio MCP, to scan a project for security flaws, list and explain findings, propose and apply patches, and re-run recorded exploits to prove each fix actually holds on the patched app. Tools include scan_project, list_findings, explain_finding, propose_patch, apply_patch, verify_fix, and full_audit.
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Gives a compatible coding agent read-only access to bounded local verification of changes inside a single host-chosen workspace, exposing six stdio tools that inspect capabilities, static checks, impact analysis, policy evaluation, evidence generation, and suggested tests without shell access, plugin loading, or repository upload.
      22 npm
      Apache 2.0
    • A
      license
      B
      quality
      B
      maintenance
      Exposes nine read-only tools that let a coding agent audit a repository for fabricated fallbacks, hollow or weakened tests, silently disabled checks and missing authorization scoping. Agents can run the six deterministic engines on changed or whole-repository code and get structured findings back without modifying anything.
      10
      66 PyPI
      1
      Apache 2.0