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

# Rollbar

> Connect Rollbar projects with access tokens so agents can rank top errors, tie them to deploys, and update an item

Connect Rollbar to let CloudThinker agents rank your top errors, tie new errors to recent deployments and versions, pull session replay context, and change an item's status through your [Approvals](https://docs.cloudthinker.io/guide/approvals/overview.md). You paste one JSON config that maps each Rollbar project to its project access token, so one connection can cover many projects.

## Prerequisites

* A Rollbar account with access to each project you want agents to read.
* A project access token for each of those projects. Rollbar tokens are per project, so one token can't cover two projects.

## Setup

**1. Create a project access token**

In Rollbar, open the project and go to **Settings → Project Access Tokens**. Click **Create new access token**, check **read**, and add **write** only if you want agents to change item status. Leave **post\_server\_item** and **post\_client\_item** unchecked: they send errors into Rollbar, which CloudThinker never does. Repeat for each project.

**2. Write the project config**

Build a JSON object with a `projects` array, one entry per project. Each entry has a `name` and a `token`. The `name` is your own label for prompts, so it doesn't have to match the Rollbar project name. Short names like `backend` are easiest to type.

```json theme={null}
{
  "projects": [
    { "name": "backend", "token": "<backend-project-token>" },
    { "name": "frontend", "token": "<frontend-project-token>" }
  ]
}
```

**3. Add the connection**

In the sidebar, click **More → Workspace settings → Connections**, then on the **Builtin Connections** tab select **Rollbar**, paste the JSON into **ROLLBAR\_CONFIG\_JSON**, and click **Connect**.

**Success state:** the connection shows **Connected**. Connect doesn't call Rollbar with each token, so a bad token only shows up on the first request. Run the prompt in [Verify the connection](#verify-the-connection) in a new chat right away.

## Connection details

| Field | Description | Example |
| - | - | - |
| **ROLLBAR\_CONFIG\_JSON** | A `projects` array. Each entry has a `name` and a `token`. The key is `token`, not `access_token` | `{"projects":[{"name":"backend","token":"..."}]}` |

The format matches Rollbar's [MCP server multi-project configuration](https://docs.rollbar.com/docs/mcp-server-setup#configuration).

## Required permissions

| Token scope | What it allows |
| - | - |
| **read** | Projects, items, top errors, deployments, versions, and session replay |
| **write** | Changing an item's status, such as resolving or muting it. Each change also goes through your Approvals |

> [!TIP]
>
> Start with read-only tokens. Add the write scope only on the projects where you want agents to resolve or mute items.

## Agent capabilities

| Capability | What agents can do |
| - | - |
| **Discovery** | List configured projects and pick the project on their own when there's only one |
| **Error triage** | List current items, read item details and occurrence counts, and rank the top errors |
| **Release context** | Review recent deployments and pull version details from deploy revisions |
| **Session replay** | Fetch replay context for items that have a recorded replay. Needs session replay set up for the project in Rollbar |
| **Item updates (checked each time)** | Change one item's status. You must name the project, the item, and the change you want |

Agents never change an item while triaging, reviewing deploys, or reading replays. An update runs only when you ask for it in the conversation, and it goes through your Approvals.

Every change an agent makes goes through your workspace's [Approvals](https://docs.cloudthinker.io/guide/approvals/overview.md) first. On the default **Auto · Rules + AI · Ask me** mode, AI judgment can let a safe change run without asking — and an Allow Rule can too, once CloudThinker turns on [Rule enforcement](https://docs.cloudthinker.io/guide/approvals/rules.md#troubleshooting) for your workspace. Choose **Manual** to approve every change yourself.

### Verify the connection

Ask CloudThinker in a new chat:

```text theme={null}
List my Rollbar projects and show the top errors in each
```

Expect every project name from your config, each with its highest-impact items, their level, and occurrence counts. A missing project means it isn't in the JSON you pasted.

### Example prompts

```text theme={null}
Which errors in backend first appeared after the latest deployment?
Rank the active items in frontend by impact and show replay context for the top one
Resolve item #1042 in backend
```

With several projects configured, name the project in your prompt. Otherwise the agent asks you which one to use. For item numbers, use the `#` number Rollbar shows on the item.

## Troubleshooting

> [accordion] Calls fail with 401 Unauthorized, or come back empty
>
> The pasted config is invalid JSON, doesn't include the project you named, or holds a token that was revoked, disabled, or rate-limited in Rollbar. Ask the agent to list your configured projects, then edit the connection and fix the JSON or token.

> [accordion] The agent asks which project to use
>
> More than one project is configured and your prompt didn't name one. Add the project name from your config, for example "in backend".

> [accordion] No replay is available for an item
>
> Replay context exists only for items with a recorded session replay. Items without one return no replay data. That's expected, not an error.

> [accordion] An item update is blocked or fails
>
> The token for that project lacks the write scope, or you declined the approval. Add write scope to the token in Rollbar, update the connection, and ask again.

## Security

* **Least privilege** — grant only the permissions the agents need for your use case; start read-only and widen later.
* **Read-only by default** — use read-only credentials unless you want agents to make changes through this connection.
* **Rotate credentials** — rotate keys and tokens on your normal schedule; CloudThinker picks up the new value when you update the connection.
* **Revoke on offboarding** — remove the credential at the provider when you delete a connection or a teammate leaves.

- **Temporary config file**: tokens are stored encrypted. When an agent uses Rollbar, its Rollbar process reads them from a temporary file only that process can read, and the file is deleted when the process stops.
- **Rotation and new projects**: the saved JSON isn't shown when you edit the connection. Paste the full JSON again, with every project, whenever you rotate a token or add a project.

## Related

> [card] [Sentry](https://docs.cloudthinker.io/guide/connections/sentry.md)
>
> Issues, events, and traces through OAuth.

> [card] [Approvals](https://docs.cloudthinker.io/guide/approvals/overview.md)
>
> How CloudThinker asks before an item update runs.


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