> ## Documentation Index
> Fetch the complete documentation index at: https://docs.incident.io/llms.txt
> Use this file to discover all available pages before exploring further.

# LaunchDarkly

> See which feature flag changed before an incident started, and who changed it.

Connect LaunchDarkly as a [connector](https://docs.incident.io/nexus/extensions/connectors.md) to let incident.io's agents check feature flags, their targeting, and recent flag changes, so an investigation can spot a flag flipped just before things broke.

LaunchDarkly offers two ways in:

* **[MCP server](#connect-the-mcp-server)** Recommended: LaunchDarkly maintains the tools, and you sign in with OAuth.
* **[HTTP API](#connect-the-http-api)**: use this when you want to choose exactly which API operations agents can call, or to connect with an access token.

**What you'll need:**

* A LaunchDarkly account with access to the projects you want agents to reach.
* The **Manage Nexus sources** permission in incident.io.

## Connect the MCP server

LaunchDarkly's [hosted MCP server](https://launchdarkly.com/docs/home/getting-started/mcp-hosted) signs in with OAuth, so calls run with the access of the LaunchDarkly user who connects it.

1. From [Extensions](https://app.incident.io/~/nexus/extensions), add a connector and choose **MCP server**.
2. Leave network access as **Public internet**, and give the connector a display name such as `LaunchDarkly`.
3. Enter `https://mcp.launchdarkly.com/mcp` as the server URL, and click **Check URL**.
4. Under **Authentication**, choose **OAuth**, click **Connect with OAuth** and sign in to LaunchDarkly.
5. Review which tools are enabled and the connector's [default policy](https://docs.incident.io/nexus/extensions/connectors.md#default-policy), then save.

> [!TIP]
>
> Add `?writes=none` to the server URL to keep agents to tools that only read. LaunchDarkly recommends it for read-only
> work, alongside a limited role.

> [!NOTE]
>
> The hosted MCP server isn't available on LaunchDarkly's EU or federal instances. Connect the HTTP API there instead.

## Connect the HTTP API

### Create an access token

1. In LaunchDarkly, open **Organization settings** from the gear icon, go to **Authorization**, and click **Create token** on the **Tokens** tab.
2. Give the token a name, and the **Reader** role so agents can only read.
3. Click **Save token**, and copy it. It's only shown once.

### Connect it in incident.io

LaunchDarkly expects the token itself as the `Authorization` header, with no `Bearer` in front, so you send it as a fixed header.

1. From [Extensions](https://app.incident.io/~/nexus/extensions), add a connector and choose **HTTP API**.
2. Paste LaunchDarkly's [OpenAPI document](https://app.launchdarkly.com/api/v2/openapi.json). It describes the whole API, so you may want to trim it to the operations agents need.
3. Enter `https://app.launchdarkly.com` as the base URL. Use `https://app.eu.launchdarkly.com` or `https://app.launchdarkly.us` for the EU or federal instances.
4. Under authentication, choose **No authentication** and add a header named `Authorization` with your access token as its value.
5. Test the connection, review which operations are enabled and the connector's [default policy](https://docs.incident.io/nexus/extensions/connectors.md#default-policy), then save.

See [Connectors](https://docs.incident.io/nexus/extensions/connectors.md#permissions) for how to control which tools agents can call, and from where.

## Pair it with a skill

Agents work best with a connector when it's paired with a [skill](https://docs.incident.io/nexus/extensions/plugins.md). For LaunchDarkly, say which projects and environments map to which services, which flags are kill switches, and which flag changes are routine.
