MetorialDocs

Set up Gist in Metorial for Claude, ChatGPT and Cursor

Share Gist with your team in Claude, ChatGPT and Cursor through Metorial: OAuth or API key sign-in, 32 tools (14 read-only).

To give your team Gist in Claude, ChatGPT, Cursor and other AI clients, an admin shares the Gist integration in a Metorial portal, and each person signs in to Gist with their own account. Agents can manage Gist workspace contacts, conversations, marketing subscriptions, knowledge base articles, teams, and commerce data. The integration has 32 tools, 14 read-only, 17 write and 1 destructive, plus 4 triggers.

What you'll learn

  • How an admin shares Gist in a portal and how each person connects
  • The 11 OAuth scopes Gist can request, and what each one allows
  • How to keep the 14 read-only tools and reject the other 18

Before you start

Sign-in methods

MethodTypeWhat a person provides
API KeyAPI tokentoken
OAuth (default)OAuthSigns in to Gist

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

API Key

To connect, a person enters:

  • token: Your Gist API key from Settings > API > API Key

OAuth

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

ScopeNameWhat it allows
read_contactRead ContactList and view a single contact
write_contactWrite ContactCreate or update a single contact
read_bulk_contactsRead Bulk ContactsList and view all contacts
write_bulk_contactsWrite Bulk ContactsCreate or update batch of contacts
read_conversationsRead ConversationsList and view conversation details
write_conversationsWrite ConversationsCreate or update conversation details
read_eventsRead EventsList and view events
read_tagsRead TagsList and view tags
write_tagsWrite TagsCreate or update tags
read_teamsRead TeamsList and view teams
read_teammatesRead TeammatesList and view teammates

Use your own Gist OAuth app

With your own OAuth app, people see your company's name on the Gist 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 Gist and copy the Redirect URI.

Register the app with Gist

Create an OAuth app or client in Gist 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 Gist integration.

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

Limit the tools

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

Choose who gets it

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

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

Employee: connect Gist

In the portal

Open Gist in the catalog

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

Authenticate

Under Quick setup, select Authenticate. A Gist 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 gist
metorial setup <catalog-item-id>

catalog search prints the catalog item ID. metorial setup uses OAuth. To connect with API Key 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 Gist 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 gist
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 14 read-only tools, such as list_teams and get_article, and lose the 17 write tools, such as manage_cart or manage_form, and the destructive tool delete_contact.

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

metorial tools lists the 32 tools, minus any you rejected. list_events takes no input. It lists all tracked event types in your Gist workspace.

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

Tools

Read-only tools (14)

  • get_contact: Retrieve a single contact from Gist by their ID, email address, or user ID.
  • get_conversation: Retrieve a single conversation by ID, including its messages. Needs conversationId.
  • list_articles: List or search knowledge base articles.
  • get_conversation_counts: Get conversation counts globally, per team, or per teammate. Needs scope.
  • list_events: List all tracked event types in your Gist workspace.
  • list_contacts: List and filter contacts in your Gist workspace.
  • list_campaigns: List drip email campaigns in your Gist workspace with their performance metrics including open rate, click rate, and subscriber counts.
  • search_conversations: Search and filter conversations in Gist.
  • list_teams: List all teams and teammates in your Gist workspace.
  • list_segments: List all contact segments in your Gist workspace.
  • list_conversation_messages: Read a page of conversation messages with optional internal notes.
  • get_batch_import_status: Check a batch_import_contacts job and inspect completed import errors.
  • get_article: Retrieve a knowledge base article, including its language translations, author details, content, collection IDs, and statistics.
  • get_workspace: Identify the Gist workspace authorized by this connection and inspect the token scopes and metadata.

Write tools (17)

  • manage_tags: Create, delete, or list tags. Needs action.
  • create_or_update_contact: Create a new contact or update an existing one in Gist.
  • create_conversation: Start a new conversation in Gist with a contact. Needs contactId and body.
  • manage_article: Create, update, or delete a knowledge base article in Gist. Needs action.
  • batch_import_contacts: Import multiple contacts at once into Gist. Needs contacts.
  • reply_to_conversation: Send a reply or add an internal note to a Gist conversation. Needs conversationId and body.
  • track_event: Track a custom event for a contact in Gist. Needs eventName.
  • manage_campaign: Subscribe or unsubscribe a contact from a drip campaign. Needs campaignId and action.
  • manage_conversation: Perform actions on a Gist conversation: assign/unassign, close, snooze/unsnooze, prioritize, or tag/untag. Needs conversationId and action.
  • manage_collection: Create, update, delete, or list knowledge base collections. Needs action.
  • manage_product: Create, update, or retrieve e-commerce products and product variants in Gist. Needs action.
  • manage_form: List forms, view form details and submissions, or subscribe a contact to a form. Needs action.
  • manage_store: Create, update, or list e-commerce store connections in Gist. Needs action.
  • manage_customer: Create, update, or retrieve an e-commerce customer in Gist. Needs action.
  • manage_order: Create or update an e-commerce order in Gist. Needs action.
  • manage_subscription_type: List subscription types, or attach/detach a contact to control which communication categories they receive. Needs action.
  • manage_cart: Create, update, or delete an e-commerce shopping cart in Gist. Needs action.

Destructive tools (1)

  • delete_contact: Permanently delete a contact from Gist by their ID. Needs contactId.

Triggers

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

  • meeting_events: Triggers when a meeting is scheduled, cancelled, or rescheduled.
  • contact_events: Triggers when contact-related events occur: user/lead created or deleted, tagged/untagged, custom attribute updated, email updated, email unsubscribed, lead submitted email, event performed, or form submitted.
  • conversation_events: Triggers when conversation-related events occur: contact initiated conversation, conversation assigned/opened/closed, conversation rated, message from contact, teammate replied, or note added.
  • campaign_events: Triggers when a contact is subscribed to or unsubscribed from a drip campaign.

Next steps