Set up Tray.io in Metorial for Claude, ChatGPT and Cursor
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'll 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 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, 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
Open Shared Resources
Open Workforce, choose the portal, and select Shared Resources under Access.
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.
Limit the tools
Under Tool Filters, set the write and destructive groups to Reject if agents should only read from Tray.io.
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:
Employee: connect Tray.io
In the portal
Open Tray.io in the catalog
Sign in to your portal and open Tray.io. The status reads Available.
Authenticate
Under Quick setup, select Authenticate. In the setup window, enter your master token (masterToken).
Confirm
The status changes to Configured. If it later reads Needs reconnect, select Reconnect and sign in again.
With the CLI
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.
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.
Check it worked
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. NeedssolutionInstanceId.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. NeedsconnectorNameandversion.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. NeedssolutionInstanceId.create_user: Create a new external end user in Tray.io and optionally generate an access token. NeedsnameandexternalUserId.generate_user_token: Generate an access token for an existing Tray.io end user. NeedsuserId.create_solution_instance: Create a new solution instance for the authenticated user. NeedssolutionIdandinstanceName.upgrade_solution_instance: Upgrade a solution instance to the latest published version of its solution. NeedssolutionInstanceId.create_authentication: Create a new service authentication for importing existing credentials into Tray.io. Needsname,serviceId,serviceEnvironmentIdandcredentialData.
Destructive tools (4)
delete_user: Delete an external end user from Tray.io. NeedsuserId.delete_solution_instance: Delete an exact solution instance and verify it is absent. NeedssolutionInstanceId.call_connector: Execute an operation on a Tray.io connector. NeedsconnectorName,version,operationName,authIdandoperationInput.delete_authentication: Delete a service authentication from Tray.io. NeedsauthenticationId.
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, Cursor, Codex and ChatGPT: connect each client to your portal and use Tray.io there
- Tool permissions: tool filters and what employees see
- Tray.io on metorial.com: the integration overview