mcp

1 endpoint.

POST/api/mcp Bearer token
Scopemcp:use

Send an MCP message

The Model Context Protocol endpoint (Streamable HTTP transport, stateless: no session id, every request carries its own token). Its tools are operations of this API — listing and reading learning records, subjects, certifications, quizzes, job aids and events, creating, approving and rejecting records, and searching and reading the help pages — run with the caller's token, so their roles decide what each returns. Every tool also needs particular scopes on the token: `tools/list` lists only the tools the token may call, and a `tools/call` without the scopes is answered 403 `insufficient_scope` with a challenge naming them. A person's own token needs a role limit that allows the MCP server (`/admin/agents`); a delegated token — an agent acting for its user — needs the AI agents feature and a role limit that allows agents. Send `Accept: application/json, text/event-stream`.

Request body

application/jsonrequiredMcpJsonRpcMessage
FieldTypeRequiredDescription
jsonrpcstringyes

one of "2.0"

idanyno

The request id; absent on a notification.

methodstringno

The MCP method: `initialize`, `tools/list`, `tools/call`, …

paramsobjectno—

Responses

StatusDescriptionBody
200The JSON-RPC response.McpJsonRpcMessage
202A notification or a response, accepted; nothing to answer.—
400The body is not a JSON-RPC message.ErrorResponse
401The access token is missing or invalid.ErrorResponse
403The caller's roles do not allow the MCP server (or, for a delegated token, AI agents), or a tool call needs scopes the token lacks. Also when the access token lacks `mcp:use` (`insufficient_scope`).ErrorResponse
404The MCP server is switched off on this deployment.ErrorResponse
406The request does not accept both JSON and an event stream.ErrorResponse
500The message could not be handled.ErrorResponse