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

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

Share Tray.io with your team in Claude, ChatGPT and Cursor through Metorial: master token or user token sign-in, 19 tools (9 read-only).

---

To give your team Tray.io in Claude, ChatGPT, Cursor and other AI clients, an admin shares the Tray.io integration in a Metorial portal, and each person connects with a master token. Agents can automate workflows and integrate across hundreds of third-party services using pre-built connectors. The integration has 19 tools, 9 read-only, 6 write and 4 destructive, plus 2 triggers.

**What you will learn**

- How an admin shares Tray.io in a portal and how each person connects
- What Tray.io asks for when you connect, and where to find it
- How to keep the 9 read-only tools and reject the other 10

**Before you start**

- A [portal](https://metorial.com/docs/platform/workforce/portals) with at least one access group
- A master token from Tray.io 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 methods

| Method | Type | What a person provides |
| --- | --- | --- |
| **Master Token** (default) | API token | `masterToken` |
| **User Token** | API token | `userToken` |

The portal and `metorial setup` use **Master Token** unless someone picks another method.

### Master Token

To connect, a person enters:

- `masterToken`: Master API token obtained from the Tray.io Partner Dashboard under Settings > Tokens

### User Token

To connect, a person enters:

- `userToken`: User access token obtained via the authorize mutation using a master token

### Setup settings

Whichever method you pick, setup also asks for:

- `region` (optional): Tray.io region. Determines the API endpoint used for all requests. One of "us", "eu", "apac".

## Admin: share Tray.io 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 Tray.io. Under **Auth Method**, keep **Master Token** or pick another. For how members connect, choose **Each person connects** so everyone enters their own master token, or **Shared connection** to enter one master token for everyone.

3. **Limit the tools**

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

4. **Choose who gets it**

   Add the access groups that should see Tray.io. 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 Tray.io integration. Once it exists, check which groups have it:

```bash
metorial-admin portals access list <portal-id> --type provider_template --search tray.io
```

## Employee: connect Tray.io

### In the portal

1. **Open Tray.io in the catalog**

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

2. **Authenticate**

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

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 tray.io
metorial setup <catalog-item-id>
```

`catalog search` prints the catalog item ID. `metorial setup` uses **Master Token**. To connect with **User Token** instead, find its ID with `metorial catalog get <catalog-item-id>` and add `--auth-method <auth-method-id>`.

### Add it to your AI client

`metorial install` adds your Tray.io 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 tray.io
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 9 read-only tools, such as `list_users` and `get_resource`, and lose the 6 write tools, such as `create_user` or `generate_user_token`, and the 4 destructive tools, such as `delete_user` or `call_connector`.

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 tray.io
metorial tools <integration-id>
metorial call <integration-id> list_solutions -d '{}'
```

`metorial tools` lists the 19 tools, minus any you rejected. `list_solutions` takes no input. It lists one page of available solutions in the Tray.io workspace.

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

## Tools

### Read-only tools (9)

- `list_solution_instances`: List one page of solution instances visible to the authenticated user or master token.
- `list_users`: List external end users managed through the Tray.io Embedded API.
- `list_solutions`: List one page of available solutions in the Tray.io workspace.
- `list_connectors`: List all available Tray.io connectors.
- `get_solution_instance`: Get detailed information about a specific solution instance including its configuration and authentication values. Needs `solutionInstanceId`.
- `list_authentications`: List one page of service authentications for the authenticated user.
- `get_connector_operations`: Retrieve the available operations and their input/output schemas for a specific connector. Needs `connectorName` and `version`.
- `get_resource`: Read one exact external user, solution template or authentication metadata record.
- `get_current_context`: Validate access with a native read-only query and report the configured credential mode and region.

### Write tools (6)

- `update_solution_instance`: Update a solution instance's name, enabled state, configuration values, or authentication values. Needs `solutionInstanceId`.
- `create_user`: Create a new external end user in Tray.io and optionally generate an access token. Needs `name` and `externalUserId`.
- `generate_user_token`: Generate an access token for an existing Tray.io end user. Needs `userId`.
- `create_solution_instance`: Create a new solution instance for the authenticated user. Needs `solutionId` and `instanceName`.
- `upgrade_solution_instance`: Upgrade a solution instance to the latest published version of its solution. Needs `solutionInstanceId`.
- `create_authentication`: Create a new service authentication for importing existing credentials into Tray.io. Needs `name`, `serviceId`, `serviceEnvironmentId` and `credentialData`.

### Destructive tools (4)

- `delete_user`: Delete an external end user from Tray.io. Needs `userId`.
- `delete_solution_instance`: Delete an exact solution instance and verify it is absent. Needs `solutionInstanceId`.
- `call_connector`: Execute an operation on a Tray.io connector. Needs `connectorName`, `version`, `operationName`, `authId` and `operationInput`.
- `delete_authentication`: Delete a service authentication from Tray.io. Needs `authenticationId`.

## Triggers

Tray.io has 2 triggers, which fire on events in Tray.io:

- `workflow_webhook`: Receives incoming webhook events from Tray.io workflows.
- `solution_instance_changes`: [Polling fallback] Polls for changes to solution instances (new instances created, instances enabled/disabled, or instances removed).

## 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 Tray.io there
- [Tool permissions](https://metorial.com/docs/platform/guides/tool-permissions): tool filters and what employees see
- [Tray.io on metorial.com](https://metorial.com/integrations/trayio): the integration overview