AdversaryGate

v3.0.18
io.github.Sanflow10/adversary-gate Checked 51 minutes ago Published 9 days ago

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

Values you need

VariableWhat it is
ADVERSARY_GATE_BASE_REFoptional 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_BASEoptional Set to 1 to refuse any run without ADVERSARY_GATE_BASE_REF, so the agent can never choose the baseline (the oracle)
ADVERSARY_GATE_PYTHONoptional Interpreter that runs the tests; must be one the agent cannot write to
ADVERSARY_GATE_POLICYoptional 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.18
Add 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

  1. 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).
  2. Restart or reload the client so it starts the server.
  3. Verify: the server should expose these tools: verify_repo, gate_policy.
  4. 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