Skip to main content

AdversaryGate

io.github.Sanflow10/adversary-gate

v3.0.18Updated Nov 21, 2026stdio · PyPI

Fail-closed merge gate an agent calls before saying done: MERGE, BLOCK or INCONCLUSIVE.

Install

Nothing to fill in: copy and run.

Run in your terminal

claude mcp add adversary-gate -- uvx adversary-gate-mcp==3.0.18

Configuration

4 settings.

  • ADVERSARY_GATE_BASE_REF
    Env var· 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
    Env var· 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
    Env var· optional
    Interpreter that runs the tests; must be one the agent cannot write to
  • ADVERSARY_GATE_POLICY
    Env var· optional
    Extra gate flags set by the operator; evidence flags are refused

Listed in the official MCP Registry since Nov 21, 2026. Mirrored daily; last checked Nov 26, 2026.