Skip to content

Quick start

  • Node.js 22+

AgentGate is published on npm as mcp-agentgate; the installed command is agentgate:

Terminal window
npm i -g mcp-agentgate # installs the `agentgate` command
# or run it without installing:
npx mcp-agentgate scan

Audit every MCP server your clients (Claude Desktop, Claude Code, Cursor, VS Code, Codex, OpenCode, Windsurf, Cline, Gemini CLI, Kiro, Roo Code, Kilo Code, Zed, Continue.dev, Amp, Warp, LM Studio, Trae, Qoder, Amazon Q Developer, Qwen Code, GitHub Copilot CLI, JetBrains Junie, Factory Droid, Antigravity, Goose, Crush) are configured to run — config paths are discovered automatically:

Terminal window
agentgate scan # static config analysis, terminal table
agentgate scan --live # also connect to servers (stdio + remote) and audit their live tool surface

For OAuth-protected hosted servers, log in once with agentgate auth login <server-name> — live scans pick up the cached tokens automatically.

Machine-readable output:

Terminal window
agentgate scan --format json -o report.json # open it in the report viewer
agentgate scan --format sarif -o report.sarif # for GitHub code scanning

Drop report.json into the report viewer for a visual, filterable report.

You can also scan an MCP server repo for source-level issues:

Terminal window
agentgate scan path/to/repo

Pin the tool surface your agent sees — every tool’s name, description, and input schema — into agentgate.lock:

Terminal window
agentgate lock
git add agentgate.lock

Commit the lockfile. It is your reviewed, approved baseline (format: lockfile spec).

Fail the build when anything drifts from the baseline or a severe finding appears:

Terminal window
agentgate diff # exit 1 + human-readable diff on any drift
agentgate ci --fail-on high # drift OR high-severity findings → non-zero exit

GitHub Actions:

name: mcp-gate
on: [push, pull_request]
jobs:
gate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: wookat/agentgate/packages/action@main
with:
command: ci
args: --fail-on high

Recipes for GitLab CI, CircleCI, Jenkins, and Azure Pipelines: CI integration guide.