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

# Set up LiveSession in Metorial for Claude, ChatGPT and Cursor
URL: https://metorial.com/docs/integrations/livesession
Last updated: 2026-11-24

Share LiveSession with your team in Claude, ChatGPT and Cursor through Metorial: personal access token sign-in, 17 tools (6 read-only).

---

To give your team LiveSession in Claude, ChatGPT, Cursor and other AI clients, an admin shares the LiveSession integration in a Metorial portal, and each person connects with a personal access token. Agents can access and manage product analytics data from LiveSession's session replay platform. The integration has 17 tools, 6 read-only, 8 write and 3 destructive, plus 1 trigger.

**What you will learn**

- How an admin shares LiveSession in a portal and how each person connects
- What LiveSession asks for when you connect, and where to find it
- How to keep the 6 read-only tools and reject the other 11

**Before you start**

- A [portal](https://metorial.com/docs/platform/workforce/portals) with at least one access group
- A personal access token from LiveSession for each person, or one for a shared connection
- For the CLI steps: the [Metorial CLI](https://metorial.com/docs/platform/cli), signed in to your portal

## Sign-in method

| Method | Type | What a person provides |
| --- | --- | --- |
| **Personal Access Token** | API token | `token` |

### Personal Access Token

To connect, a person enters:

- `token`: LiveSession Personal Access Token (PAT). Create one in LiveSession Settings > API Tokens.

## Admin: share LiveSession in a portal

### In the dashboard

1. **Open Shared Resources**

   Open **Workforce**, choose the portal, and select **Shared Resources** under **Access**.

2. **Share a new integration**

   Select **Share a Resource**, then **New Integration**, and choose LiveSession. For how members connect, choose **Each person connects** so everyone enters their own personal access token, or **Shared connection** to enter one personal access token for everyone.

3. **Limit the tools**

   Under **Tool Filters**, set the write and destructive groups to **Reject** if agents should only read from LiveSession.

4. **Choose who gets it**

   Add the access groups that should see LiveSession. When a person asks for access from the portal, the request appears under **Access Requests**.

### With the CLI

The CLI cannot create the per-user LiveSession integration. Once it exists, check which groups have it:

```bash
metorial-admin portals access list <portal-id> --type provider_template --search livesession
```

## Employee: connect LiveSession

### In the portal

1. **Open LiveSession in the catalog**

   Sign in to your portal and open LiveSession. The status reads **Available**.

2. **Authenticate**

   Under **Quick setup**, select **Authenticate**. In the setup window, enter your personal access token (token).

3. **Confirm**

   The status changes to **Configured**. If it later reads **Needs reconnect**, select **Reconnect** and sign in again.

### With the CLI

```bash
metorial catalog search livesession
metorial setup <catalog-item-id>
```

`catalog search` prints the catalog item ID. 

### Add it to your AI client

`metorial install` adds your LiveSession connection to a local MCP client such as Claude Code, Cursor or Codex. `metorial list` prints the integration ID and `metorial client list` the client identifiers.

```bash
metorial list livesession
metorial client list
metorial install <client-identifier> <integration-id>
```

For a client that takes a server URL, such as ChatGPT, `metorial install custom <integration-id>` creates an installation token and shows the endpoint details.

## Make it read-only

Open the integration's **Tool Filters** and set the write and destructive groups to **Reject**. Agents keep the 6 read-only tools, such as `list_alerts` and `list_sessions`, and lose the 8 write tools, such as `create_alert` or `update_alert`, and the 3 destructive tools, such as `delete_alert` or `delete_funnel`.

Employees see the result on the integration's page in the portal under **Tool access**. For the full walkthrough, see [Tool permissions](https://metorial.com/docs/platform/guides/tool-permissions).

## Check it worked

```bash
metorial list livesession
metorial tools <integration-id>
metorial call <integration-id> list_alerts -d '{}'
```

`metorial tools` lists the 17 tools, minus any you rejected. `list_alerts` takes no input. It retrieves all configured alerts from your LiveSession account.

To see every input a tool takes, run `metorial schema <integration-id> <tool-key>`.

## Tools

### Read-only tools (6)

- `list_alerts`: Retrieve all configured alerts from your LiveSession account.
- `compute_funnel`: Run a funnel computation in LiveSession to analyze conversion data. Needs `dateRange` and `steps`.
- `list_sessions`: List and filter recorded user sessions from LiveSession.
- `list_webhooks`: Retrieve all configured webhook endpoints from your LiveSession account.
- `list_websites`: Retrieve all websites configured in your LiveSession account.
- `compute_metric`: Compute the number of sessions containing a named custom event over a date range, aggregated in a histogram.

### Write tools (8)

- `create_webhook`: Create a new webhook endpoint in LiveSession. Needs `url` and `websiteId`.
- `update_webhook`: Update an existing webhook endpoint configuration. Needs `webhookId`.
- `create_website`: Add a new website to your LiveSession account for tracking. Needs `host`.
- `create_alert`: Create a new alert in LiveSession. Needs `name`, `events` and `provider`.
- `update_alert`: Update an existing alert's configuration. Needs `alertId`.
- `update_funnel`: Update an existing conversion funnel's configuration in LiveSession. Needs `funnelId`, `name`, `segmentId` and `compute`.
- `set_funnel_favourite`: Mark or unmark a conversion funnel as a favourite in LiveSession. Needs `funnelId` and `isFavourite`.
- `create_funnel`: Create a new conversion funnel in LiveSession via the GraphQL API. Needs `name`, `segmentId` and `compute`.

### Destructive tools (3)

- `delete_funnel`: Permanently delete a conversion funnel from LiveSession. Needs `funnelId`.
- `delete_webhook`: Permanently delete a webhook endpoint from LiveSession. Needs `webhookId`.
- `delete_alert`: Permanently delete an alert from LiveSession. Needs `alertId`.

## Triggers

LiveSession has 1 trigger, which fire on events in LiveSession:

- `session_event`: Triggers when a session event occurs, including JavaScript errors, network errors, error clicks, rage clicks, and custom events.

## Next steps

- [Claude Code](https://metorial.com/docs/platform/clients/claude-code), [Cursor](https://metorial.com/docs/platform/clients/cursor), [Codex](https://metorial.com/docs/platform/clients/codex) and [ChatGPT](https://metorial.com/docs/platform/clients/chatgpt): connect each client to your portal and use LiveSession there
- [Tool permissions](https://metorial.com/docs/platform/guides/tool-permissions): tool filters and what employees see
- [LiveSession on metorial.com](https://metorial.com/integrations/livesession): the integration overview