MetorialDocs

Set up Twitch in Metorial for Claude, ChatGPT and Cursor

Share Twitch with your team in Claude, ChatGPT and Cursor through Metorial: OAuth or access token sign-in, 19 tools (7 read-only).

To give your team Twitch in Claude, ChatGPT, Cursor and other AI clients, an admin shares the Twitch integration in a Metorial portal, and each person signs in to Twitch with their own account. Agents can discover Twitch users, channels, streams, clips and videos. The integration has 19 tools, 7 read-only, 11 write and 1 destructive, plus 4 triggers.

What you'll learn

  • How an admin shares Twitch in a portal and how each person connects
  • The 50 OAuth scopes Twitch can request, and what each one allows
  • How to keep the 7 read-only tools and reject the other 12

Before you start

Sign-in methods

MethodTypeWhat a person provides
Twitch OAuth (default)OAuthSigns in to Twitch
Access TokenAPI tokentoken and clientId

The portal and metorial setup use Twitch OAuth unless someone picks another method.

Twitch OAuth

People sign in to Twitch and approve the scopes you allow. The integration can request:

ScopeNameWhat it allows
analytics:read:extensionsExtension AnalyticsView analytics data for your extensions
analytics:read:gamesGame AnalyticsView analytics data for your games
bits:readRead BitsView Bits information for a channel
channel:manage:broadcastManage BroadcastManage a channel's broadcast configuration (title, game, etc.)
channel:manage:scheduleManage ScheduleManage a channel's stream schedule
channel:manage:videosManage VideosManage a channel's videos (delete)
channel:manage:raidsManage RaidsManage a channel's raids
channel:manage:adsManage AdsManage ads schedule on a channel
channel:edit:commercialRun CommercialRun commercials on a channel
channel:read:subscriptionsRead SubscriptionsView a channel's subscribers
channel:read:editorsRead EditorsView a channel's editors
channel:read:goalsRead GoalsView a channel's goals
channel:read:hype_trainRead Hype TrainView Hype Train events
channel:read:pollsRead PollsView a channel's polls
channel:read:predictionsRead PredictionsView a channel's predictions
channel:read:charityRead CharityView charity campaign details
channel:read:adsRead AdsRead the ads schedule and details
channel:read:vipsRead VIPsView a channel's VIPs
channel:read:redemptionsRead RedemptionsView Channel Points rewards and redemptions
channel:manage:redemptionsManage RedemptionsManage Channel Points rewards and redemptions
user:read:chatRead ChatRead chat messages
user:write:chatWrite ChatSend chat messages
channel:botChannel BotAppear in channel's chat as a bot
user:botUser BotAppear in chat as a bot user
clips:editCreate ClipsCreate clips on a channel
channel:manage:clipsManage ClipsManage clips on a channel
channel:moderateChannel ModeratePerform moderation actions in a channel
moderation:readRead ModerationView moderation data
moderator:manage:banned_usersManage BansBan and unban users
moderator:manage:automodManage AutoModManage AutoMod settings
moderator:manage:chat_messagesManage Chat MessagesDelete chat messages
moderator:manage:blocked_termsManage Blocked TermsManage blocked terms
moderator:manage:chat_settingsManage Chat SettingsManage chat settings
moderator:read:chattersRead ChattersView the chatters list
moderator:read:followersRead FollowersView follower list
moderator:manage:shield_modeManage Shield ModeManage Shield Mode
moderator:manage:shoutoutsManage ShoutoutsManage shoutouts
moderator:manage:warningsManage WarningsManage user warnings
moderator:read:suspicious_usersRead Suspicious UsersView suspicious users
channel:manage:pollsManage PollsCreate and manage polls
channel:manage:predictionsManage PredictionsCreate and manage predictions
user:editEdit UserManage a user account
user:read:emailRead EmailView user email address
user:read:followsRead FollowsView user follows
user:read:subscriptionsRead User SubscriptionsView user subscriptions
user:read:blocked_usersRead Blocked UsersView blocked users list
user:manage:blocked_usersManage Blocked UsersBlock and unblock users
user:read:emotesRead EmotesView user emotes
user:manage:whispersManage WhispersSend whisper messages
openidOpenID ConnectUse OIDC to verify user identity

