{
  "$schema": "https://mcpkg.dev/schemas/install-manifest/v1.json",
  "name": "io.github.Sanflow10/adversary-gate",
  "slug": "io.github.sanflow10.adversary-gate",
  "title": "AdversaryGate",
  "summary": "Fail-closed merge gate an agent calls before saying done: MERGE, BLOCK or INCONCLUSIVE.",
  "version": "3.0.18",
  "serverKey": "adversary-gate",
  "pageUrl": "https://mcpkglabs.com/tool/io.github.sanflow10.adversary-gate",
  "installMdUrl": "https://mcpkglabs.com/tool/io.github.sanflow10.adversary-gate/install.md",
  "trust": {
    "score": 90,
    "grade": "A",
    "smokeStatus": "works",
    "status": "active",
    "verifiedAt": "2026-12-01T15:21:09.012636367Z"
  },
  "methods": [
    {
      "id": "pypi",
      "label": "PyPI (uvx)",
      "transport": "stdio",
      "command": "uvx",
      "args": [
        "adversary-gate-mcp==3.0.18"
      ],
      "clients": [
        {
          "client": "claude-code",
          "label": "Claude Code",
          "kind": "cli",
          "content": "claude mcp add adversary-gate -- uvx adversary-gate-mcp==3.0.18"
        },
        {
          "client": "claude-desktop",
          "label": "Claude Desktop",
          "kind": "json",
          "location": "claude_desktop_config.json",
          "content": "{\n  \"mcpServers\": {\n    \"adversary-gate\": {\n      \"args\": [\n        \"adversary-gate-mcp==3.0.18\"\n      ],\n      \"command\": \"uvx\"\n    }\n  }\n}"
        },
        {
          "client": "cursor",
          "label": "Cursor",
          "kind": "json",
          "location": "~/.cursor/mcp.json",
          "content": "{\n  \"mcpServers\": {\n    \"adversary-gate\": {\n      \"args\": [\n        \"adversary-gate-mcp==3.0.18\"\n      ],\n      \"command\": \"uvx\"\n    }\n  }\n}"
        },
        {
          "client": "vscode",
          "label": "VS Code",
          "kind": "json",
          "location": ".vscode/mcp.json",
          "content": "{\n  \"servers\": {\n    \"adversary-gate\": {\n      \"args\": [\n        \"adversary-gate-mcp==3.0.18\"\n      ],\n      \"command\": \"uvx\",\n      \"type\": \"stdio\"\n    }\n  }\n}"
        },
        {
          "client": "codex",
          "label": "Codex CLI",
          "kind": "toml",
          "location": "~/.codex/config.toml",
          "content": "[mcp_servers.adversary-gate]\ncommand = \"uvx\"\nargs = [\"adversary-gate-mcp==3.0.18\"]"
        }
      ],
      "requires": [
        "uv (https://docs.astral.sh/uv/)"
      ]
    }
  ],
  "env": [
    {
      "name": "ADVERSARY_GATE_BASE_REF",
      "required": false,
      "secret": false,
      "description": "Baseline git ref (e.g. origin/main). Unset, the agent may pick it, and whoever picks the baseline picks the oracle",
      "help": "Baseline git ref (e.g. origin/main). Unset, the agent may pick it, and whoever picks the baseline picks the oracle",
      "placeholder": "<ADVERSARY_GATE_BASE_REF>"
    },
    {
      "name": "ADVERSARY_GATE_REQUIRE_PINNED_BASE",
      "required": false,
      "secret": false,
      "description": "Set to 1 to refuse any run without ADVERSARY_GATE_BASE_REF, so the agent can never choose the baseline (the oracle)",
      "help": "Set to 1 to refuse any run without ADVERSARY_GATE_BASE_REF, so the agent can never choose the baseline (the oracle)",
      "placeholder": "<ADVERSARY_GATE_REQUIRE_PINNED_BASE>"
    },
    {
      "name": "ADVERSARY_GATE_PYTHON",
      "required": false,
      "secret": false,
      "description": "Interpreter that runs the tests; must be one the agent cannot write to",
      "help": "Interpreter that runs the tests; must be one the agent cannot write to",
      "placeholder": "<ADVERSARY_GATE_PYTHON>"
    },
    {
      "name": "ADVERSARY_GATE_POLICY",
      "required": false,
      "secret": false,
      "description": "Extra gate flags set by the operator; evidence flags are refused",
      "help": "Extra gate flags set by the operator; evidence flags are refused",
      "placeholder": "<ADVERSARY_GATE_POLICY>"
    }
  ],
  "expectedTools": [
    "verify_repo",
    "gate_policy"
  ],
  "agentSteps": [
    "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."
  ],
  "generatedAt": "2026-12-01T15:21:09.012636367Z"
}
