diff --git a/website/public/openapi/cloud-openapi.json b/website/public/openapi/cloud-openapi.json index 4d5b2c6b8..a80091e97 100644 --- a/website/public/openapi/cloud-openapi.json +++ b/website/public/openapi/cloud-openapi.json @@ -806,6 +806,73 @@ } } }, + "/jan/v1/mcp": { + "post": { + "security": [ + { + "BearerAuth": [] + } + ], + "description": "Handles Model Context Protocol (MCP) requests over an HTTP stream. The response is sent as a continuous stream of data.", + "consumes": [ + "application/json" + ], + "produces": [ + "text/event-stream" + ], + "tags": [ + "Jan", + "Jan-MCP" + ], + "summary": "MCP streamable endpoint", + "parameters": [ + { + "description": "MCP request payload", + "name": "request", + "in": "body", + "required": true, + "schema": {} + } + ], + "responses": { + "200": { + "description": "Streamed response (SSE or chunked transfer)", + "schema": { + "type": "string" + } + } + } + } + }, + "/jan/v1/models": { + "get": { + "security": [ + { + "BearerAuth": [] + } + ], + "description": "Retrieves a list of available models that can be used for chat completions or other tasks.", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "Jan", + "Jan-Models" + ], + "summary": "List available models", + "responses": { + "200": { + "description": "Successful response", + "schema": { + "$ref": "#/definitions/app_interfaces_http_routes_jan_v1.ModelsResponse" + } + } + } + } + }, "/jan/v1/organizations": { "get": { "security": [ @@ -2441,6 +2508,37 @@ } }, "definitions": { + "app_interfaces_http_routes_jan_v1.Model": { + "type": "object", + "properties": { + "created": { + "type": "integer" + }, + "id": { + "type": "string" + }, + "object": { + "type": "string" + }, + "owned_by": { + "type": "string" + } + } + }, + "app_interfaces_http_routes_jan_v1.ModelsResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/definitions/app_interfaces_http_routes_jan_v1.Model" + } + }, + "object": { + "type": "string" + } + } + }, "app_interfaces_http_routes_jan_v1_auth.GetMeResponse": { "type": "object", "properties": {