{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/catchintent-com/json-schema/catchintent-com-oauth-authorization-server-metadata-schema.json",
  "title": "OAuthAuthorizationServerMetadata",
  "x-generated": "2026-11-03",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/catchintent-com-openapi.yml#/components/schemas/OAuthAuthorizationServerMetadata",
  "type": "object",
  "required": [
    "issuer",
    "authorization_endpoint",
    "token_endpoint",
    "response_types_supported",
    "grant_types_supported"
  ],
  "properties": {
    "issuer": {
      "type": "string",
      "format": "uri"
    },
    "authorization_endpoint": {
      "type": "string",
      "format": "uri"
    },
    "token_endpoint": {
      "type": "string",
      "format": "uri"
    },
    "registration_endpoint": {
      "type": "string",
      "format": "uri"
    },
    "revocation_endpoint": {
      "type": "string",
      "format": "uri"
    },
    "protected_resources": {
      "type": "array",
      "items": {
        "type": "string",
        "format": "uri"
      }
    },
    "response_types_supported": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "grant_types_supported": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "token_endpoint_auth_methods_supported": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "code_challenge_methods_supported": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "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."
    }
  }
}