Access Token

To connect, a person enters these values:

  • token: Twitch OAuth access token
  • clientId: Twitch application Client ID

Setup settings

Whichever method you pick, setup also asks for:

  • broadcasterId (optional): Default broadcaster user ID to use for channel-specific operations

Use your own Twitch OAuth app

With your own OAuth app, people see your company's name on the Twitch consent screen, and the client ID and secret belong to you.

Start the credentials in Metorial

In the dashboard, select Settings, then Organization Settings. Under Integrations and MCP, select Provider Auth, then Create Auth Credentials. Choose Twitch and copy the Redirect URI.

Register the app with Twitch

Create an OAuth app or client in Twitch and add the redirect URI from Metorial as its redirect or callback URL.

Finish in Metorial

Copy the app's client ID and client secret. Back in Metorial, enter a Name, the Client ID and the Client Secret, review Scopes, and select Create. Then pick these credentials for the Twitch integration.

Admin: share Twitch 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 Twitch. Under Auth Method, keep Twitch OAuth or pick another. For how members connect, choose Each person connects, so everyone signs in to Twitch as themselves.

Limit the tools

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

Choose who gets it

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

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

Employee: connect Twitch

In the portal

Open Twitch in the catalog

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

Authenticate

Under Quick setup, select Authenticate. A Twitch sign-in tab opens. Sign in and approve the permissions listed.

Confirm

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

With the CLI

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

catalog search prints the catalog item ID. metorial setup uses Twitch OAuth. To connect with Access 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 Twitch 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 twitch
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 7 read-only tools, such as search and get_videos, and lose the 11 write tools, such as manage_clips or manage_polls, and the destructive tool manage_moderation.

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 twitch
metorial tools <integration-id>
metorial call <integration-id> get_user_info -d '{}'

metorial tools lists the 19 tools, minus any you rejected. get_user_info takes no input. It retrieves Twitch user profiles by user ID or login name.

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

Tools

Read-only tools (7)

  • get_followers_subscribers: Retrieve a channel's follower list, subscriber list, or check a specific user's follow/subscription status. Needs broadcasterId and type.
  • get_streams: Retrieve information about active live streams.
  • get_channel_info: Retrieve channel details including stream title, game/category, language, tags, and content labels. Needs broadcasterIds.
  • get_videos: Retrieve VODs, highlights, and past broadcasts from Twitch.
  • get_user_info: Retrieve Twitch user profiles by user ID or login name.
  • search: Search for channels or game/category on Twitch. Needs query and type.
  • download_clip: Download an exact clip as a landscape or portrait MP4 file.

Write tools (11)

  • manage_roles: View, add, or remove moderator and VIP roles on a channel. Needs broadcasterId, role and action.
  • manage_channel_points: Create, update, delete, and view custom Channel Points rewards. Needs broadcasterId and action.
  • manage_predictions: Create, resolve, lock, cancel, or view Channel Points predictions. Needs broadcasterId and action.
  • send_chat_message: Send a chat message to a Twitch channel. Needs broadcasterId and message.
  • send_shoutout: Send a shoutout to another broadcaster. Needs fromBroadcasterId and toBroadcasterId.
  • start_commercial: Start a commercial (ad break) on a channel. Needs broadcasterId and lengthSeconds.
  • manage_clips: Create clips from live streams or retrieve existing clips. Needs action.
  • manage_raids: Start or cancel a raid to another channel. Needs fromBroadcasterId and action.
  • manage_chat_settings: View and update chat settings for a channel. Needs broadcasterId and action.
  • manage_polls: Create, end, or view polls on a channel. Needs broadcasterId and action.
  • update_channel: Update a channel's broadcast configuration. Needs broadcasterId.

Destructive tools (1)

  • manage_moderation: Perform moderation actions on a channel: ban/unban users, timeout users, delete messages, and manage Shield Mode. Needs broadcasterId and action.

Triggers

Twitch has 4 triggers, which fire on events in Twitch:

  • inbound_webhook
  • stream_status: Triggers when a monitored channel goes live or offline.
  • channel_update: Triggers when a channel's title, game/category, language, or other properties change.
  • new_follower: Triggers when the authenticated broadcaster gains a new follower.

Next steps