mcp
1 endpoint.
/api/mcp Bearer tokenSend 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`.
| Field | Type | Required | Description |
|---|---|---|---|
| jsonrpc | string | yes | one of "2.0" |
| id | any | no | The request id; absent on a notification. |
| method | string | no | The MCP method: `initialize`, `tools/list`, `tools/call`, … |
| params | object | no | — |
Responses
| Status | Description | Body |
|---|---|---|
| 200 | The JSON-RPC response. | McpJsonRpcMessage |
| 202 | A notification or a response, accepted; nothing to answer. | — |
| 400 | The body is not a JSON-RPC message. | ErrorResponse |
| 401 | The access token is missing or invalid. | ErrorResponse |
| 403 | The 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 |
| 404 | The MCP server is switched off on this deployment. | ErrorResponse |
| 406 | The request does not accept both JSON and an event stream. | ErrorResponse |
| 500 | The message could not be handled. | ErrorResponse |