{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/threads-mcp-app/json-schema/threads-mcp-app-mcp-server-card-schema.json",
  "title": "McpServerCard",
  "description": "MCP server card.",
  "x-generated": "2026-11-26",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/threads-mcp-app-openapi.json#/components/schemas/McpServerCard",
  "type": "object",
  "required": [
    "name",
    "serverUrl",
    "tools"
  ],
  "properties": {
    "$schema": {
      "type": "string",
      "format": "uri"
    },
    "name": {
      "type": "string"
    },
    "title": {
      "type": "string"
    },
    "description": {
      "type": "string"
    },
    "version": {
      "type": "string"
    },
    "icons": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/McpIcon"
      }
    },
    "iconUrl": {
      "type": "string",
      "format": "uri"
    },
    "websiteUrl": {
      "type": "string",
      "format": "uri"
    },
    "serverUrl": {
      "type": "string",
      "format": "uri"
    },
    "protocolVersion": {
      "type": "string"
    },
    "serverInfo": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string"
        },
        "title": {
          "type": "string"
        },
        "version": {
          "type": "string"
        },
        "icons": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/McpIcon"
          }
        }
      },
      "additionalProperties": true
    },
    "documentationUrl": {
      "type": "string",
      "format": "uri"
    },
    "transport": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string"
        },
        "endpoint": {
          "type": "string",
          "format": "uri"
        }
      },
      "additionalProperties": true
    },
    "capabilities": {
      "type": "object",
      "additionalProperties": true
    },
    "authentication": {
      "type": "object",
      "properties": {
        "required": {
          "type": "boolean"
        },
        "schemes": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "protectedResourceMetadata": {
          "type": "string",
          "format": "uri"
        },
        "authorizationServers": {
          "type": "array",
          "items": {
            "type": "string",
            "format": "uri"
          }
        },
        "documentation": {
          "type": "string",
          "format": "uri"
        }
      },
      "additionalProperties": true
    },
    "instructions": {
      "type": "string"
    },
    "tools": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/McpTool"
      }
    },
    "resources": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/McpResource"
      }
    }
  },
  "additionalProperties": true,
  "$defs": {
    "McpIcon": {
      "type": "object",
      "description": "MCP `Icon`.",
      "required": [
        "src"
      ],
      "properties": {
        "src": {
          "type": "string",
          "format": "uri"
        },
        "mimeType": {
          "type": "string"
        },
        "sizes": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      }
    },
    "McpResource": {
      "type": "object",
      "description": "An MCP resource as listed by `resources/list` (here: MCP Apps UI templates).",
      "required": [
        "uri",
        "name"
      ],
      "properties": {
        "uri": {
          "type": "string",
          "description": "Resource URI, e.g. `ui://threads/posts-insights.html`."
        },
        "name": {
          "type": "string"
        },
        "description": {
          "type": "string"
        },
        "mimeType": {
          "type": "string"
        }
      },
      "additionalProperties": true
    },
    "McpTool": {
      "type": "object",
      "description": "An MCP tool as listed by `tools/list`.",
      "required": [
        "name",
        "inputSchema"
      ],
      "properties": {
        "name": {
          "type": "string"
        },
        "title": {
          "type": "string"
        },
        "description": {
          "type": "string"
        },
        "inputSchema": {
          "type": "object",
          "description": "JSON Schema of the tool arguments.",
          "additionalProperties": true
        },
        "annotations": {
          "type": "object",
          "description": "MCP tool annotations (readOnlyHint, destructiveHint, idempotentHint, openWorldHint).",
          "additionalProperties": true
        }
      },
      "additionalProperties": true
    }
  }
}