{
  "$schema": "https://mcpkg.dev/schemas/install-manifest/v1.json",
  "name": "io.github.nightmoose/contractgate",
  "slug": "io.github.nightmoose.contractgate",
  "title": "AISchemaGate and DataContractGate",
  "summary": "AISchemaGate validates and repairs structured LLM output against a contract, plus DataContractGate.",
  "version": "0.4.3",
  "serverKey": "contractgate",
  "pageUrl": "https://mcpkglabs.com/tool/io.github.nightmoose.contractgate",
  "installMdUrl": "https://mcpkglabs.com/tool/io.github.nightmoose.contractgate/install.md",
  "trust": {
    "score": 94,
    "grade": "A",
    "smokeStatus": "works",
    "status": "active",
    "verifiedAt": "2026-12-01T14:45:26.660346031Z"
  },
  "methods": [
    {
      "id": "npm",
      "label": "npm (npx)",
      "transport": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "--package=@nightmoose/contractgate-mcp-server@0.4.3",
        "contractgate-mcp"
      ],
      "clients": [
        {
          "client": "claude-code",
          "label": "Claude Code",
          "kind": "cli",
          "content": "claude mcp add contractgate -e 'CONTRACTGATE_API_KEY=<CONTRACTGATE_API_KEY>' -- npx -y --package=@nightmoose/contractgate-mcp-server@0.4.3 contractgate-mcp"
        },
        {
          "client": "claude-desktop",
          "label": "Claude Desktop",
          "kind": "json",
          "location": "claude_desktop_config.json",
          "content": "{\n  \"mcpServers\": {\n    \"contractgate\": {\n      \"args\": [\n        \"-y\",\n        \"--package=@nightmoose/contractgate-mcp-server@0.4.3\",\n        \"contractgate-mcp\"\n      ],\n      \"command\": \"npx\",\n      \"env\": {\n        \"CONTRACTGATE_API_KEY\": \"<CONTRACTGATE_API_KEY>\"\n      }\n    }\n  }\n}"
        },
        {
          "client": "cursor",
          "label": "Cursor",
          "kind": "json",
          "location": "~/.cursor/mcp.json",
          "content": "{\n  \"mcpServers\": {\n    \"contractgate\": {\n      \"args\": [\n        \"-y\",\n        \"--package=@nightmoose/contractgate-mcp-server@0.4.3\",\n        \"contractgate-mcp\"\n      ],\n      \"command\": \"npx\",\n      \"env\": {\n        \"CONTRACTGATE_API_KEY\": \"<CONTRACTGATE_API_KEY>\"\n      }\n    }\n  }\n}"
        },
        {
          "client": "vscode",
          "label": "VS Code",
          "kind": "json",
          "location": ".vscode/mcp.json",
          "content": "{\n  \"inputs\": [\n    {\n      \"description\": \"CONTRACTGATE_API_KEY\",\n      \"id\": \"contractgate-api-key\",\n      \"password\": true,\n      \"type\": \"promptString\"\n    }\n  ],\n  \"servers\": {\n    \"contractgate\": {\n      \"args\": [\n        \"-y\",\n        \"--package=@nightmoose/contractgate-mcp-server@0.4.3\",\n        \"contractgate-mcp\"\n      ],\n      \"command\": \"npx\",\n      \"env\": {\n        \"CONTRACTGATE_API_KEY\": \"${input:contractgate-api-key}\"\n      },\n      \"type\": \"stdio\"\n    }\n  }\n}"
        },
        {
          "client": "codex",
          "label": "Codex CLI",
          "kind": "toml",
          "location": "~/.codex/config.toml",
          "content": "[mcp_servers.contractgate]\ncommand = \"npx\"\nargs = [\"-y\", \"--package=@nightmoose/contractgate-mcp-server@0.4.3\", \"contractgate-mcp\"]\nenv = { \"CONTRACTGATE_API_KEY\" = \"<CONTRACTGATE_API_KEY>\" }"
        }
      ],
      "requires": [
        "Node.js 18+"
      ]
    }
  ],
  "env": [
    {
      "name": "CONTRACTGATE_API_KEY",
      "required": true,
      "secret": true,
      "description": "DataContractGate API key (cg_live_...). Create one at https://app.datacontractgate.com/account",
      "help": "DataContractGate API key (cg_live_...). Create one at https://app.datacontractgate.com/account",
      "placeholder": "<CONTRACTGATE_API_KEY>"
    },
    {
      "name": "CONTRACTGATE_BASE_URL",
      "required": false,
      "secret": false,
      "description": "Gateway base URL. Defaults to https://api.datacontractgate.com",
      "help": "Gateway base URL. Defaults to https://api.datacontractgate.com",
      "placeholder": "<CONTRACTGATE_BASE_URL>"
    }
  ],
  "expectedTools": [
    "infer_contract",
    "validate_events",
    "deploy_contract",
    "get_quarantine",
    "list_contracts",
    "egress_validate",
    "get_drop_counts"
  ],
  "agentSteps": [
    "Ask the user for: CONTRACTGATE_API_KEY. Never invent or guess these values; secrets go into the client config, not into chat logs.",
    "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: infer_contract, validate_events, deploy_contract, get_quarantine, list_contracts, egress_validate, get_drop_counts.",
    "If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set."
  ],
  "generatedAt": "2026-12-01T14:45:26.660346031Z"
}
