MetorialDocs

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

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 blocked
  • providers: one entry per integration with its health (ok, degraded, or unavailable), tool_count, blocked_tool_count, an error with a code and message, the authentication profile under auth, and recent_auth_errors
  • tools on each provider: every tool with availability set to available or blocked
  • recent_errors: the last ten errors on the connection

From a terminal, the same tool reports on the CLI's own connection to one integration:

metorial list
metorial call <integration-id> metorial_connection_status -d '{}'

Find your symptom

What you seeWhere the fix is
The client says Metorial needs authentication, or asks you to sign in againYour client: Claude Code, Cursor, ChatGPT, Claude, Codex
The client failed to connect, or shows a connection errorYour client's page, then MCP endpoint errors
redirect_uri is not allowed for this portalAllow the client's redirect below
A page titled No access after you sign inSign-in and OAuth errors
This email domain is not configured, or Authentication Error during SSOSSO and SCIM errors
Connected, but no tools or fewer than you expectTools are missing
A tool whose name ends in connection_failedTool calls fail
A tool call times outTool calls fail
A tool call says the credentials expired or were rejectedTool calls fail
A rate limit message, or HTTP 429Tool calls fail
unknown command "integrations" for "metorial", or metorial login failsError reference
./self-hosting/run.sh stops with an errorSelf-hosting problems
Any other exact error stringError reference

Check your account

whoami prints your portal and groups. list prints your integrations, and tools prints the tools of one.

metorial whoami
metorial list
metorial tools <integration-id>

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 URIOptionPattern
http://localhost:<port>/… or http://127.0.0.1:<port>/…Localhost appshttp://localhost:*/*
http://<name>.localhost:<port>/…Localhost subdomainshttp://*.localhost:*/*
https://<host>/…Secure web appshttps://*/*
A custom protocol such as myapp://callbackNative app deeplinks*://*

A portal admin enables the option in the portal's Settings, Client Settings, under Allowed OAuth Redirects. From the CLI:

metorial-admin portals list
metorial-admin portals get <portal-id>
metorial-admin portals update <portal-id> \
  --allowed-redirect-url-filters '[{"url":"http://localhost:*/*"}]'

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:

metorial-admin consumers list --email <[email protected]m>
metorial-admin sessions tool-calls list --consumer-id <consumer-id> --limit 20
metorial-admin sessions errors list --limit 20

In the dashboard, the same records are under Integrations, Connection Logs.

Next steps