{
  "openapi": "3.1.0",
  "info": {
    "title": "Savants API",
    "version": "3.14.0",
    "description": "Savants exposes a remote MCP server at /mcp and a REST API. Most agent integrations should use the MCP server."
  },
  "servers": [{ "url": "https://api.savants.cloud" }],
  "security": [{ "bearerAuth": [] }],
  "components": {
    "securitySchemes": {
      "bearerAuth": { "type": "http", "scheme": "bearer", "bearerFormat": "sk_live_*" }
    }
  },
  "paths": {
    "/health": {
      "get": {
        "summary": "Health check",
        "security": [],
        "responses": { "200": { "description": "Service is healthy" } }
      }
    },
    "/mcp": {
      "post": {
        "summary": "Remote MCP (Streamable HTTP, JSON responses)",
        "description": "JSON-RPC 2.0 MCP endpoint. Authenticate with a Savants API key. See https://savants.dev/agents.",
        "responses": { "200": { "description": "JSON-RPC response" }, "401": { "description": "Missing or invalid API key" } }
      }
    }
  }
}
