{
  "openapi": "3.1.0",
  "info": {
    "title": "NeuroVitals Developer API & MCP Specification",
    "description": "Developer resources, OpenAPI spec, and MCP tools for NeuroVitals.",
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "https://neurovitalsai.com"
    }
  ],
  "paths": {
    "/api/claim-code": {
      "get": {
        "summary": "Claim Pioneer Access Code",
        "description": "Validates Stripe checkout session and claims member access code.",
        "parameters": [
          {
            "name": "session_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Code claim response"
          }
        }
      }
    },
    "/.well-known/mcp": {
      "get": {
        "summary": "MCP Server Manifest",
        "description": "Model Context Protocol manifest and endpoint discovery.",
        "responses": {
          "200": {
            "description": "MCP Manifest"
          }
        }
      },
      "post": {
        "summary": "MCP Protocol JSON-RPC Handshake",
        "description": "Streamable HTTP JSON-RPC handler for MCP initialize, tools/list, and tools/call.",
        "responses": {
          "200": {
            "description": "JSON-RPC response"
          }
        }
      }
    }
  }
}
