{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://super-calendar.io/agents/mcp.schema.json",
  "title": "Super Calendar MCP Bootstrap",
  "type": "object",
  "required": [
    "name",
    "version",
    "kind",
    "runtime",
    "initialization",
    "methods",
    "tools",
    "resources",
    "prompts",
    "error_contract",
    "rules"
  ],
  "properties": {
    "$schema": { "type": "string" },
    "name": { "type": "string" },
    "version": { "type": "string" },
    "kind": { "const": "agent-mcp-bootstrap" },
    "runtime": {
      "type": "object",
      "required": [
        "endpoint",
        "metadata_method",
        "invocation_method",
        "transport",
        "jsonrpc",
        "protocol_version",
        "server_info",
        "openapi"
      ],
      "additionalProperties": true
    },
    "initialization": {
      "type": "array",
      "minItems": 2,
      "items": {
        "type": "object",
        "required": ["order", "method", "expects_response", "minimum_params"],
        "additionalProperties": false,
        "properties": {
          "order": { "type": "integer", "minimum": 1 },
          "method": { "type": "string" },
          "expects_response": { "type": "boolean" },
          "minimum_params": { "type": "object" }
        }
      }
    },
    "methods": {
      "type": "object",
      "additionalProperties": {
        "type": "array",
        "items": { "type": "string" },
        "uniqueItems": true
      }
    },
    "tools": { "type": "array" },
    "resources": { "type": "array" },
    "prompts": { "type": "array" },
    "error_contract": {
      "type": "object",
      "additionalProperties": { "type": "string" }
    },
    "rules": {
      "type": "object",
      "additionalProperties": { "type": "boolean" }
    }
  },
  "additionalProperties": false
}
