AdversaryGate
v3.0.18Fail-closed merge gate an agent calls before saying done: MERGE, BLOCK or INCONCLUSIVE.
Values you need
| Variable | What it is | |
|---|---|---|
ADVERSARY_GATE_BASE_REF | optional | Baseline git ref (e.g. origin/main). Unset, the agent may pick it, and whoever picks the baseline picks the oracle |
ADVERSARY_GATE_REQUIRE_PINNED_BASE | optional | Set to 1 to refuse any run without ADVERSARY_GATE_BASE_REF, so the agent can never choose the baseline (the oracle) |
ADVERSARY_GATE_PYTHON | optional | Interpreter that runs the tests; must be one the agent cannot write to |
ADVERSARY_GATE_POLICY | optional | Extra gate flags set by the operator; evidence flags are refused |
PyPI (uvx) discovery passed
Requires uv (https://docs.astral.sh/uv/)
Run in a terminal
claude mcp add adversary-gate -- uvx adversary-gate-mcp==3.0.18Add to
claude_desktop_config.json{
"mcpServers": {
"adversary-gate": {
"args": [
"adversary-gate-mcp==3.0.18"
],
"command": "uvx"
}
}
}Add to
~/.cursor/mcp.json{
"mcpServers": {
"adversary-gate": {
"args": [
"adversary-gate-mcp==3.0.18"
],
"command": "uvx"
}
}
}Add to
.vscode/mcp.json{
"servers": {
"adversary-gate": {
"args": [
"adversary-gate-mcp==3.0.18"
],
"command": "uvx",
"type": "stdio"
}
}
}Add to
~/.codex/config.toml[mcp_servers.adversary-gate]
command = "uvx"
args = ["adversary-gate-mcp==3.0.18"]For AI agents
- Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
- Restart or reload the client so it starts the server.
- Verify: the server should expose these tools: verify_repo, gate_policy.
- If it fails, check that the required runtime is installed (uv (https://docs.astral.sh/uv/)) and that the values above are set.
Machine-readable: install.md · manifest.json