Skip to navigation

Model Context Protocol endpoint (Streamable HTTP)

JSON-RPC 2.0 over HTTP for MCP clients. Requires the api.mcp feature and a Hong Kong jurisdiction organisation. Methods: initialize, tools/list, tools/call. Tools: search_documents, list_documents, answer_question and, with api.mcp.safety_image, analyze_safety_image. Send Accept: application/json, text/event-stream; long tool calls answer as an event stream with progress notifications. GET and DELETE answer 405.

Authentication

AuthorizationBearer

Pyramid API key (prefix with “Bearer ”)

Request

This endpoint expects an object.
jsonrpcenumRequired
Allowed values:
methodstringRequired
idstring or integerOptional
paramsmap from strings to anyOptional

Response

JSON-RPC response, as JSON or as an event stream

Errors

401
Unauthorized Error
403
Forbidden Error