{
  "openapi": "3.1.0",
  "info": {
    "title": "CountWithUs public AI integration",
    "version": "1.0.0",
    "description": "Anonymous product information and MCP draft-link preparation only. No countdown publishing, private reads, accounts or payments. MCP clients should use tools/list for current tool schemas."
  },
  "servers": [{"url": "https://countwithus.com"}],
  "security": [],
  "externalDocs": {"url": "https://countwithus.com/ai"},
  "paths": {
    "/api/ai/info": {
      "get": {
        "operationId": "getPublicProductInformation",
        "summary": "Read public website product information",
        "responses": {"200": {"description": "Public website facts and free countdown tools. Plus purchases are paused.", "content": {"application/json": {"schema": {"type": "object"}}}}}
      }
    },
    "/api/mcp": {
      "post": {
        "operationId": "sendPublicMcpRequest",
        "summary": "MCP Streamable HTTP JSON-RPC transport",
        "description": "Protocol 2025-03-26. Methods: initialize, notifications/initialized, ping, tools/list, tools/call. Tools: countwithus_info (free product facts) and prepare_countdown (eventName and optional date). Draft tool returns created:false. No SSE or persistent sessions. Include Accept: application/json, text/event-stream. Tool argument errors are returned in result.isError.",
        "requestBody": {
          "required": true,
          "content": {"application/json": {"schema": {
            "type": "object",
            "required": ["jsonrpc", "method"],
            "properties": {
              "jsonrpc": {"const": "2.0"},
              "id": {"type": ["string", "number"]},
              "method": {"type": "string"},
              "params": {"type": "object"}
            }
          }}}
        },
        "responses": {
          "200": {"description": "JSON-RPC result or error", "content": {"application/json": {"schema": {"type": "object"}}}},
          "202": {"description": "Notification accepted with no response body"},
          "400": {"description": "Invalid request or batch"},
          "403": {"description": "Browser Origin not allowed"},
          "415": {"description": "Requires application/json"},
          "429": {"description": "Rate limit; respect Retry-After"}
        }
      }
    }
  }
}
