{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/commsharbor/json-schema/commsharbor-api-index-schema.json",
  "title": "ApiIndex",
  "description": "The self-describing index of the whole API.",
  "x-generated": "2026-11-09",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/commsharbor-commsharbor-api-openapi.yml#/components/schemas/ApiIndex",
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "description": "Product name."
    },
    "description": {
      "type": "string",
      "description": "What the product does, in one sentence."
    },
    "build": {
      "type": "string",
      "description": "Deployed commit."
    },
    "environment": {
      "type": "string",
      "description": "Which environment answered: `production`, `staging` or `local`."
    },
    "base_url": {
      "type": "string",
      "description": "Origin this API is served from."
    },
    "docs": {
      "type": "object",
      "description": "Links to llms.txt, llms-full.txt, openapi.json, the MCP endpoint and the human UI."
    },
    "auth": {
      "type": "object",
      "description": "Every authentication mode and how to obtain it."
    },
    "endpoints": {
      "type": "array",
      "items": {
        "type": "object"
      },
      "description": "Every endpoint with method, path, auth, absolute URL and what it returns."
    },
    "mcp": {
      "type": "object",
      "description": "Remote MCP endpoint and transport."
    },
    "mcp_tools": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Name of every MCP tool."
    }
  },
  "required": [
    "name",
    "description",
    "build",
    "environment",
    "base_url",
    "docs",
    "auth",
    "endpoints",
    "mcp",
    "mcp_tools"
  ]
}