Set up Stoat in Metorial for Claude, ChatGPT and Cursor
Share Stoat with your team in Claude, ChatGPT and Cursor through Metorial: session token or bot token sign-in, 38 tools (12 read-only).
To give your team Stoat in Claude, ChatGPT, Cursor and other AI clients, an admin shares the Stoat integration in a Metorial portal, and each person connects with a session token. Agents can read, send, edit, delete, and search Stoat messages. The integration has 38 tools, 12 read-only, 16 write and 10 destructive, plus 4 triggers.
What you'll learn
- How an admin shares Stoat in a portal and how each person connects
- What Stoat asks for when you connect, and where to find it
- How to keep the 12 read-only tools and reject the other 26
Before you start
- A portal with at least one access group
- A session token from Stoat 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 |
|---|---|---|
| Session Token (default) | API token | token |
| Bot Token | API token | token |
The portal and metorial setup use Session Token unless someone picks another method.
Session Token
To connect, a person enters:
token: Session token from Revolt user authentication
Bot Token
To connect, a person enters:
token: Bot token from Revolt bot settings
Setup settings
Whichever method you pick, setup also asks for:
baseUrl(optional): Base URL for the Revolt API. Change this if using a self-hosted instance.
Admin: share Stoat 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 Stoat. Under Auth Method, keep Session Token or pick another. For how members connect, choose Each person connects so everyone enters their own session token, or Shared connection to enter one session token for everyone.
Limit the tools
Under Tool Filters, set the write and destructive groups to Reject if agents should only read from Stoat.
Choose who gets it
Add the access groups that should see Stoat. 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 Stoat integration. Once it exists, check which groups have it:
Employee: connect Stoat
In the portal
Open Stoat in the catalog
Sign in to your portal and open Stoat. The status reads Available.
Authenticate
Under Quick setup, select Authenticate. In the setup window, enter your session token (token).
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 Session Token. To connect with Bot 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 Stoat 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 12 read-only tools, such as fetch_role and fetch_user, and lose the 16 write tools, such as open_dm or edit_role, and the 10 destructive tools, such as manage_ban or delete_role.
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 38 tools, minus any you rejected. fetch_user needs userId, so replace the placeholders. It fetches a Stoat user's profile information including username, display name, status, badges, and profile content.
To see every input a tool takes, run metorial schema <integration-id> <tool-key>.
Tools
Read-only tools (12)
fetch_server: Fetch details about a Stoat server including its name, description, channels, roles, and settings. NeedsserverId.fetch_messages: Fetch messages from a Stoat channel. NeedschannelId.fetch_invite: Fetch details about a Stoat invite by its code. NeedsinviteCode.fetch_user: Fetch a Stoat user's profile information including username, display name, status, badges, and profile content. NeedsuserId.fetch_server_emoji: List all custom emoji for a Stoat server. NeedsserverId.fetch_webhooks: List all webhooks for a Stoat channel. NeedschannelId.fetch_channel: Fetch details about a Stoat channel including its type, name, description, and other properties. NeedschannelId.search_messages: Search for messages in a Stoat channel using a full-text search query. NeedschannelIdandquery.fetch_server_invites: List all active invites for a Stoat server. NeedsserverId.fetch_members: Fetch members of a Stoat server. NeedsserverId.fetch_role: Fetch a server role, including its permission overrides and current rank.list_dm_channels: List accessible direct message and group channels to discover channel IDs for reading or sending messages.
Write tools (16)
manage_reactions: Add, remove, or clear reactions on a message. NeedschannelId,messageIdandaction.create_server: Create a new Stoat server with a name and optional description. Needsname.edit_member: Edit a server member's properties including nickname, roles, avatar, and timeout. NeedsserverIdanduserId.edit_message: Edit an existing message in a Stoat channel. NeedschannelIdandmessageId.create_channel: Create a new text or voice channel within a Stoat server, or create a group DM with specified users. Needsname.edit_role: Edit a role's properties in a Stoat server including name, colour, and hoist status. NeedsserverIdandroleId.create_role: Create a new role in a Stoat server. NeedsserverIdandname.edit_channel: Edit a Stoat channel's settings. NeedschannelId.send_message: Send a message to a Stoat channel. NeedschannelId.open_dm: Open a direct message channel with a user. NeedsuserId.execute_webhook: Send a message through a Stoat webhook. NeedswebhookIdandwebhookToken.edit_server: Edit a Stoat server's settings including name, description, icon, banner, discoverability, and analytics. NeedsserverId.create_invite: Create an invite link for a Stoat channel. NeedschannelId.pin_message: Pin or unpin a message in a Stoat channel. NeedschannelId,messageIdandaction.create_webhook: Create a new webhook for a Stoat channel. NeedschannelIdandname.edit_webhook: Update an existing channel webhook name, avatar, or permissions.
Destructive tools (10)
delete_messages: Delete one or more messages from a Stoat channel. NeedschannelIdandmessageIds.delete_server: Delete a server you own or leave a server you're a member of. NeedsserverId.delete_emoji: Delete a custom emoji from a Stoat server. NeedsemojiId.delete_invite: Delete a Stoat invite by its code. NeedsinviteCode.manage_ban: Ban or unban a user from a Stoat server. NeedsserverIdandaction.kick_member: Kick a member from a Stoat server. NeedsserverIdanduserId.delete_role: Delete a role from a Stoat server. NeedsserverIdandroleId.delete_channel: Delete a server channel or leave a group DM / direct message channel. NeedschannelId.set_permissions: Set server or channel permissions for a role or all members.delete_webhook: Permanently delete an existing channel webhook and revoke its execution token.
Triggers
Stoat has 4 triggers, which fire on events in Stoat:
new_message: Triggers when a new message is sent in one or more monitored Revolt channels.inbound_webhookchannel_message: Triggers when a new message is sent in a specific Revolt channel.server_member_changes: Triggers when members join or leave a Revolt server.
Next steps
- Claude Code, Cursor, Codex and ChatGPT: connect each client to your portal and use Stoat there
- Tool permissions: tool filters and what employees see
- Stoat on metorial.com: the integration overview