{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/catchintent-com/json-schema/catchintent-com-oauth-protected-resource-metadata-schema.json",
  "title": "OAuthProtectedResourceMetadata",
  "x-generated": "2026-11-03",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/catchintent-com-openapi.yml#/components/schemas/OAuthProtectedResourceMetadata",
  "type": "object",
  "required": [
    "resource",
    "authorization_servers",
    "scopes_supported"
  ],
  "properties": {
    "resource": {
      "type": "string",
      "format": "uri"
    },
    "authorization_servers": {
      "type": "array",
      "items": {
        "type": "string",
        "format": "uri"
      }
    },
    "scopes_supported": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/McpScope"
      }
    }
  },
  "additionalProperties": true,
  "$defs": {
    "McpScope": {
      "type": "string",
      "enum": [
        "read:agents",
        "write:agents",
        "read:leads",
        "write:leads",
        "read:outreach",
        "write:outreach",
        "read:workspace",
        "write:workspace",
        "write:crm"
      ],
      "description": "OAuth scopes advertised by the MCP auth server and enforced by the registered MCP tools."
    }
  }
}