MCP authentication failures#
Observation |
Meaning and next action |
|---|---|
DNS failure, connection refused, timeout |
MCP was not reached; token validity is unverified. Check the trusted HTTPS URL, network, and proxy configuration. |
Certificate validation fails |
Configure approved trust for the actual MCP client. API/Python trust may differ. Keep verification enabled. |
HTTP 401 / invalid_token |
The selected credential was rejected. Check missing, expired, revoked, or wrong-audience credentials using authorized evidence; a generic 401 does not identify which cause applies. |
HTTP 403 / insufficient_scope |
Preserve the reason and check the requested scopes. Do not test with detection or publication. |
API identity succeeds but MCP rejects the credential |
API success does not verify MCP. Authorized token metadata or separate successful authentication can establish that the credential targets the API audience. |
OAuth metadata succeeds but login fails |
Discovery is public and does not verify authorization. Report the native client’s error; use a supported MCP personal token when appropriate. |
Config exists but client has no token/environment |
Supply the intended secret reference to the actual client process and reconnect when that client requires it. Do not print environment values. |
Initialization succeeds but tools/list fails |
MCP setup is incomplete. Preserve initialization evidence and the exact failed discovery check. |
A required tool is absent after successful listing |
Authentication/discovery is verified, but that workflow capability is unavailable. Do not claim tool readiness or invoke another tool as a substitute. |
Retest only after a relevant correction. Do not repeatedly try unrelated credentials, broaden scopes automatically, or replace a valid API credential while fixing MCP. Authentication does not imply tenant isolation or permission for every listed tool. Completion reports contain credential source references and sanitized evidence, never bearer headers or token values.