{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/agentpmt-com/json-schema/agentpmt-com-mcp-discovery-manifest-schema.json",
  "title": "McpDiscoveryManifest",
  "description": "MCP discovery manifest returned from `/.well-known/mcp` and its aliases.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/agentpmt-com-mcp-json-api-openapi.yml#/components/schemas/McpDiscoveryManifest",
  "properties": {
    "schema_version": {
      "type": "string",
      "title": "Schema Version",
      "description": "Manifest schema version."
    },
    "generated_at": {
      "type": "string",
      "title": "Generated At",
      "description": "ISO-8601 timestamp when the manifest was generated."
    },
    "server_name": {
      "type": "string",
      "title": "Server Name",
      "description": "Display name of this MCP server."
    },
    "endpoint": {
      "type": "string",
      "title": "Endpoint",
      "description": "MCP endpoint URL."
    },
    "authorization": {
      "$ref": "#/$defs/McpDiscoveryAuthorization"
    },
    "preferred_autonomous_interface": {
      "$ref": "#/$defs/McpDiscoveryPreferredAutonomous"
    },
    "discovery_aliases": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Discovery Aliases",
      "description": "Alternate well-known URLs that return an equivalent manifest."
    }
  },
  "additionalProperties": true,
  "type": "object",
  "required": [
    "schema_version",
    "generated_at",
    "server_name",
    "endpoint",
    "authorization",
    "preferred_autonomous_interface",
    "discovery_aliases"
  ],
  "$defs": {
    "McpDiscoveryAuthorization": {
      "properties": {
        "protected_resource_metadata": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Protected Resource Metadata"
        },
        "authorization_server_metadata": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Authorization Server Metadata"
        },
        "openid_configuration": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Openid Configuration"
        }
      },
      "additionalProperties": true,
      "type": "object",
      "title": "McpDiscoveryAuthorization"
    },
    "McpDiscoveryPreferredAutonomous": {
      "properties": {
        "type": {
          "type": "string",
          "title": "Type",
          "description": "Preferred autonomous integration surface."
        },
        "payment": {
          "type": "string",
          "title": "Payment",
          "description": "Payment flow associated with the preferred surface."
        },
        "agent_card_url": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Agent Card Url"
        },
        "canonical_instructions_url": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Canonical Instructions Url"
        },
        "docs_url": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Docs Url"
        },
        "llms_txt_url": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Llms Txt Url"
        }
      },
      "additionalProperties": true,
      "type": "object",
      "required": [
        "type",
        "payment"
      ],
      "title": "McpDiscoveryPreferredAutonomous"
    }
  }
}