{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/stormmcp/json-schema/stormmcp-gateway-metadata-response-schema.json",
  "title": "GatewayMetadataResponse",
  "description": "Current-user dynamic gateway metadata (MCPG-1156). Uses only real or deterministically-derived values;\n`createdAt` is intentionally absent in v1 because the dynamic gateway is row-less and has no\ncreation timestamp. `health` is intentionally omitted (AI-56 / Antonio review): synthesizing\ngateway health from per-library `McpConnectionState` conflates infrastructure health with\nintegration connection state; the FE derives a connections note from `/me/summary` instead.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/stormmcp-dynamicgateway-api-openapi.yml#/components/schemas/GatewayMetadataResponse",
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "description": "Gets or sets the display name (derived; not stored while row-less)."
    },
    "kind": {
      "description": "Gets or sets the gateway kind.",
      "$ref": "#/$defs/GatewayKind"
    },
    "endpoint": {
      "type": "string",
      "description": "Gets or sets the public dynamic MCP endpoint URL."
    },
    "tenantId": {
      "type": "string",
      "description": "Gets or sets the tenant identifier.",
      "format": "uuid"
    }
  },
  "$defs": {
    "GatewayKind": {
      "type": "integer",
      "description": "The kind of dynamic gateway (MCPG-1156). v1 exposes only GatewayKind.Primary; GatewayKind.Auxiliary\nis reserved for the parked auxiliary-gateway feature (MCPG-1164)."
    }
  }
}