{
  "openapi": "3.1.0",
  "info": {
    "title": "Baskets of Joy Agent API",
    "version": "0.1.0",
    "description": "HTTP surface for AI agents. All tools are exposed via the MCP server; this document describes the public discovery endpoints. No operations are payable via MPP — checkout is completed by humans in the web app via Razorpay."
  },
  "servers": [
    { "url": "https://www.basketsofjoy.in", "description": "Website" },
    { "url": "https://uplgjlglobnsatdfkvdu.supabase.co", "description": "Backend / MCP" }
  ],
  "paths": {
    "/functions/v1/mcp": {
      "post": {
        "summary": "MCP JSON-RPC endpoint (Streamable HTTP)",
        "description": "Model Context Protocol endpoint. Exposes tools: search_products, get_product, list_categories, get_order_status.",
        "responses": {
          "200": { "description": "MCP JSON-RPC response" },
          "401": { "description": "Missing or invalid bearer token" }
        }
      }
    },
    "/.well-known/oauth-protected-resource": {
      "get": {
        "summary": "OAuth protected resource metadata (RFC 9728)",
        "responses": { "200": { "description": "JSON metadata" } }
      }
    },
    "/.well-known/api-catalog": {
      "get": {
        "summary": "API catalog linkset (RFC 9727)",
        "responses": { "200": { "description": "application/linkset+json" } }
      }
    }
  }
}
