> Documentation index: https://metorial.com/llms.txt. Every page is available as Markdown by adding .md to its URL.

# Troubleshoot Metorial MCP connections by symptom
URL: https://metorial.com/docs/platform/troubleshooting

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`, then `metorial 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 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:

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

## 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](https://metorial.com/docs/platform/troubleshooting/claude-code), [Cursor](https://metorial.com/docs/platform/troubleshooting/cursor), [ChatGPT](https://metorial.com/docs/platform/troubleshooting/chatgpt), [Claude](https://metorial.com/docs/platform/troubleshooting/claude), [Codex](https://metorial.com/docs/platform/troubleshooting/codex) |
| The client failed to connect, or shows a connection error                       | Your client's page, then [MCP endpoint errors](https://metorial.com/docs/platform/troubleshooting/error-reference#mcp-endpoint-errors)                                                                                                                                                                                                                                         |
| `redirect_uri is not allowed for this portal`                                   | [Allow the client's redirect](https://metorial.com/docs/platform/troubleshooting#allow-the-clients-redirect) below                                                                                                                                                                                                                                                             |
| A page titled **No access** after you sign in                                   | [Sign-in and OAuth errors](https://metorial.com/docs/platform/troubleshooting/sign-in-and-oauth-errors#not-allowed-after-sign-in)                                                                                                                                                                                                                                              |
| **This email domain is not configured**, or **Authentication Error** during SSO | [SSO and SCIM errors](https://metorial.com/docs/platform/troubleshooting/sso-and-scim-errors)                                                                                                                                                                                                                                                                                  |
| Connected, but no tools or fewer than you expect                                | [Tools are missing](https://metorial.com/docs/platform/troubleshooting/missing-tools)                                                                                                                                                                                                                                                                                          |
| A tool whose name ends in `connection_failed`                                   | [Tool calls fail](https://metorial.com/docs/platform/troubleshooting/tool-calls-fail#an-integration-cannot-be-reached)                                                                                                                                                                                                                                                         |
| A tool call times out                                                           | [Tool calls fail](https://metorial.com/docs/platform/troubleshooting/tool-calls-fail#timeouts)                                                                                                                                                                                                                                                                                 |
| A tool call says the credentials expired or were rejected                       | [Tool calls fail](https://metorial.com/docs/platform/troubleshooting/tool-calls-fail#the-provider-rejects-the-credentials)                                                                                                                                                                                                                                                     |
| A rate limit message, or HTTP 429                                               | [Tool calls fail](https://metorial.com/docs/platform/troubleshooting/tool-calls-fail#rate-limits)                                                                                                                                                                                                                                                                              |
| `unknown command "integrations" for "metorial"`, or `metorial login` fails      | [Error reference](https://metorial.com/docs/platform/troubleshooting/error-reference#metorial-cli-errors)                                                                                                                                                                                                                                                                      |
| `./self-hosting/run.sh` stops with an error                                     | [Self-hosting problems](https://metorial.com/docs/platform/troubleshooting/self-hosting)                                                                                                                                                                                                                                                                                       |
| Any other exact error string                                                    | [Error reference](https://metorial.com/docs/platform/troubleshooting/error-reference)                                                                                                                                                                                                                                                                                          |

## Check your account

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

```bash
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 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:

```bash
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:

```bash
metorial-admin consumers list --email <person@example.com>
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

* [Sign-in and OAuth errors](https://metorial.com/docs/platform/troubleshooting/sign-in-and-oauth-errors): redirects, consent, and expired sign-ins
* [Tools are missing](https://metorial.com/docs/platform/troubleshooting/missing-tools): what removes a tool before a client sees it
* [Tool calls fail](https://metorial.com/docs/platform/troubleshooting/tool-calls-fail): credentials, timeouts, and rate limits
* [Error reference](https://metorial.com/docs/platform/troubleshooting/error-reference): every Metorial error message with its fix