{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/mcpcensus-com/json-schema/mcpcensus-com-audit-input-schema.json",
  "title": "AuditInput",
  "description": "A config document (mcpServers | servers | mcp_servers), an envelope {config, format, policy_id, previous_tools_digests, strict}, a plain {entries:[...]} list, or raw Codex config.toml text sent as text/plain. Only url, command, args and type are read; strip env and headers before posting.",
  "x-generated": "2026-11-18",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/mcpcensus-com-openapi.json#/components/schemas/AuditInput",
  "type": "object",
  "properties": {
    "config": {
      "description": "Config document (object) or raw text (JSON or Codex TOML)",
      "oneOf": [
        {
          "type": "object"
        },
        {
          "type": "string"
        }
      ]
    },
    "format": {
      "type": "string",
      "enum": [
        "json",
        "toml"
      ]
    },
    "policy_id": {
      "type": "string",
      "enum": [
        "builtin:baseline",
        "builtin:first-party",
        "builtin:strict"
      ],
      "default": "builtin:baseline"
    },
    "previous_tools_digests": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      },
      "description": "alias → tools_digest from your last audit; sets tools_drift per entry"
    },
    "strict": {
      "type": "boolean",
      "default": false,
      "description": "exit_code 2 when any entry is REVIEW or UNKNOWN"
    },
    "mcpServers": {
      "type": "object"
    },
    "servers": {
      "type": "object"
    },
    "mcp_servers": {
      "type": "object"
    },
    "entries": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "url": {
            "type": "string"
          },
          "command": {
            "type": "string"
          },
          "args": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      }
    }
  }
}