> ## Documentation Index
> Fetch the complete documentation index at: https://docs.runlayer.com/llms.txt
> Use this file to discover all available pages before exploring further.

# MCP Troubleshooting

> Diagnose MCP issues, understand common errors, and try self-service fixes before escalating to your admin.

## Quick Diagnostics

Follow these steps in order to identify your issue:

**1. Is the MCP connected?**

Go to **Runlayer > Connectors** and check the status:

* **Active** - Connector is ready to use
* **Pending** - Awaiting admin approval (contact your admin)
* **Disabled** - Connector has been disabled (contact your admin)
* **Error** - Configuration issue (contact your admin)

**2. Is your authentication valid?**

Go to **Runlayer > Connectors** and find your connector:

* **Connected** - Authentication is valid
* **Error/Expired** - You need to revoke and reconnect (see Fix 3 below)

**3. Is the connector selected in your AI client?**

Some AI clients require you to select which connectors to use for each session or chat:

* Check your client's MCP/connector settings and verify the connector is enabled
* In some clients, you must re-select connectors when starting a new chat
* In Claude on the web or desktop, turn the connector on for each conversation from **+ → Connectors** ([steps](https://docs.runlayer.com/runlayer-plugin.md#claude-chat))
* If tools are missing, try disconnecting and reconnecting the connector from your client
* If still missing, restart your AI client completely

**4. Did the AI attempt to call the tool?**

Look for a tool call indicator in your AI client (e.g., "Connected to app", "Using tool", or similar):

* **If no indicator appears**, the AI client likely didn't try to call Runlayer at all.
* **If an indicator appears**, expand it to inspect the request and response. This shows exactly what tool was called, what parameters were sent, and what Runlayer returned.
* **If the response contains your data** but the AI doesn't seem to use it, there may be an issue interpreting the tool response. Try rephrasing or starting a new chat.

**5. Is it a prompting issue?**

Sometimes the AI just needs a nudge:

* **Start a new chat** - AI models have a limited "context window" (typically 100-200k characters) that holds everything in your conversation: your messages, AI responses, and all tool results. Long conversations or large tool outputs fill this up, causing the AI to lose track of earlier context or behave erratically. Starting fresh gives the AI a clean slate.
* **Rephrase your request** - Be more explicit about which tool/connector to use. For example: "Use the `fetch` tool to get the contents of this spreadsheet" instead of just "read this file".
* **Break it down** - Ask for one thing at a time instead of complex multi-step requests
* **Wrong tool called?** - LLMs are non-deterministic. Sometimes they call the wrong tool (e.g., fetching metadata instead of file contents). Check the tool call details, then retry with explicit instructions about which tool to use.

**6. Can you reproduce it?**

Before diving deeper, try the same request again:

* **Try it again** - AI responses are non-deterministic. The same prompt can succeed on retry.
* **Try a simpler version** - If "search for Q4 reports and summarize them" fails, try just "search for Q4 reports" first
* **Note what's consistent** - If it fails every time, it's likely a real issue. If it's intermittent, it may be a prompting or context problem.

**7. Have you tried a different model or AI client?**

Isolate whether the issue is specific to your setup:

* **Simplify your connectors** - Too many connected MCPs can overwhelm the AI; disable ones you're not using
* **Try a different model** - Some models handle tool use better than others. If your AI client supports it, try switching models (e.g., GPT-4o vs Claude Sonnet)
* **Try a different surface** - Within the same client, try a new chat, a Project, or a different mode (e.g., Agent vs Ask). Some bugs are specific to certain surfaces.
* **Try a different AI client** - If a tool works in Claude Desktop but not Cursor, the issue may be client-specific

> [!TIP]
>
> **Using the right connector?** Some services have multiple MCPs (e.g., Google has GDrive, GDocs, GSheets, GCal, Gmail). Check **Runlayer > Connectors** to compare tools and make sure you're using the connector with the capability you need.

***

## Understanding Error Types

> [accordion] Authentication Errors
>
> **Symptoms:** `401 Unauthorized`, `403 Forbidden`, "Authorization failed", "Token expired"
>
> **Cause:** Your OAuth token has expired, been revoked, or doesn't have the required permissions.
>
> **Fix:** Revoke and reconnect your authentication (see Fix 3 below).

> [accordion] Connector lists only an 'Authorize' or 'Inputs Required' tool (not its real tools)
>
> **Symptoms:** A connector that should expose many tools shows just **one** tool named like **`AUTH_REQUIRED_<connector>`** ("Auth Required: …") or **`INPUTS_REQUIRED_<connector>`** ("Inputs Required: …"). The AI may say it needs you to authorize or configure the connector before it can do anything.
>
> **Cause:** This is expected, not a bug. Before an OAuth connector is authorized (or while required connector inputs are unset), the real tool list isn't available yet, so Runlayer returns a single **synthetic recovery tool** that tells the agent — and you — how to unblock it:
>
> * **`AUTH_REQUIRED_<connector>`** — the connector uses OAuth and you (this user) haven't authorized it yet. Calling the tool returns the authorization link for the connector.
> * **`INPUTS_REQUIRED_<connector>`** — the connector is missing required configuration inputs (e.g. a base URL or account identifier) that an admin must supply.
>
> These recovery tools are surfaced **in-band** for clients that authorize per-connection — notably **ChatGPT** and **Claude** web/desktop connectors, Runlayer Plugin traffic, and anything proxied through the Runlayer CLI. Other MCP clients pointed directly at a Runlayer URL (e.g. Cursor, VS Code) instead receive a standard `401` with a `WWW-Authenticate` header and typically launch the OAuth prompt automatically. In both cases the fix is the same: complete authorization, then the real tools appear.
>
> Note: this is what makes it safe to roll connectors out to a client before anyone has authorized them — see [Connectors → Authorizing at use time](https://docs.runlayer.com/platform-connectors.md#authorizing-at-use-time).
>
> **Fix (users):**
>
> * **If you see `AUTH_REQUIRED_…`:** let the agent call that tool to get the authorization link, or go to **Runlayer → Connectors**, find the connector, and click **Connect**. After OAuth completes, retry your request — the real tools replace the placeholder. (The tool list is cached briefly; if the placeholder lingers, start a new chat or reconnect the connector in your client.)
> * **If you see `INPUTS_REQUIRED_…`:** open the connector in **Runlayer → Connectors** and click **Finish setup** in the "Additional setup required" banner to fill in the missing required values (e.g. an API key or account ID). If the banner isn't there or a value is locked, contact your admin.
>
> **For admins:**
>
> * **`INPUTS_REQUIRED_…`** means the connector's required inputs/placeholders aren't configured. Set placeholder defaults on the connector in **Connectors → \[Server] → Settings**, then have the user retry (or set their own values via **Finish setup**).
> * If **every** user sees `AUTH_REQUIRED_…` and none can authorize, verify the connector's OAuth/proxy setup — some third-party services also require you to allowlist your Runlayer domain (see the **Domain Whitelisting Required** and **Atlassian** entries below) and [connectors](https://docs.runlayer.com/platform-connectors.md).

> [accordion] Connection Errors
>
> **Symptoms:** `Connection timeout`, `Connection refused`, `Network error`, "Server unreachable"
>
> **Cause:** The MCP server can't be reached due to network issues, firewall rules, or server downtime.
>
> **Fix:**
>
> * Check if there's a known outage (ask your admin or check your support channel)
> * Wait a few minutes and try again
> * If persistent, contact your admin

> [accordion] Claude Code MCP auth fails with certificate issuer error
>
> **Symptoms:** Claude Code shows `SDK auth failed: unable to get local issuer certificate` when authenticating a Runlayer MCP.
>
> **Cause:** Claude Code is making the MCP authentication request itself, outside the Runlayer CLI. In TLS-inspected networks, Claude Code must trust the corporate root CA used by the proxy.
>
> **Fix:**
>
> * Install the corporate root CA into the OS trust store
> * Or set `NODE_EXTRA_CA_CERTS=/path/to/ca-cert.pem` for the Claude Code process
> * See [Claude Code's enterprise network configuration docs](https://code.claude.com/docs/en/network-config)

> [accordion] Tool Call Failures
>
> **Symptoms:** `MCP error -32603`, `Internal Error`, `500 Server Error`
>
> **Cause:** The MCP server encountered an error processing your request. This could be a configuration issue, API rate limit, or bug.
>
> **Fix:**
>
> * Check audit logs for the specific error message
> * Try the request again with different parameters
> * Contact your admin if it persists

> [accordion] Permission Denied
>
> **Symptoms:** `Access denied`, `Access denied by policy`, `Security violation`, `403`
>
> **Cause:** You don't have access to this specific tool or data based on your organization's policies.
>
> **Fix:** Contact your admin to request access to this MCP or tool.

> [accordion] Rate Limiting
>
> **Symptoms:** `429 Too Many Requests`, `Rate limit exceeded: 600 requests per minute`
>
> **Cause:** Runlayer applies protective rate limits at the MCP gateway to keep one client from overwhelming the proxy or an upstream MCP server. Limits are enforced **per authenticated identity** — the caller's bearer token or `x-runlayer-api-key` is hashed into a stable per-user key, so heavy usage by one user does not consume another user's budget, even when both share an egress IP (corporate VPN/NAT). Unauthenticated requests to public deployment endpoints fall back to per-IP limiting.
>
> Defaults (platform-managed):
>
> * **All MCP proxy requests, including `tools/call` and `tools/list`:** 600 requests/minute per identity (\~10 requests/second sustained).
>
> Limits use a moving-window algorithm, so the budget refills continuously rather than resetting on a fixed clock. When exceeded, the gateway returns `429` with a body like `Rate limit exceeded: 600 requests per minute`.
>
> **Fix (users):**
>
> * Wait a few seconds and retry — the window refills continuously.
>
> * For scripted or agentic clients, add **exponential backoff with jitter** on `429` responses instead of retrying in a tight loop.
>
> * If you consistently hit the limit during normal use, contact your admin.
>
> > [!NOTE]
> >
> > The gateway rate limiter **fails open**: if the limiter's backing store is briefly unavailable, requests are allowed rather than blocked, so a limiter outage never takes down MCP traffic. These ceilings are abuse-protection defaults, not per-agent or per-tool governance quotas — to restrict *which* tools an identity may call, use [access policies](https://docs.runlayer.com/platform-policies.md). Self-hosted deployments can tune the default thresholds in configuration; contact your Runlayer account team for guidance.

> [accordion] Security Violation (False Positive)
>
> **Symptoms:** `403 Security Violation`, `Request blocked`, normal requests getting denied
>
> **Cause:** Runlayer's security scanners flagged your request as suspicious. This can happen when requests contain keywords that look like SQL injection, bulk queries on sensitive fields, or patterns that resemble automated scanning.
>
> **Fix:**
>
> * Check audit logs for what was blocked and why
> * Rephrase your request differently
> * Contact your admin with the exact prompt and the blocked tool call details
>
> **For admins:** confirm it's a false positive by finding the security violation in **Audit Logs** (filter by the user and connector) and reviewing what the scanner flagged. If the request was legitimate, you have three remediation paths:
>
> * **Lower scanner sensitivity** — globally in **Settings → Security Scanners**, [per connector](https://docs.runlayer.com/runlayer-toolguard.md#per-connector-overrides), or [per client](https://docs.runlayer.com/runlayer-toolguard.md#client-and-local-tool-overrides) ([sensitivity levels](https://docs.runlayer.com/runlayer-toolguard.md#sensitivity-levels))
> * **Change the violation action** from Block to Alert or Mask so requests proceed while still being logged ([violation actions](https://docs.runlayer.com/runlayer-toolguard.md#violation-actions))
> * **Disable the specific scanner** (set its action to Allow) if it consistently misfires for your environment

> [accordion] Domain Whitelisting Required
>
> **Symptoms:** Connecting a connector fails on the vendor's own page, with an error saying the redirect URI, callback, or domain isn't allowed.
>
> **Cause:** Some services only send an OAuth sign-in back to callback URLs or domains their admin has approved.
>
> **Fix (admins):** Add your Runlayer callback, `https://<your-runlayer-domain>/oauth/callback`, to the vendor's allowlist or OAuth app. That's the address your users open Runlayer at (your `APP_URL` on self-hosted) plus `/oauth/callback`. For vendor-specific steps, see the Atlassian entry below, [Salesforce](https://docs.runlayer.com/servers/salesforce.md), or [DoorDash](https://docs.runlayer.com/servers/doordash.md). Vendors that sign in through the [OAuth Broker](https://docs.runlayer.com/oauth-broker.md) use Runlayer's shared callback, `https://oauth.runlayer.com/v1/callback`, instead.

> [accordion] Atlassian: connecting fails because the domain isn't allowed
>
> **Symptoms:** Clicking **Connect** on the **Atlassian** connector ends on an Atlassian page saying the domain isn't allowed, or that your organization admin must authorize access from a domain to this site.
>
> **Cause:** The official Atlassian connector (`mcp.atlassian.com`) signs in with OAuth 2.1, and Atlassian only sends OAuth redirects to domains your Atlassian organization allows. By default Atlassian allows a fixed list of supported AI tools. Your Runlayer domain isn't on it, so an Atlassian organization admin has to add it once.
>
> **Fix (Atlassian organization admin):**
>
> 1. In **Atlassian Administration**, select your organization, then **Connectors → Atlassian MCP server**.
> 2. Select **Add domain** and enter `https://<your-runlayer-domain>/**`. This covers the Runlayer callback, `https://<your-runlayer-domain>/oauth/callback`.
> 3. Ask the user to click **Connect** again. Nothing changes in Runlayer.
>
> If your Atlassian organization also restricts access by IP address, tool calls can still fail after sign-in with "You don't have permission to connect from this IP address". Add Runlayer's outbound addresses to that IP allowlist. On a hosted tenant, an admin copies them from **Settings → Network Access** (see [Runlayer source IP addresses](https://docs.runlayer.com/network-firewall-requirements.md#runlayer-hosted-platform-egress)). On self-hosted, they're your NAT gateway addresses.
>
> The **Atlassian Community** connector signs in with API tokens, so Atlassian's domain list doesn't apply to it. See Atlassian's [Control Atlassian MCP server settings](https://support.atlassian.com/security-and-access-policies/docs/control-atlassian-mcp-server-settings/).

> [accordion] Atlassian: agent uses the wrong Jira or Confluence site (multiple tenants)
>
> **Symptoms:** Jira or Confluence actions land in the wrong site or space; the agent reads a sandbox tenant instead of production; the agent mixes up Jira and Confluence when both are available; "which site?" ambiguity.
>
> **Cause:** The official **Atlassian** connector (`mcp.atlassian.com`) serves **both Jira and Confluence through a single OAuth connection**. Every tool call targets a specific site via a `cloudId`, which the agent resolves at runtime with the `getAccessibleAtlassianResources` tool. When your Atlassian account can reach more than one site — for example Jira and Confluence on separate tenants, or a sandbox plus a production instance — the agent can resolve the wrong `cloudId`.
>
> **Fix (users):**
>
> * **Name the site explicitly.** Tell the agent which site to use, e.g. "in the `yourco.atlassian.net` site…". For Confluence you can paste the full page URL — the connector converts the site name in the URL to the correct `cloudId`.
> * **Say which product.** If both Jira and Confluence tools are visible and the agent picks the wrong one, be explicit: "use Confluence" or "use Jira".
>
> **For admins:**
>
> * **Scope tools with policies.** If an agent only needs one product, use a [policy](https://docs.runlayer.com/platform-policies.md) to restrict it to that product's tools (for example, allow only Confluence tools for a docs agent). Fewer overlapping tools means fewer wrong-tool calls.
> * **Separate connectors per tenant.** If your teams keep Jira and Confluence on different Atlassian sites, set up a dedicated Atlassian connector per site so each has its own scoped OAuth connection and a distinct name in the [catalog](https://docs.runlayer.com/platform-connectors.md), then bundle the right one into each [Plugin](https://docs.runlayer.com/platform-plugins.md).
> * **Pin the site with the community server.** The **Atlassian Community** connector accepts explicit `JIRA_URL` and `CONFLUENCE_URL` configuration, which fixes each connector to a specific site instead of resolving `cloudId` dynamically — useful when users have access to many Atlassian sites.

> [accordion] Context or Size Limits
>
> **Symptoms:** Timeout errors on large files, `500 Server Error` when fetching big documents, truncated responses, AI says "couldn't read the entire file"
>
> **Cause:** The file or response is too large. This can hit either Runlayer's response size limits or your AI client's context window limits.
>
> **Fix:**
>
> * Request a specific range instead of the whole file (e.g., "fetch rows 1-100 from this spreadsheet")
> * Ask for metadata first to understand the file size
> * Break your request into smaller chunks
> * Some AI clients will automatically retry with smaller ranges if the initial request fails

***

## Self-Service Fixes

### Fix 1: Verify MCP Status

Make sure the connector is active and properly configured:

1. Go to **Runlayer > Connectors**
2. Find the connector you're trying to use
3. Check the status:
   * **Active** - Ready to use
   * **Pending** - Waiting for admin approval ([admins: see approval workflow](https://docs.runlayer.com/platform-approvals.md))
   * **Disabled/Error** - Contact your admin

***

### Fix 2: Restart or Reconnect Your AI Client

Sometimes the issue is with your AI client's connection to Runlayer, not your app authentication.

**Try these in order:**

1. **Disconnect and reconnect the connector** from within your AI client's settings
2. **Fully quit and reopen** your AI client (don't just close the window)
   * On Mac: Right-click the dock icon → Quit
   * On Windows: Right-click taskbar icon → Close window

> [!NOTE]
>
> Each AI client handles MCP connections differently. Go to **Runlayer > Connectors**, select your connector, click **Add to Client**, and follow the instructions for your client.

> [!TIP]
>
> **When to reconnect the AI client vs. app authentication:**
>
> * **Reconnect AI client** when: Tools aren't showing up, or you see "MCP disconnected" errors
> * **Revoke app authentication** (Fix 3) when: You see "401 Unauthorized" or "Token expired" errors

***

### Fix 3: Revoke and Reconnect App Authentication

If the above fixes don't work, try refreshing your OAuth tokens:

**1. Open Runlayer**

Log in to Runlayer via your SSO/Okta tile

**2. Go to Connectors**

Click **Connectors** in the left sidebar

**3. Find the connector**

Locate the connector that's not working

**4. Revoke Access**

Click the three-dot menu (⋮) and select **Revoke access**

**5. Reconnect**

Click the **Connect** button to re-authenticate

**6. Complete OAuth**

Follow the OAuth prompts to grant access again

**7. Test in your AI client**

Return to your AI client and try the connector again

> [!NOTE]
>
> Your AI client may automatically prompt you to re-authenticate when you try to use the MCP. If so, follow those prompts instead of manually reconnecting in Runlayer.

**Why does this happen?** Runlayer refreshes your OAuth tokens automatically in the background, but refreshes can fail in two ways:

* **Transient failures** (provider returns a 5xx error, or the token endpoint is unreachable): Runlayer keeps using your current access token while it's still valid and retries the refresh on subsequent requests. After repeated consecutive refresh failures, the refresh token is treated as exhausted and you must reconnect.
* **Permanent failures** (`invalid_grant` — the provider has revoked or expired the refresh token, or a 401 from the token endpoint): Runlayer clears the stored refresh token immediately, and you must reconnect to re-authenticate.

Admins can see refresh failures — including the failure category (provider error vs. reauthorization required vs. endpoint unreachable) — in [Audit Logs](https://docs.runlayer.com/platform-audit-logs.md).

***

## For Administrators

Audit logs are your primary debugging tool. Use them to determine whether an issue is on the Runlayer side or the AI client side.

### Diagnostic Decision Tree

| Audit Log Shows | Likely Cause | Action |
| - | - | - |
| **No logs for that user/time** | AI client never called Runlayer | Check connector selection, prompting, VPN |
| **tool\_call\_success** but user reports issue | AI client received data but didn't use it correctly | AI client issue—user should retry or rephrase |
| **tool\_call\_failure** | Runlayer encountered an error | Investigate the error message |
| **authentication\_error** | OAuth token expired or revoked | User needs to revoke and reconnect |

### Using Audit Logs

**1. Navigate to Audit Logs**

Go to **Runlayer > Audit Logs**

**2. Filter by User**

Search by the user's email to see their recent activity

**3. Filter by Connector**

Narrow down to the specific MCP that's having issues

**4. Examine the Details**

Click into a log entry to see:

* The exact tool that was called
* The parameters that were sent
* The response or error message

**Example audit log entry:**

```json theme={null}
{
  "event_type": "tool_call_failure",
  "server_name": "Gdrive_1",
  "tool_id": "read_file",
  "error": "MCP error -32603: Failed to read file: Internal Error"
}
```

> [!WARNING]
>
> If you see `500` errors or internal errors consistently, report them to Runlayer support—these indicate bugs that should be fixed.

### Debugging Checklist

When a user reports "it's not working":

1. **Ask for details** - Get the actual prompt, error messages, and tool call details (if visible in their AI client)
2. **Check audit logs** - Is there any activity from this user? What does it show?
3. **Verify connector status** - Is the MCP active? Is the user's authentication valid?
4. **Check for patterns** - Is this affecting one user or many? One MCP or all?
5. **Test reproduction** - Can you reproduce the issue with the same prompt?

For detailed guidance on managing MCPs, approvals, policies, and security monitoring, see [Approvals](https://docs.runlayer.com/platform-approvals.md), [Policies](https://docs.runlayer.com/platform-policies.md), and [Sessions](https://docs.runlayer.com/platform-sessions.md).

***

## Escalation

### User → Admin

When reporting an issue to your admin, include:

* **MCP name**: Which MCP isn't working?
* **What you were trying to do**: Be specific about the action
* **Error message**: Provide a screenshot or a screen recording and include exact tool inputs and outputs if possible
* **Tool call details**: If your AI client shows a tool call indicator, expand it and screenshot the request/response
* **Connector selected?**: Confirm the connector was enabled/selected in your AI client
* **When it started**: Did it ever work? When did it stop?
* **What you've tried**: Revoke/reconnect? Restart client? Verify connector selection?

***

### Admin → Runlayer Support

When escalating to Runlayer support, include:

* **Audit log entry**: ID or screenshot of the relevant log
* **MCP configuration**: Server URL, transport type, auth method
* **AI client**: Which client (and version if known) is the user using?
* **Timeline**: When did the issue start?
* **Scope**: How many users are affected?
* **Steps to reproduce**: How can we recreate the issue?

***

## Prevention Tips

* Keep only MCPs you actively use connected
* Verify your connector is selected/enabled before prompting
* Be explicit in prompts about which tool to use
* Try revoke/reconnect as a first fix for auth issues
* Report issues with specific details and screenshots
* Restart your AI client periodically

***

## Related Documentation

> [card] [Audit Logs](https://docs.runlayer.com/platform-audit-logs.md)
>
> Understanding and using audit logs

> [card] [Security Best Practices](https://docs.runlayer.com/mcp-security-best-practices.md)
>
> Security guidelines for MCP usage


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.