openapi: 3.2.0 info: title: MCP Gateway MCP Streamable HTTP API description: API for MCP Gateway operations version: v1 servers: - url: https://dev.stormmcp.ai/ tags: - name: McpStreamableHttp paths: /gateway/{id}/mcp: get: tags: - McpStreamableHttp summary: Establishes an MCP SSE connection for streaming responses per the official MCP… parameters: - name: id in: path description: The gateway configuration identifier. required: true schema: type: string format: uuid responses: '200': description: OK '400': description: Bad Request content: text/plain: schema: $ref: '#/components/schemas/ProblemDetails' application/json: schema: $ref: '#/components/schemas/ProblemDetails' text/json: schema: $ref: '#/components/schemas/ProblemDetails' text/csv: schema: $ref: '#/components/schemas/ProblemDetails' application/csv: schema: $ref: '#/components/schemas/ProblemDetails' '401': description: Unauthorized content: text/plain: schema: $ref: '#/components/schemas/ProblemDetails' application/json: schema: $ref: '#/components/schemas/ProblemDetails' text/json: schema: $ref: '#/components/schemas/ProblemDetails' text/csv: schema: $ref: '#/components/schemas/ProblemDetails' application/csv: schema: $ref: '#/components/schemas/ProblemDetails' '403': description: Forbidden content: text/plain: schema: $ref: '#/components/schemas/ProblemDetails' application/json: schema: $ref: '#/components/schemas/ProblemDetails' text/json: schema: $ref: '#/components/schemas/ProblemDetails' text/csv: schema: $ref: '#/components/schemas/ProblemDetails' application/csv: schema: $ref: '#/components/schemas/ProblemDetails' '404': description: Not Found content: text/plain: schema: $ref: '#/components/schemas/ProblemDetails' application/json: schema: $ref: '#/components/schemas/ProblemDetails' text/json: schema: $ref: '#/components/schemas/ProblemDetails' text/csv: schema: $ref: '#/components/schemas/ProblemDetails' application/csv: schema: $ref: '#/components/schemas/ProblemDetails' '426': description: Upgrade Required content: text/plain: schema: $ref: '#/components/schemas/ProblemDetails' application/json: schema: $ref: '#/components/schemas/ProblemDetails' text/json: schema: $ref: '#/components/schemas/ProblemDetails' text/csv: schema: $ref: '#/components/schemas/ProblemDetails' application/csv: schema: $ref: '#/components/schemas/ProblemDetails' operationId: getGatewayByIdMcp x-operation-id-source: derived post: tags: - McpStreamableHttp summary: Handles JSON-RPC message requests per the official MCP HTTP Transport… description: 'Delegates to McpStreamableHttpHandler for protocol handling. The handler executes the same validation, session initialization, and response logic that was previously inline in this method. Behavior is unchanged.' parameters: - name: id in: path description: The gateway configuration identifier. required: true schema: type: string format: uuid requestBody: description: The cancellation token. content: application/json: schema: oneOf: - type: 'null' - $ref: '#/components/schemas/JsonRpcMessage' text/json: schema: oneOf: - type: 'null' - $ref: '#/components/schemas/JsonRpcMessage' application/*+json: schema: oneOf: - type: 'null' - $ref: '#/components/schemas/JsonRpcMessage' responses: '200': description: OK '202': description: Accepted '400': description: Bad Request content: text/plain: schema: $ref: '#/components/schemas/ProblemDetails' application/json: schema: $ref: '#/components/schemas/ProblemDetails' text/json: schema: $ref: '#/components/schemas/ProblemDetails' text/csv: schema: $ref: '#/components/schemas/ProblemDetails' application/csv: schema: $ref: '#/components/schemas/ProblemDetails' '401': description: Unauthorized content: text/plain: schema: $ref: '#/components/schemas/ProblemDetails' application/json: schema: $ref: '#/components/schemas/ProblemDetails' text/json: schema: $ref: '#/components/schemas/ProblemDetails' text/csv: schema: $ref: '#/components/schemas/ProblemDetails' application/csv: schema: $ref: '#/components/schemas/ProblemDetails' '404': description: Not Found content: text/plain: schema: $ref: '#/components/schemas/ProblemDetails' application/json: schema: $ref: '#/components/schemas/ProblemDetails' text/json: schema: $ref: '#/components/schemas/ProblemDetails' text/csv: schema: $ref: '#/components/schemas/ProblemDetails' application/csv: schema: $ref: '#/components/schemas/ProblemDetails' '403': description: Forbidden content: text/plain: schema: $ref: '#/components/schemas/JsonRpcError' application/json: schema: $ref: '#/components/schemas/JsonRpcError' text/json: schema: $ref: '#/components/schemas/JsonRpcError' text/csv: schema: $ref: '#/components/schemas/JsonRpcError' application/csv: schema: $ref: '#/components/schemas/JsonRpcError' '426': description: Upgrade Required content: text/plain: schema: $ref: '#/components/schemas/ProblemDetails' application/json: schema: $ref: '#/components/schemas/ProblemDetails' text/json: schema: $ref: '#/components/schemas/ProblemDetails' text/csv: schema: $ref: '#/components/schemas/ProblemDetails' application/csv: schema: $ref: '#/components/schemas/ProblemDetails' '500': description: Internal Server Error operationId: postGatewayByIdMcp x-operation-id-source: derived delete: tags: - McpStreamableHttp summary: Handles session cleanup via DELETE method per the MCP HTTP Transport… description: 'Delegates to McpStreamableHttpHandler for cleanup handling. The handler executes the same session validation and shutdown logic that was previously inline in this method. Behavior is unchanged.' parameters: - name: id in: path description: The gateway configuration identifier. required: true schema: type: string format: uuid responses: '204': description: No Content '400': description: Bad Request content: text/plain: schema: $ref: '#/components/schemas/ProblemDetails' application/json: schema: $ref: '#/components/schemas/ProblemDetails' text/json: schema: $ref: '#/components/schemas/ProblemDetails' text/csv: schema: $ref: '#/components/schemas/ProblemDetails' application/csv: schema: $ref: '#/components/schemas/ProblemDetails' '401': description: Unauthorized content: text/plain: schema: $ref: '#/components/schemas/ProblemDetails' application/json: schema: $ref: '#/components/schemas/ProblemDetails' text/json: schema: $ref: '#/components/schemas/ProblemDetails' text/csv: schema: $ref: '#/components/schemas/ProblemDetails' application/csv: schema: $ref: '#/components/schemas/ProblemDetails' '404': description: Not Found content: text/plain: schema: $ref: '#/components/schemas/ProblemDetails' application/json: schema: $ref: '#/components/schemas/ProblemDetails' text/json: schema: $ref: '#/components/schemas/ProblemDetails' text/csv: schema: $ref: '#/components/schemas/ProblemDetails' application/csv: schema: $ref: '#/components/schemas/ProblemDetails' '426': description: Upgrade Required content: text/plain: schema: $ref: '#/components/schemas/ProblemDetails' application/json: schema: $ref: '#/components/schemas/ProblemDetails' text/json: schema: $ref: '#/components/schemas/ProblemDetails' text/csv: schema: $ref: '#/components/schemas/ProblemDetails' application/csv: schema: $ref: '#/components/schemas/ProblemDetails' '500': description: Internal Server Error operationId: deleteGatewayByIdMcp x-operation-id-source: derived components: schemas: JsonRpcErrorDetail: required: - code - message type: object properties: code: pattern: ^-?(?:0|[1-9]\d*)$ type: - integer - string format: int32 message: type: string data: {} ProblemDetails: type: object properties: type: type: - 'null' - string title: type: - 'null' - string status: pattern: ^-?(?:0|[1-9]\d*)$ type: - 'null' - integer - string format: int32 detail: type: - 'null' - string instance: type: - 'null' - string JsonRpcMessage: {} JsonRpcError: required: - error type: object properties: error: $ref: '#/components/schemas/JsonRpcErrorDetail' id: $ref: '#/components/schemas/RequestId' jsonrpc: type: string RequestId: {}