{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/roar-ai-com/json-schema/roar-ai-com-mcp-overview-schema.json",
  "title": "McpOverview",
  "x-generated": "2026-11-23",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/roar-ai-com-openapi.json#/components/schemas/McpOverview",
  "type": "object",
  "required": [
    "gatewayUrl",
    "enabled",
    "disabledAt",
    "canManage",
    "grantProjectIds",
    "maxUpstreams",
    "keys",
    "setup"
  ],
  "properties": {
    "gatewayUrl": {
      "type": "string",
      "format": "uri",
      "description": "Where an agent connects over MCP, sending `Authorization: Bearer <key>`"
    },
    "enabled": {
      "type": "boolean",
      "description": "False when Roar has turned the gateway off for your organisation"
    },
    "disabledAt": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "canManage": {
      "type": "boolean",
      "description": "Whether this caller may change servers, tools, bundles, every grant and project switches"
    },
    "grantProjectIds": {
      "type": "array",
      "items": {
        "type": "string",
        "format": "uuid"
      },
      "description": "Projects this caller may give bundles to and take them from"
    },
    "maxUpstreams": {
      "type": "integer",
      "description": "The most tool servers your organisation may register"
    },
    "keys": {
      "type": "array",
      "description": "Keys this caller can see that would be served at least one tool now",
      "items": {
        "type": "object",
        "required": [
          "id",
          "name",
          "prefix",
          "projectId",
          "tools"
        ],
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": [
              "string",
              "null"
            ]
          },
          "prefix": {
            "type": "string"
          },
          "projectId": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid"
          },
          "tools": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Tool names as the agent sees them"
          }
        }
      }
    },
    "setup": {
      "$ref": "#/$defs/McpSetupState"
    }
  },
  "$defs": {
    "McpSetupState": {
      "type": "object",
      "description": "How far setup has got, each step read from what exists now. The two steps about keys count only the projects you belong to",
      "required": [
        "serverAdded",
        "toolsRead",
        "toolsApproved",
        "bundleMade",
        "accessGiven",
        "agentConnected",
        "signInNeeded"
      ],
      "properties": {
        "serverAdded": {
          "type": "boolean",
          "description": "A tool server is registered and ready — it needs no sign-in, or it is signed in"
        },
        "toolsRead": {
          "type": "boolean",
          "description": "A server’s tool list has been read"
        },
        "toolsApproved": {
          "type": "boolean",
          "description": "A tool is approved at its current definition, listed and switched on"
        },
        "bundleMade": {
          "type": "boolean",
          "description": "A bundle holds a tool"
        },
        "accessGiven": {
          "type": "boolean",
          "description": "A key you can see would be served a tool now"
        },
        "agentConnected": {
          "type": "boolean",
          "description": "An agent has used a tool, with a key you can see, in the last 30 days"
        },
        "signInNeeded": {
          "type": [
            "object",
            "null"
          ],
          "required": [
            "name",
            "again"
          ],
          "properties": {
            "name": {
              "type": "string"
            },
            "again": {
              "type": "boolean",
              "description": "Its sign-in stopped working, rather than never having happened"
            }
          },
          "description": "The oldest tool server that signs in and is not signed in; null when there is none"
        }
      }
    }
  }
}