{
  "openapi": "3.1.0",
  "info": {
    "title": "HelloBooks Public MCP",
    "version": "0.7.0",
    "description": "Streamable-HTTP Model Context Protocol endpoint for HelloBooks. Tool catalog is published at /catalog.json and /.well-known/agent.json.",
    "contact": {
      "name": "HelloBooks",
      "email": "hello@hellobooks.ai",
      "url": "https://hellobooks.ai"
    },
    "license": {
      "name": "MIT",
      "url": "https://opensource.org/licenses/MIT"
    }
  },
  "servers": [
    {
      "url": "https://agents.hellobooks.ai"
    }
  ],
  "paths": {
    "/mcp": {
      "post": {
        "summary": "MCP JSON-RPC envelope",
        "description": "Streamable-HTTP MCP transport. Send any MCP method (tools/list, tools/call, resources/list, resources/read, initialize, etc.) as a JSON-RPC 2.0 request. See https://modelcontextprotocol.io/specification.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": true
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "JSON-RPC response or SSE stream",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                }
              },
              "text/event-stream": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "429": {
            "description": "Rate limited (120/min/IP, 60/min/session)"
          }
        }
      }
    },
    "/catalog.json": {
      "get": {
        "summary": "Machine-readable tool + resource catalog",
        "responses": {
          "200": {
            "description": "Catalog JSON"
          }
        }
      }
    },
    "/health": {
      "get": {
        "summary": "Health probe",
        "responses": {
          "200": {
            "description": "OK with active session count"
          }
        }
      }
    }
  }
}