{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/threads-mcp-app/json-schema/threads-mcp-app-mcp-manifest-schema.json",
  "title": "McpManifest",
  "description": "MCP server manifest.",
  "x-generated": "2026-11-26",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/threads-mcp-app-openapi.json#/components/schemas/McpManifest",
  "type": "object",
  "required": [
    "name",
    "url",
    "transport",
    "tools"
  ],
  "properties": {
    "name": {
      "type": "string"
    },
    "title": {
      "type": "string"
    },
    "description": {
      "type": "string"
    },
    "kind": {
      "type": "string"
    },
    "version": {
      "type": "string"
    },
    "icons": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/McpIcon"
      }
    },
    "url": {
      "type": "string",
      "format": "uri"
    },
    "transport": {
      "type": "string",
      "const": "streamable-http"
    },
    "authentication": {
      "$ref": "#/$defs/McpAuthenticationRef"
    },
    "serverCard": {
      "type": "string",
      "format": "uri"
    },
    "capabilities": {
      "type": "object",
      "properties": {
        "tools": {
          "type": "boolean"
        },
        "resources": {
          "type": "boolean"
        },
        "extensions": {
          "type": "object",
          "additionalProperties": true
        }
      },
      "additionalProperties": true
    },
    "tools": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/McpTool"
      }
    },
    "resources": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/McpResource"
      }
    }
  },
  "additionalProperties": true,
  "$defs": {
    "McpAuthenticationRef": {
      "type": "object",
      "description": "How to authenticate to the MCP endpoint.",
      "properties": {
        "type": {
          "type": "string",
          "const": "oauth2"
        },
        "protectedResourceMetadata": {
          "type": "string",
          "format": "uri"
        },
        "documentation": {
          "type": "string",
          "format": "uri"
        }
      },
      "additionalProperties": true
    },
    "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
    }
  }
}