{
  "openapi": "3.1.0",
  "info": {
    "title": "OnlyChili Agent & Search Discovery API",
    "version": "1.0.0",
    "description": "Read-only machine-readable discovery endpoints for OnlyChili (LLM summaries, XML sitemaps, and Streamable HTTP MCP catalog tools)."
  },
  "servers": [
    {
      "url": "https://onlychili.aichili.ai",
      "description": "OnlyChili web origin"
    }
  ],
  "paths": {
    "/llms.txt": {
      "get": {
        "operationId": "getLlmsSummary",
        "summary": "Concise Markdown site summary for LLMs and answer engines",
        "responses": {
          "200": {
            "description": "Markdown summary",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/llms-full.txt": {
      "get": {
        "operationId": "getLlmsFullCorpus",
        "summary": "Live Markdown index of public series, creator channels, and recent videos",
        "responses": {
          "200": {
            "description": "Full Markdown catalog summary",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/.well-known/mcp.json": {
      "get": {
        "operationId": "getMcpManifest",
        "summary": "Model Context Protocol server discovery descriptor",
        "responses": {
          "200": {
            "description": "MCP JSON descriptor",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    },
    "/mcp": {
      "post": {
        "operationId": "postMcpJsonRpc",
        "summary": "Streamable HTTP JSON-RPC 2.0 endpoint for read-only MCP catalog tools",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "jsonrpc",
                  "method"
                ],
                "properties": {
                  "jsonrpc": {
                    "type": "string",
                    "const": "2.0"
                  },
                  "id": {
                    "type": [
                      "string",
                      "number",
                      "null"
                    ]
                  },
                  "method": {
                    "type": "string"
                  },
                  "params": {
                    "type": "object"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "JSON-RPC 2.0 response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    }
  }
}
