Skip to content

agentgate ci

The gate: fail on tool-surface drift from agentgate.lock or on static findings at/above a severity threshold.

Terminal window
agentgate ci [options]

ci = diff + scan --fail-on, designed for pipelines: concise output and deterministic exit codes.

Flag Default Description
-c, --config <file> auto-discover Explicit MCP client config file.
-s, --server <names...> all Restrict to specific server names.
-l, --lockfile <file> agentgate.lock Lockfile path.
--skills [dir] . Directory to re-hash locked skill files from (only used when the lockfile pinned skills).
--fail-on <severity> high Severity gate for static findings: info, low, medium, high, critical — or never to gate on drift only.
-t, --timeout <ms> 15000 Per-server connect timeout.
Code Meaning
0 No drift and no findings at/above the threshold.
1 Drift detected, or findings at/above the threshold.
2 Execution error (missing lockfile, unreachable server).

When running under GitHub Actions (GITHUB_ACTIONS=true), ci, scan, and deps (table format) additionally emit one workflow-command annotation per finding — critical/high as errors, medium as warnings, low/info as notices — so findings with a file and line surface inline on the PR diff. ci also emits one error annotation per lockfile drift entry; skill drift entries carry the changed file’s path, landing directly on the PR diff. JSON and SARIF output is never mixed with annotations.

- run: npx mcp-agentgate ci --fail-on high

Full per-platform recipes (GitHub Actions, GitLab CI, CircleCI, Jenkins, Azure Pipelines): CI integration guide.