{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "definitions": {
    "ResourceContent": {
      "anyOf": [
        {
          "properties": {
            "_meta": true,
            "mimeType": {
              "type": [
                "string",
                "null"
              ]
            },
            "text": {
              "type": "string"
            },
            "uri": {
              "description": "The URI of this resource.",
              "type": "string"
            }
          },
          "required": [
            "text",
            "uri"
          ],
          "type": "object"
        },
        {
          "properties": {
            "_meta": true,
            "blob": {
              "type": "string"
            },
            "mimeType": {
              "type": [
                "string",
                "null"
              ]
            },
            "uri": {
              "description": "The URI of this resource.",
              "type": "string"
            }
          },
          "required": [
            "blob",
            "uri"
          ],
          "type": "object"
        }
      ],
      "description": "Contents returned when reading a resource from an MCP server."
    }
  },
  "properties": {
    "contents": {
      "items": {
        "$ref": "#/definitions/ResourceContent"
      },
      "type": "array"
    }
  },
  "required": [
    "contents"
  ],
  "title": "McpResourceReadResponse",
  "type": "object"
}