Missing MCP token
Error code
{
"code": "missing_token",
"docUrl": "https://doc.mor.payments.ai/errors/missing-token"
}
HTTP status
401
Cause
The request to the MCP endpoint (/api/mcp) had no Authorization header, or the header does not use the Bearer scheme.
How to fix
- Connect with OAuth if your client supports it: it discovers the authorization server from the
WWW-Authenticateheader of this response. See Connect with OAuth. - Otherwise generate a
pai_mcp_*token in Developer Tools → MCP Tokens and send it on every request asAuthorization: Bearer <token>. See Manual: User MCP Key.