> Documentation index: https://metorial.com/llms.txt. Every page is available as Markdown by adding .md to its URL.

# Set up LaunchDarkly in Metorial for Claude, ChatGPT and Cursor
URL: https://metorial.com/docs/integrations/launchdarkly
Last updated: 2026-11-24

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 will 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](https://metorial.com/docs/platform/workforce/portals) 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](https://metorial.com/docs/platform/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-request
- `environmentKey` (optional): Default LaunchDarkly environment key to use when not specified per-request

## Admin: share LaunchDarkly in a portal

### In the dashboard

1. **Open Shared Resources**

   Open **Workforce**, choose the portal, and select **Shared Resources** under **Access**.

2. **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.

3. **Limit the tools**

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

4. **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:

```bash
metorial-admin portals access list <portal-id> --type provider_template --search launchdarkly
```

## Employee: connect LaunchDarkly

### In the portal

1. **Open LaunchDarkly in the catalog**

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

2. **Authenticate**

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

3. **Confirm**

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

### With the CLI

```bash
metorial catalog search launchdarkly
metorial setup <catalog-item-id>
```

`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.

```bash
metorial list launchdarkly
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 `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](https://metorial.com/docs/platform/guides/tool-permissions).

## Check it worked

```bash
metorial list launchdarkly
metorial tools <integration-id>
metorial call <integration-id> list_members -d '{}'
```

`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. Needs `flagKey`.
- `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. Needs `flagKey` and `name`.
- `invite_members`: Invite new members to your LaunchDarkly account. Needs `members`.
- `update_feature_flag`: Update a feature flag's configuration using LaunchDarkly's semantic patch. Needs `flagKey` and `instructions`.
- `toggle_feature_flag`: Quickly turn a feature flag on or off in a specific environment. Needs `flagKey` and `enabled`.

### Destructive tools (4)

- `manage_environment`: Create, update, or delete an environment within a LaunchDarkly project. Needs `action` and `environmentKey`.
- `delete_feature_flag`: Permanently delete a feature flag from a project. Needs `flagKey`.
- `manage_project`: Create a new project or update an existing one in LaunchDarkly. Needs `action` and `projectKey`.
- `manage_segment`: Create, update, or delete a user segment in a LaunchDarkly environment. Needs `action` and `segmentKey`.

## 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](https://metorial.com/docs/platform/clients/claude-code), [Cursor](https://metorial.com/docs/platform/clients/cursor), [Codex](https://metorial.com/docs/platform/clients/codex) and [ChatGPT](https://metorial.com/docs/platform/clients/chatgpt): connect each client to your portal and use LaunchDarkly there
- [Tool permissions](https://metorial.com/docs/platform/guides/tool-permissions): tool filters and what employees see
- [LaunchDarkly on metorial.com](https://metorial.com/integrations/launchdarkly): the integration overview