MetorialDocs

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

Sign-in methods

MethodTypeWhat a person provides
Session Token (default)API tokentoken
Bot TokenAPI tokentoken

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:

metorial-admin portals access list <portal-id> --type provider_template --search stoat

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

metorial catalog search stoat
metorial setup <catalog-item-id>

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.

metorial list stoat
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 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 list stoat
metorial tools <integration-id>
metorial call <integration-id> fetch_user -d '{"userId":"<user-id>"}'

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. Needs serverId.
  • fetch_messages: Fetch messages from a Stoat channel. Needs channelId.
  • fetch_invite: Fetch details about a Stoat invite by its code. Needs inviteCode.
  • fetch_user: Fetch a Stoat user's profile information including username, display name, status, badges, and profile content. Needs userId.
  • fetch_server_emoji: List all custom emoji for a Stoat server. Needs serverId.
  • fetch_webhooks: List all webhooks for a Stoat channel. Needs channelId.
  • fetch_channel: Fetch details about a Stoat channel including its type, name, description, and other properties. Needs channelId.
  • search_messages: Search for messages in a Stoat channel using a full-text search query. Needs channelId and query.
  • fetch_server_invites: List all active invites for a Stoat server. Needs serverId.
  • fetch_members: Fetch members of a Stoat server. Needs serverId.
  • 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. Needs channelId, messageId and action.
  • create_server: Create a new Stoat server with a name and optional description. Needs name.
  • edit_member: Edit a server member's properties including nickname, roles, avatar, and timeout. Needs serverId and userId.
  • edit_message: Edit an existing message in a Stoat channel. Needs channelId and messageId.
  • create_channel: Create a new text or voice channel within a Stoat server, or create a group DM with specified users. Needs name.
  • edit_role: Edit a role's properties in a Stoat server including name, colour, and hoist status. Needs serverId and roleId.
  • create_role: Create a new role in a Stoat server. Needs serverId and name.
  • edit_channel: Edit a Stoat channel's settings. Needs channelId.
  • send_message: Send a message to a Stoat channel. Needs channelId.
  • open_dm: Open a direct message channel with a user. Needs userId.
  • execute_webhook: Send a message through a Stoat webhook. Needs webhookId and webhookToken.
  • edit_server: Edit a Stoat server's settings including name, description, icon, banner, discoverability, and analytics. Needs serverId.
  • create_invite: Create an invite link for a Stoat channel. Needs channelId.
  • pin_message: Pin or unpin a message in a Stoat channel. Needs channelId, messageId and action.
  • create_webhook: Create a new webhook for a Stoat channel. Needs channelId and name.
  • 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. Needs channelId and messageIds.
  • delete_server: Delete a server you own or leave a server you're a member of. Needs serverId.
  • delete_emoji: Delete a custom emoji from a Stoat server. Needs emojiId.
  • delete_invite: Delete a Stoat invite by its code. Needs inviteCode.
  • manage_ban: Ban or unban a user from a Stoat server. Needs serverId and action.
  • kick_member: Kick a member from a Stoat server. Needs serverId and userId.
  • delete_role: Delete a role from a Stoat server. Needs serverId and roleId.
  • delete_channel: Delete a server channel or leave a group DM / direct message channel. Needs channelId.
  • 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_webhook
  • channel_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