# Connected apps

The AI apps that act as a member in your account through the Provenance connector, who sees and signs out which, the account's MCP access setting and what each scope allows.

A connected app is an AI app, such as Claude, ChatGPT or Cursor, that a member signed in to Provenance as themself. It acts with that member's role in one account and one environment, never more. **Settings → Connected apps** lists them, and the account's **MCP access** sets what any of them may do.

## When to use it

- See which AI apps act in your account, who connected each one and when it was last used.
- Sign out an app you don't use, or one you don't recognise.
- Keep live read-only, or turn AI apps off for the account.

## How it works

1. **A member connects an app.** The app sends them to Provenance's **Connect an AI app** page, signed in to the console. The page names the app, where it returns, the account and environment, and what it asks for. Each box is capped by the member's role.
2. **The app gets its own sign-in**, for one account and one environment: a sandbox connection never works on live. It's an access token for an hour and a refresh token that rotates; reusing an old refresh token signs the app out.
3. **Every request is checked as it arrives.** The member's role is read again each time, so a demotion or a removal applies on the app's next request. A sign-out applies within 30 seconds.

A change an app asks for waits for the member it acts as: see [Confirm an AI app's change](https://provenanceauth.com/docs/provenance-mcp/confirm-changes.md).

Connecting, signing out and changing MCP access each write a row in the [audit log](https://provenanceauth.com/docs/account/console.md#change-settings) (**MCP app connected**, **MCP app revoked**, **MCP access changed**).

## Who sees what

| Role | Sees | Signs out |
| --- | --- | --- |
| Owner, Admin | Every member's apps | Any app |
| Developer, Analyst, Approver | Their own apps | Their own |

## What an app may ask for

| Scope | On the page | Lowest role |
| --- | --- | --- |
| `operator:read` | Read orders, rules, agents and logs | Analyst (an approver reads its approvals) |
| `operator:approve` | Decide held orders | Approver |
| `operator:write` | Draft changes you confirm | Developer |
| `operator:developers` | Developer tools | Developer |

Reading is part of every connection. What an app can do is the scopes it holds, the member's role and the account's MCP access together, never more than any one of them.

## MCP access

| Setting | What apps may do |
| --- | --- |
| **Off** | Nothing: no app can connect, and every connected app is signed out |
| **Read only** | Read; apps that held more are signed out |
| **Read and write** | Everything their scopes and role allow |

Until an owner or admin sets it, sandbox is **Read and write** and live is **Read only**. Only an owner or admin changes it, with a recent second factor when they have one.

## Limits

- An app never gets a key's secret, never changes members, roles, billing, single sign-on or webhook endpoints, and never deletes the account: those stay in the console.
- A Provenance support session can't connect an app.
- An API key can't list or sign out apps; this is a console page.

## Errors you might see

| Code | Why |
| --- | --- |
| `mcp_access_off` | The account turned AI apps off. An owner or admin can turn them on here. |
| `insufficient_role` | Your role can't change MCP access, or allows none of what the app asked for. |
| `invalid_scope` | The app asked for a scope Provenance doesn't offer. |
| `recent_two_factor_required` | Confirm your second factor, then try again. |

## Related

- [The console](https://provenanceauth.com/docs/account/console.md)
- [Sign-in and teams](https://provenanceauth.com/docs/account/sign-in-and-teams.md)
- [Connect an MCP client](https://provenanceauth.com/docs/provenance-mcp/connect.md)
- [Developer tools](https://provenanceauth.com/docs/provenance-mcp/developer-tools.md) (sandbox keys and integration checks)
