Set up Optimizely in Metorial for Claude, ChatGPT and Cursor
Share Optimizely with your team in Claude, ChatGPT and Cursor through Metorial: OAuth or personal access token sign-in, 15 tools (3 read-only).
To give your team Optimizely in Claude, ChatGPT, Cursor and other AI clients, an admin shares the Optimizely integration in a Metorial portal, and each person signs in to Optimizely with their own account. Agents can manage A/B testing experiments, feature flags, and content across Optimizely's digital experience platform. The integration has 15 tools, 3 read-only and 12 write, plus 4 triggers.
What you'll learn
- How an admin shares Optimizely in a portal and how each person connects
- The 1 OAuth scope Optimizely can request, and what each one allows
- How to keep the 3 read-only tools and reject the other 12
Before you start
- A portal with at least one access group
- An account with Optimizely for each person who connects
- For the CLI steps: the Metorial CLI, signed in to your portal
Sign-in methods
| Method | Type | What a person provides |
|---|---|---|
| Personal Access Token | API token | token |
| CMS Client Credentials | Custom credentials | clientId and clientSecret |
| CMP OAuth (default) | OAuth | Signs in to Optimizely |
| ODP API Key | API token | token |
| Experimentation OAuth | OAuth | Signs in to Optimizely |
| Campaign Basic Auth | Custom credentials | username and password |
The portal and metorial setup use CMP OAuth unless someone picks another method.
Personal Access Token
To connect, a person enters:
token: Personal Access Token generated from Optimizely app (Profile > API Access > Generate New Token). Works for Experimentation APIs.
CMS Client Credentials
To connect, a person enters these values:
clientId: CMS API Client ID (found under Settings > API Keys in your CMS instance)clientSecret: CMS API Client Secret
CMP OAuth
People sign in to Optimizely and approve the scopes you allow. The integration can request:
| Scope | Name | What it allows |
|---|---|---|
cmp | CMP Access | Access to Optimizely Content Marketing Platform API |
ODP API Key
To connect, a person enters:
token: ODP API key obtained from the ODP dashboard
Experimentation OAuth
People sign in to Optimizely and approve the scopes you allow. The integration can request:
| Scope | Name | What it allows |
|---|---|---|
all | All Access | Full read and write access to Optimizely Experimentation |
Campaign Basic Auth
To connect, a person enters these values:
username: Campaign API username (found under Administration > API Overview > REST API)password: Campaign API password
Setup settings
Whichever method you pick, setup also asks for:
product: The Optimizely product to connect to One of "experimentation", "cmp", "cms", "campaign", "odp".campaignClientId(optional): Client ID for Campaign REST API (found under Administration > API Overview). Only needed for Campaign product.
Use your own Optimizely OAuth app
With your own OAuth app, people see your company's name on the Optimizely 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 Optimizely and copy the Redirect URI.
Register the app with Optimizely
Create an OAuth app or client in Optimizely 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 Optimizely integration.
Admin: share Optimizely 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 Optimizely. Under Auth Method, keep CMP OAuth or pick another. For how members connect, choose Each person connects, so everyone signs in to Optimizely as themselves.
Limit the tools
Under Tool Filters, set the write and destructive groups to Reject if agents should only read from Optimizely.
Choose who gets it
Add the access groups that should see Optimizely. 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 Optimizely integration. Once it exists, check which groups have it:
Employee: connect Optimizely
In the portal
Open Optimizely in the catalog
Sign in to your portal and open Optimizely. The status reads Available.
Authenticate
Under Quick setup, select Authenticate. An Optimizely 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
catalog search prints the catalog item ID. metorial setup uses CMP OAuth. To connect with Personal 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 Optimizely 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 3 read-only tools, such as list_events and get_current_user, and lose the 12 write tools, such as manage_mailing or manage_project.
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 15 tools, minus any you rejected.
To see every input a tool takes, run metorial schema <integration-id> <tool-key>.
Tools
Read-only tools (3)
get_current_user: Retrieve the connected user profile and available account information for Experimentation, CMP, or Campaign.list_environments: Discover Feature Experimentation environment keys and SDK configuration for a project before retrieving or toggling its flag rulesets.list_events: List the custom, click, and pageview events in an Experimentation project to discover event IDs for experiment metrics.
Write tools (12)
send_odp_event: Send one or more customer events to Optimizely Data Platform (ODP). Needsaction.manage_cmp_campaign: Create, update, retrieve, or list marketing campaigns in Optimizely Content Marketing Platform. Needsaction.manage_recipient_list: Create, retrieve, or list recipient lists and manage recipients in Optimizely Campaign. Needsaction.manage_audience: Create, update, retrieve, or list audiences in Optimizely Experimentation. Needsaction.manage_cmp_task: Create, update, retrieve, delete, or list tasks in Optimizely Content Marketing Platform. Needsaction.manage_feature_flag: Create, update, retrieve, delete, enable, or disable feature flags in Optimizely Feature Experimentation. NeedsactionandprojectId.manage_project: Create, update, retrieve, or list Optimizely Experimentation projects. Needsaction.manage_mailing: Create, update, retrieve, send, copy, or list mailings in Optimizely Campaign. Needsaction.manage_cmp_asset: Retrieve, update, delete, or list assets in the Optimizely Content Marketing Platform library. Needsaction.manage_odp_customer: Retrieve or update customer profiles in Optimizely Data Platform (ODP). Needsaction,identifierFieldandidentifierValue.manage_cms_content: Create, update, retrieve, delete, publish, or list content items in Optimizely CMS (SaaS). Needsaction.manage_experiment: Create, update, retrieve, or delete A/B test experiments in Optimizely Web or Feature Experimentation. Needsaction.
Triggers
Optimizely has 4 triggers, which fire on events in Optimizely:
graph_content_webhook: Receives webhook events from Optimizely Graph when content is updated, expired, or a bulk synchronization completes.cmp_webhook: Receives webhook events from Optimizely Content Marketing Platform including task, campaign, library, publishing, work request, and calendar events.experimentation_webhook: Receives webhook events from Optimizely Feature Experimentation, including datafile updates and configuration changes.campaign_email_webhook: Receives real-time email engagement events from Optimizely Campaign including sends, opens, clicks, bounces, unsubscribes, and spam complaints.
Next steps
- Claude Code, Cursor, Codex and ChatGPT: connect each client to your portal and use Optimizely there
- Create custom OAuth credentials: the Provider Auth screens in more detail
- Tool permissions: tool filters and what employees see
- Optimizely on metorial.com: the integration overview