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.
--fail-on <severity> high Severity gate for static findings: info, low, medium, high, critical.
-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).
- run: npx mcp-agentgate ci --fail-on high

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