POST /api/mcp
Route source: app/api/mcp/route.ts. Access: Bearer access token issued through OAuth 2.1 authorization code with PKCE S256. Status codes are read from the route implementation.
POST
/api/mcpAccess
OAuth bearer token
Request
Request body in the handler contract: none.
Synthetic curl example
curl -i -X POST 'https://portal.rfi-irfos.com/api/mcp' \
-H "Authorization: Bearer $RFI_MCP_TOKEN" \
-H 'Content-Type: application/json' \
--data-binary @request.jsonResponse
The handler returns JSON. Response fields are defined in the linked route source.
200 429 500 503
The linked source file contains the authoritative field validation and response structure.
Error codes
429· Request limit reached500· Internal handler error503· Service or database is unavailable
Code evidence
app/api/mcp/route