---
docId: doc_f21d7f758b3d4aabbae6bdc24eef529d
title: Troubleshooting
description: Fix connection problems and understand the errors the Platic MCP server returns.
---

<script>
  import { Note } from '$lib/components';
</script>

# Troubleshooting

If you can't connect, find the symptom in the first table. If a tool fails, check the status and `details.code`.

## Connection problems

| Symptom | Cause | Fix |
|---|---|---|
| The browser never opens | An old `Authorization` header in your config blocks OAuth discovery | Remove the header and reconnect. |
| Authorization expired | More than 30 minutes passed since the authorization window opened | Reconnect from the client. Your account and workspace are kept, so you only authorize. |
| Cursor lists the server without an authentication button | Cursor doesn't offer sign-in in that list | In a new chat, choose **+ → MCP**, find **platic** and choose **Needs Authorization** or **Sign in**. See [Cursor](/mcp/install#cursor). |
| Claude says a connector with this URL already exists | You added Platic before, on the web or in the app | Search Plugins for **Platic**, choose the **api.platic.ai** result and use **Add** or **Connect** on its page. |
| The server appears but the assistant doesn't use its tools | It is saved but not authorized, or its tools are off in the chat | Complete sign-in from the client and enable the server's tools. A saved server is not an authorized connection. |
| `401` right after adding the server | Missing, expired or revoked credential | With OAuth, remove and re-add the server. With a key, check it starts with `pl_key_` and is active in **Settings → API Keys**. |
| `403` with `insufficient_scope` | The token is read-only and the tool writes | Re-authorize and accept `platica:write`. |
| `403` with `Missing … permission` | Your role in that workspace does not cover the module | Use an account with access, or an API key. |
| `400` asking for `workspace` | The credential covers several workspaces | Call `list_workspaces` and pass `workspace: "<id>"`. |
| `GET` or `DELETE` on `/mcp` fails | The server only accepts `POST` | Use a Streamable HTTP client. |

The initial `401` lets the client start OAuth through `WWW-Authenticate`. If it persists after authorization, check the credential.

## Two kinds of error

| Kind | What you see |
|---|---|
| Tool error | `tools/call` returns `isError: true` with a message the assistant can read and retry. |
| Protocol error | A JSON-RPC `error` with a `code` and `message`. |

## Tool errors

If the API responds with a status outside 2xx, the tool returns an error. By default, it includes Markdown with the status, `details.code` and message. With `X-Platica-MCP-Format: json`, it returns the API body: `{ code, error, details: { code, message } }`.

`details.code` is the stable value to act on. It is the same as in [API errors](/api-reference/errors).

| Status | `details.code` | Cause | Fix |
|---:|---|---|---|
| 400 | `INVALID_REQUEST` | Invalid arguments. `details.issues` says which. | Correct the fields it lists. |
| 400 | `INVALID_REQUEST` | `workspace` missing or not covered. `details.available` lists valid ids. | Pass one of them, or call `list_workspaces`. |
| 401 | `UNAUTHENTICATED` | Missing, invalid, revoked or expired credential | Let the client refresh or re-authorize. For a key, regenerate it. |
| 402 | `PAYMENT_REQUIRED` | The workspace reached its credit limit | Check the plan or usage before retrying. |
| 403 | `INSUFFICIENT_SCOPE` | The token lacks `platica:write` | Re-authorize with that scope. |
| 403 | `FORBIDDEN` | No access to the workspace, module or resource | Use an account that has it, or an API key. |
| 404 | `NOT_FOUND` or a resource code such as `CHANNEL_NOT_FOUND` | The resource is not in that workspace | Check the id; pass `workspace` if the credential covers several. |
| 409 | `CONFLICT` or a resource code | The resource is busy or its state forbids the operation | Read `details.code`. If a conversation is processing (`CONVERSATION_BUSY`, `AGENT_STOPPING`), retry with backoff and the same `requestId`. |
| 412 | `VERSION_MISMATCH` | The conversation changed since the `expectedVersion` you sent | Read it again and repeat with its new version. |
| 422 | `UNPROCESSABLE_ENTITY` or a resource code | Well-formed request with invalid content | Fix what `details` points to. |
| 500 | `INTERNAL_ERROR` | Internal error | Check the resource before repeating a write. Contact support if it persists. |
| 502 / 504 | `UPSTREAM_ERROR` / `UPSTREAM_TIMEOUT` | An internal service failed or timed out | Check the resource first: the operation may have finished. |
| 503 | `TEMPORARILY_UNAVAILABLE` | Temporarily unavailable | Retry with backoff. |

If the API does not respond, the MCP server generates the message without `details.code`. When the request times out, the operation may have completed. Check its status before retrying.

### Example

```json
{
  "jsonrpc": "2.0",
  "id": 7,
  "result": {
    "isError": true,
    "content": [
      {
        "type": "text",
        "text": "**Error 409 · `CHANNEL_TYPE_NOT_AVAILABLE`**\n\nA Telegram channel can't be connected yet.\n\n- **type**: telegram"
      }
    ]
  }
}
```

## Argument validation

If a tool's arguments do not match its `inputSchema`, the server does not call the API. It answers with a tool error that lists each problem as `path: message`:

```text
Invalid arguments:
  - expiresInMinutes: Number must be greater than or equal to 15
```

The text is in the client's language (Spanish, English or Portuguese). In `send_chat_message`, `delay` and `scheduleAt` are mutually exclusive.

## Protocol errors

| Code | Meaning |
|---|---|
| `-32001` | Unauthorized: the Bearer is missing or is not a valid `pl_at_` or `pl_key_` credential. The `401` carries `WWW-Authenticate` so the client can start OAuth. |
| `-32000` | A `GET` or `DELETE` was sent. Only `POST` is accepted. |
| `-32602` | The JSON-RPC call has invalid parameters. |
| `-32603` | Internal server error. Retry. |

<Note type="tip">

If an error persists, send the status, `details.code` and the time of the call to support. Never include your key or token.

</Note>
