Set up LaunchDarkly in Metorial for Claude, ChatGPT and Cursor
Share LaunchDarkly with your team in Claude, ChatGPT and Cursor through Metorial: API access token sign-in, 22 tools (14 read-only).
To give your team LaunchDarkly in Claude, ChatGPT, Cursor and other AI clients, an admin shares the LaunchDarkly integration in a Metorial portal, and each person connects with an API access token. Agents can manage LaunchDarkly feature flags, targeting, projects, environments, and segments. The integration has 22 tools, 14 read-only, 4 write and 4 destructive, plus 2 triggers.
What you'll learn
- How an admin shares LaunchDarkly in a portal and how each person connects
- What LaunchDarkly asks for when you connect, and where to find it
- How to keep the 14 read-only tools and reject the other 8
Before you start
- A portal with at least one access group
- An API access token from LaunchDarkly for each person, or one for a shared connection
- For the CLI steps: the Metorial CLI, signed in to your portal
Sign-in method
| Method | Type | What a person provides |
|---|---|---|
| API Access Token | API token | token |
API Access Token
To connect, a person enters:
token: LaunchDarkly API access token (personal or service token)
Setup settings
Setup also asks for:
projectKey(optional): Default LaunchDarkly project key to use when not specified per-requestenvironmentKey(optional): Default LaunchDarkly environment key to use when not specified per-request
Admin: share LaunchDarkly 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 LaunchDarkly. For how members connect, choose Each person connects so everyone enters their own API access token, or Shared connection to enter one API access token for everyone.
Limit the tools
Under Tool Filters, set the write and destructive groups to Reject if agents should only read from LaunchDarkly.
Choose who gets it
Add the access groups that should see LaunchDarkly. 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 LaunchDarkly integration. Once it exists, check which groups have it:
Employee: connect LaunchDarkly
In the portal
Open LaunchDarkly in the catalog
Sign in to your portal and open LaunchDarkly. The status reads Available.
Authenticate
Under Quick setup, select Authenticate. In the setup window, enter your API access token (token).
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.
Add it to your AI client
metorial install adds your LaunchDarkly 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 14 read-only tools, such as get_metric and get_segment, and lose the 4 write tools, such as invite_members or create_feature_flag, and the 4 destructive tools, such as manage_project or manage_segment.
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 22 tools, minus any you rejected. list_members takes no input. It lists account members in your LaunchDarkly organization.
To see every input a tool takes, run metorial schema <integration-id> <tool-key>.
Tools
Read-only tools (14)
list_segments: List user segments in a LaunchDarkly environment.query_audit_log: Search the LaunchDarkly audit log for change history entries.list_environments: List all environments within a LaunchDarkly project.list_members: List account members in your LaunchDarkly organization.list_metrics: List custom metrics defined in a LaunchDarkly project.get_feature_flag: Retrieve detailed information about a specific feature flag, including its variations, targeting rules, and environment-specific configuration. NeedsflagKey.list_projects: List all projects in your LaunchDarkly account.search_contexts: Search for contexts (users, services, machines, etc.) that have encountered feature flags in an environment.list_experiments: List experiments in a LaunchDarkly project and environment.list_feature_flags: List feature flags in a LaunchDarkly project.get_segment: Retrieve one LaunchDarkly segment, including targeting rules, rule and clause IDs, included and excluded context keys, and big-segment metadata.get_current_identity: Identify the API credential currently connected to LaunchDarkly, including its account, token kind, service-token status, scopes, and member profile when available.get_metric: Retrieve a LaunchDarkly metric and its event definition, numeric settings, version, and usage details.get_experiment: Retrieve a LaunchDarkly experiment, including its current iteration and optional treatment, metric, analysis, and previous-iteration details.
Write tools (4)
create_feature_flag: Create a new feature flag in a LaunchDarkly project. NeedsflagKeyandname.invite_members: Invite new members to your LaunchDarkly account. Needsmembers.update_feature_flag: Update a feature flag's configuration using LaunchDarkly's semantic patch. NeedsflagKeyandinstructions.toggle_feature_flag: Quickly turn a feature flag on or off in a specific environment. NeedsflagKeyandenabled.
Destructive tools (4)
manage_environment: Create, update, or delete an environment within a LaunchDarkly project. NeedsactionandenvironmentKey.delete_feature_flag: Permanently delete a feature flag from a project. NeedsflagKey.manage_project: Create a new project or update an existing one in LaunchDarkly. NeedsactionandprojectKey.manage_segment: Create, update, or delete a user segment in a LaunchDarkly environment. NeedsactionandsegmentKey.
Triggers
LaunchDarkly has 2 triggers, which fire on events in LaunchDarkly:
resource_changes: Triggered when changes occur to LaunchDarkly resources (flags, projects, environments, segments, members, etc.).flag_changes: [Polling fallback] Polls the LaunchDarkly audit log for feature flag changes.
Next steps
- Claude Code, Cursor, Codex and ChatGPT: connect each client to your portal and use LaunchDarkly there
- Tool permissions: tool filters and what employees see
- LaunchDarkly on metorial.com: the integration overview