MCP
MCP Endpoint (GET)
Model Context Protocol (MCP) endpoint accepting JSON-RPC 2.0 messages via GET. Requires `MCP_ENABLED=true` and `mcp_enabled: true` in project settings. Only `application/json` is supported; SSE transport is not available.
Request Body
JSON-RPC protocol version. Must be "2.0".
Request identifier. May be a string, integer, or null; omit for notifications.
MCP method name (e.g. tools/list, tools/call, prompts/list, prompts/get, notifications/initialized).
Method-specific parameters.
Responses
JSON-RPC protocol version. Always "2.0".
Echoes the id from the corresponding request.
Method-specific result. Present on success.
Error details. Present on failure.
// Not supported in Directus SDK
{
"result": {},
"error": {
"data": {}
}
}MCP Endpoint (POST)
Model Context Protocol (MCP) endpoint accepting JSON-RPC 2.0 messages via POST. Requires `MCP_ENABLED=true` and `mcp_enabled: true` in project settings. Supported methods are `tools/list`, `tools/call`, `prompts/list`, `prompts/get`, and `notifications/initialized`.
Request Body
JSON-RPC protocol version. Must be "2.0".
Request identifier. May be a string, integer, or null; omit for notifications.
MCP method name (e.g. tools/list, tools/call, prompts/list, prompts/get, notifications/initialized).
Method-specific parameters.
Responses
JSON-RPC protocol version. Always "2.0".
Echoes the id from the corresponding request.
Method-specific result. Present on success.
Error details. Present on failure.
// Not supported in Directus SDK
{
"result": {},
"error": {
"data": {}
}
}