Troubleshoot Metorial MCP connections by symptom
Find the fix for a Metorial MCP problem from what you see: a client that will not connect, a sign-in that fails, missing tools, or a tool call error.
If the client is connected, ask your agent to call the metorial_connection_status tool first. It reports every integration, every blocked tool, and the latest errors on the connection. If the client is not connected, find what you see in the table below.
What you'll learn
- How to get a status report from the connection itself
- Which page fixes the symptom or error message you see
- How to check your account and the portal from a terminal
Before you start
- The exact error text, copied from the client or the browser
- For the terminal checks, the CLI:
npm install -g @metorial/cli, thenmetorial login
Ask the connection: metorial_connection_status
Metorial adds a diagnostic tool named metorial_connection_status to the tool list of every connection. Its description tells the agent to call it when a tool call fails, when tools are missing, or when an integration seems unreachable. It takes no arguments, never contacts a provider, and has no side effects.
Ask your agent: "call the Metorial connection status tool and tell me what it says". The report contains:
summary: a few plain sentences, such as how many integrations are linked and how many tools are blockedproviders: one entry per integration with itshealth(ok,degraded, orunavailable),tool_count,blocked_tool_count, anerrorwith a code and message, the authentication profile underauth, andrecent_auth_errorstoolson each provider: every tool withavailabilityset toavailableorblockedrecent_errors: the last ten errors on the connection
From a terminal, the same tool reports on the CLI's own connection to one integration:
Find your symptom
| What you see | Where the fix is |
|---|---|
| The client says Metorial needs authentication, or asks you to sign in again | Your client: Claude Code, Cursor, ChatGPT, Claude, Codex |
| The client failed to connect, or shows a connection error | Your client's page, then MCP endpoint errors |
redirect_uri is not allowed for this portal | Allow the client's redirect below |
| A page titled No access after you sign in | Sign-in and OAuth errors |
| This email domain is not configured, or Authentication Error during SSO | SSO and SCIM errors |
| Connected, but no tools or fewer than you expect | Tools are missing |
A tool whose name ends in connection_failed | Tool calls fail |
| A tool call times out | Tool calls fail |
| A tool call says the credentials expired or were rejected | Tool calls fail |
| A rate limit message, or HTTP 429 | Tool calls fail |
unknown command "integrations" for "metorial", or metorial login fails | Error reference |
./self-hosting/run.sh stops with an error | Self-hosting problems |
| Any other exact error string | Error reference |
Check your account
whoami prints your portal and groups. list prints your integrations, and tools prints the tools of one.
If an integration is missing from metorial list, connect it with metorial setup. If the CLI answers that you don't have access to it yet, run metorial request-access <catalog-item-id> to ask your portal admins.
Allow the client's redirect
redirect_uri is not allowed for this portal means the portal does not allow the address the client returns to after the sign-in. Read that address from the redirect_uri parameter of the authorize URL the client opened, then enable the one option that covers it.
| Redirect URI | Option | Pattern |
|---|---|---|
http://localhost:<port>/… or http://127.0.0.1:<port>/… | Localhost apps | http://localhost:*/* |
http://<name>.localhost:<port>/… | Localhost subdomains | http://*.localhost:*/* |
https://<host>/… | Secure web apps | https://*/* |
A custom protocol such as myapp://callback | Native app deeplinks | *://* |
A portal admin enables the option in the portal's Settings, Client Settings, under Allowed OAuth Redirects. From the CLI:
The command replaces the portal's whole list. Run portals get first and add the patterns your other clients still need.
What to send your admin
Send the exact error text, the tool name, the time with your time zone, and the client with its version. An admin finds the call with:
In the dashboard, the same records are under Integrations, Connection Logs.
Next steps
- Sign-in and OAuth errors: redirects, consent, and expired sign-ins
- Tools are missing: what removes a tool before a client sees it
- Tool calls fail: credentials, timeouts, and rate limits
- Error reference: every Metorial error message with its fix