MetorialDocs

Set up Prismic in Metorial for Claude, ChatGPT and Cursor

Share Prismic with your team in Claude, ChatGPT and Cursor through Metorial: content API token or email & password sign-in, 20 tools (9 read-only).

To give your team Prismic in Claude, ChatGPT, Cursor and other AI clients, an admin shares the Prismic integration in a Metorial portal, and each person connects with a content API token. Agents can query, create, and manage structured content in a headless CMS repository. The integration has 20 tools, 9 read-only, 8 write and 3 destructive, plus 3 triggers.

What you'll learn

  • How an admin shares Prismic in a portal and how each person connects
  • What Prismic asks for when you connect, and where to find it
  • How to keep the 9 read-only tools and reject the other 11

Before you start

Sign-in methods

MethodTypeWhat a person provides
Content API Token (default)API tokencontentApiToken
Email & Password (Legacy)Custom credentialsemail, password, writeApiToken and migrationApiToken
Full Access TokensAPI tokencontentApiToken, writeApiToken and migrationApiToken

The portal and metorial setup use Content API Token unless someone picks another method.

Content API Token

To connect, a person enters:

  • contentApiToken: Content API access token (read-only) from Settings > API & Security

Email & Password (Legacy)

To connect, a person enters these values:

  • email: Prismic account email address
  • password: Prismic account password
  • writeApiToken (optional): Write API bearer token from Settings > API & Security > Write APIs tab
  • migrationApiToken (optional): Migration API token from Settings > API & Security

Full Access Tokens

To connect, a person enters these values:

  • contentApiToken: Content API access token (read-only) from Settings > API & Security
  • writeApiToken (optional): Write API bearer token from Settings > API & Security > Write APIs tab
  • migrationApiToken (optional): Migration API token from Settings > API & Security

Setup settings

Whichever method you pick, setup also asks for:

  • repositoryName: The name of your Prismic repository (e.g., "my-repo" from my-repo.prismic.io)

Admin: share Prismic 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 Prismic. Under Auth Method, keep Content API Token or pick another. For how members connect, choose Each person connects so everyone enters their own content API token, or Shared connection to enter one content API token for everyone.

Limit the tools

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

Choose who gets it

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

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

Employee: connect Prismic

In the portal

Open Prismic in the catalog

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

Authenticate

Under Quick setup, select Authenticate. In the setup window, enter your content API token (contentApiToken).

Confirm

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

With the CLI

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

catalog search prints the catalog item ID. metorial setup uses Content API Token. To connect with Email & Password (Legacy) 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 Prismic 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 prismic
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 9 read-only tools, such as list_assets and get_document, and lose the 8 write tools, such as update_asset or upload_asset, and the 3 destructive tools, such as delete_asset or delete_custom_type.

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

metorial tools lists the 20 tools, minus any you rejected. list_custom_types takes no input. It lists all custom types defined in the Prismic repository.

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

Tools

Read-only tools (9)

  • get_document: Retrieve a single document by its ID or by its UID and type.
  • list_custom_types: List all custom types defined in the Prismic repository.
  • list_assets: List and search assets in the Prismic media library.
  • query_documents: Search and retrieve published documents from the Prismic repository using filters, predicates, and sorting.
  • get_repository_info: Retrieve metadata about the Prismic repository, including available content types, tags, languages, refs (versions), and bookmarks.
  • list_shared_slices: List all shared slices in the Prismic repository.
  • get_custom_type: Retrieve a specific custom type by its ID, including its full JSON schema definition. Needs typeId.
  • get_shared_slice: Read one exact shared-slice model.
  • download_asset: Prepare the exact media-library asset for download using its provider URL.

Write tools (8)

  • create_custom_type: Create a new custom type in the Prismic repository with the specified schema. Needs typeId, label, repeatable and json.
  • update_asset: Update metadata for an existing asset in the Prismic media library, such as alt text, notes, credits, or tags. Needs assetId.
  • upload_asset: Upload a new asset to the Prismic media library from a public URL. Needs url and filename.
  • create_migration_document: Create a new document via the Migration API. Needs title, type and data.
  • update_custom_type: Update an existing custom type's schema, label, or status in the Prismic repository. Needs typeId, label, repeatable, status and json.
  • update_migration_document: Update an existing document via the Migration API. Needs documentId, title, type and data.
  • create_shared_slice: Create a new shared slice in the Prismic repository. Needs sliceId, type, name and variations.
  • update_shared_slice: Update an existing shared slice's definition, including its variations and field schemas. Needs sliceId, type, name and variations.

Destructive tools (3)

  • delete_shared_slice: Delete a shared slice from the Prismic repository. Needs sliceId.
  • delete_asset: Delete an asset from the Prismic media library. Needs assetId.
  • delete_custom_type: Delete a custom type from the Prismic repository. Needs typeId.

Triggers

Prismic has 3 triggers, which fire on events in Prismic:

  • tag_changes: Triggers when a tag is added or removed from the Prismic repository.
  • release_changes: Triggers when a release is created, updated, or deleted in the Prismic repository.
  • document_changes: Triggers when documents are published or unpublished in the Prismic repository.

Next steps