Developer Tools

LaunchDarkly MCP

LaunchDarkly MCP lets agents manage feature flags, segments, experiments, releases, AI configs and observability data (logs, traces, errors, sessions) through LaunchDarkly's hosted MCP server.

Tools

This is a reference catalogue. Tools cannot be configured or run from this page.

  • Get flag release plans

    Get flag release plans, reusable templates that say how a flag is released across a project's environments. Beta API. Without flagReleasePlanKey: a page in creation order with totalCount. With flagReleasePlanKey: one plan with its environments (environmentKey, triggerType, environmentReleasePlanKey or isImmediate), executionMode, applicationKeys, maintainer, default, and version. A maintainer reads as {kind: member, memberId, email} or {kind: team, key, name}; to send a team maintainer to update-flag-release-plan, use {kind: team, teamKey: <key>}. The plan with default: true is the project's default, suggested first when starting a release. A project with no stored plans has no default; create a plan with default: true. Flag release plans are project-wide; environment release plans (get-environment-release-plans) are the per-environment rollout recipes they point to.

  • Get flags

    Without flagKey: search and browse feature flags; returns a paginated summary per flag (key, name, kind, tags, temporary, archived, deprecated, maintainer, and whether targeting is on) in one environment. Set includeDescription to also return each flag's description. Always set env to the environment the user named, as its environment key, not its display name; get-projects with projectKey lists the project's environment keys. A name, a key in the wrong case, or a short or long form such as prod for production is accepted when it matches exactly one environment, and the result then reports the resolved environmentKey. With flagKey: get one flag scoped to env, with the full targeting tree (rules, individual targets, fallthrough, prerequisites) and variations. Each rule and each clause carries an `_id`; pass them as ruleId and clauseId to update-targeting-rules (addValuesToClause, removeValuesFromClause, updateClause) or create-approval-request to edit a clause in place. A flagKey that does not exist returns a not-found error that names up to 5 live flags with similar keys; otherwise find the right key with get-flags and a query.

  • Get flag scheduled changes

    List the scheduled changes on one flag in one environment: targeting changes LaunchDarkly will apply automatically at a future executionDate, such as turning the flag on or off, changing the default rule, or editing rules and targets. Requires projectKey, flagKey, and env. Returns items sorted by executionDate, earliest first, each with id, executionDate, creationDate, maintainerId, version, and the semantic-patch instructions that will run (variationId values resolve against the flag's variations from get-flags), plus conflicts when the change collides with another scheduled change. Use it to answer what will happen to a flag and when, and before changing targeting or removing a flag, because a pending change can re-enable or alter it later. Expiring individual targets are separate; see update-expiring-targets with action list. Timestamps in the result are UTC.

  • Get flag status across envs

    Check whether a flag is still evaluated, and where: its lifecycle status (new, active, inactive or launched) and when it was last evaluated. Without env, it covers the project's critical environments when the project has any (the result then has criticalEnvironmentsOnly=true), otherwise every environment. Set allEnvs=true for every environment, for example before cleanup to verify the flag is inactive everywhere. Each environment's `default` is the fallback value the SDK passed when it evaluated the flag, not the value the flag serves; use get-flags with flagKey and env to see what an environment serves. When the flag does not exist (already deleted or never created), it returns {exists: false} instead of an error. Call it when search-flag-evaluations finds no evaluations: those come only from the observability plugin, so an empty result does not mean the flag is unused.

  • Get flag unique context exposures

    Get distinct context counts for a flag and environment, broken down by context kind. These are unique exposures, not total SDK evaluations. Omit from and to for the last 30 days. Pass the environment key. A display name, a key in the wrong case, or a short or long form such as prod for production is accepted when it matches exactly one environment, and the result then reports the resolved environmentKey; an unknown environment returns an error listing the project's environment keys. Timestamps in the result are UTC.

  • Get holdouts

    Holdouts keep a percentage of traffic out of a group of experiments to measure their combined impact. They are scoped to one environment. Without holdoutKey or holdoutId: list the environment's holdouts (limit, offset); each has id, key, name, status, and the keys and names of the experiments in it. With holdoutKey, or with holdoutId (the value get-experiments and create-experiment use): get one holdout with its status, holdoutAmount, base experiment, and related experiments. Timestamps in the result are UTC.

  • Get incidents

    Read incidents from the incident.io workspace connected to this project, to learn whether one already exists for a problem and what responders found. Without incidentId: list the most recent 250 incidents, filtered by query and status (incident.io has no text search, so older matches are not found). With incidentId: one incident's roles, custom fields, status-update timeline, follow-ups and postmortem. Fails without retry when incident.io is not connected.

  • Get keys

    List observability keys (name, type, count in the window, highest first) for a product type, to pick groupBy, filter and column keys. For metrics these are data point attribute keys; metric names are the values of key=metric_name, with type and unit. To check a key exists, pass its name as search with key unset; compare counts to spot near-misses such as serviceName. Pass key for a known key to list its values by frequency. count_granularity DAY counts whole UTC days (rank only); reserved built-in keys have no count but filter normally.

  • Get layers

    List a project's experiment layers. A layer makes its experiments mutually exclusive: each experiment reserves a percentage of the layer's traffic in an environment, and a context is in at most one of them. Each layer has key, name, description, randomizationUnit, and per environment its reservations (experimentKey, flagKey, reservationPercent) with reservedPercent and availablePercent. Pass experimentKey for the layer that experiment is in, and environmentKey to show only that environment's reservations; with both, only layers where the experiment reserves traffic in that environment are returned. Use it before starting an experiment to check whether its layer has room. Timestamps in the result are UTC.

  • Get member self

    Return the authenticated member's profile and team memberships.

  • Get metric data sources

    Warehouse-native metric data sources: each maps a SQL query, table, or view in a connected warehouse to metric events. Without dataSourceKey: list a project's data sources (environmentKey, integrationKey, archived, includeMetrics). With dataSourceKey: get one data source. With warehouseConnections true: list the warehouse connections bound to the project instead, with the environment each serves. includeMetrics adds the metrics built on each data source.

  • Get metric events

    Metric event keys LaunchDarkly has observed. Without eventKey: list recently observed event keys (query, environmentKey, dataSourceKey, limit up to 50). hasMore true means more keys may exist; narrow the query, since there is no offset. With dataSourceKey and eventKey: check whether that warehouse data source has produced the event. ready false means it has not been seen yet; contextKinds are the analysis units a metric on the event can use.

  • Get metrics

    LaunchDarkly metrics used by experiments and guarded rollouts; for observability metric names in a time window, use get-keys with productType metrics. Without metricKey: list metrics in a project (query, tags, eventKind, isNumeric, hasConnections, maintainerIds, maintainerTeamKey, metricUsedIn, dataSourceKeys, versionIds, sort, limit, offset). With metricKey: get full details for one metric. To find which metric a metric version ID belongs to (experiments reference metrics by version), list with versionIds. Timestamps in the result are UTC.

  • Get playgrounds

    Without playgroundId: list LLM playgrounds in a project (names, variant counts, timestamps); search by name, filter by status, paged by limit and offset. With playgroundId: get one playground including its variants (evaluation definitions and their positions). Timestamps in the result are UTC.

  • Get projects

    Without projectKey: list LaunchDarkly projects in the account; use to discover project keys before calling project-scoped toolruntime. To find the project that holds a service's logs, traces or errors, use find-o11y-project instead of matching project names. query searches name or key (case-insensitive), tags filters (all must match), sort is name or -name. If the user named no project, search once with query and ask the user when no single project clearly matches; do not page. With projectKey: get one project and one page of its environments (the first 20 unless limit and offset are set). environmentTotalCount is the full count; when hasMore is true, pass nextOffset as offset to get the rest, including environments past the first page. Use it to retrieve environments or verify a project exists; each environment says whether it is critical. Set fullSettings to true (projectKey only) to also return every project-level setting under a settings object, such as defaultClientSideAvailability, snippet and view-association requirements, the full naming convention, and lifecycle settings (settings.lifecycle: requireReadyToArchive and the checks and day thresholds that decide whether archive-flag is allowed). Automatic archival and automated cleanup settings are not here; use get-automations with section archival or cleanup. Neither mode returns server-side SDK keys; use get-sdk-key.

  • Get prompt snippets

    Without snippetKey: list reusable prompt snippets in a project (filter, limit, offset). With snippetKey: get one snippet. Timestamps in the result are UTC.

  • Get removal readiness

    Detailed safety check before removing a feature flag in one environment; env is required, so ask which environment when the user hasn't named one. Checks dependencies, code references, active targeting, expiring targets, an active flag release, and the flag's status in that environment, including whether it was ever evaluated. Returns a readiness verdict: 'safe' (proceed), 'caution' (review warnings; a flag that was never evaluated is caution, not blocked, so it can be removed when the requester confirms it is ready), or 'blocked' (must resolve blockers first, for example let an active flag release complete or archive it). Always run this before archive-flag or delete-flag. Pass the environment key. A display name, a key in the wrong case, or a short or long form such as prod for production is accepted when it matches exactly one environment, and the result then reports the resolved environmentKey; an unknown environment returns an error listing the project's environment keys. Timestamps in the result are UTC.

  • Get resource views

    List the views a flag, segment, or AgentControl Config is linked to, answering which views contain a given resource. Views are an Enterprise feature. Flags and AgentControl Configs are identified by key; segments additionally require `environmentId` because segments are environment-scoped. Timestamps in the result are UTC.

  • Get rollout completeness

    Check whether a feature flag is fully rolled out: every traffic-bearing environment serves one variation to all contexts, and a stability gate is met. A flag at 100% never looks inactive, so use this to find flags whose code path is dead and ready for cleanup. Serving is deterministic when targeting is off (off variation) or on with no rules, individual targets, prerequisites, or percentage rollout (fallthrough variation). Traffic-bearing environments have a status other than new and a lastRequested time. The stability gate passes when any environment is launched or the flag is at least stabilityDays old (default 14). Returns isFullyRolledOut, consensusVariation, per-environment results, and blockers. When the flag does not exist (already deleted or never created), it returns {exists: false} instead of an error: for cleanup, that means nothing remains to remove. Timestamps in the result are UTC.

  • Get sdk active

    Check whether any SDKs have been active in a given environment. Returns true if any SDK has initialized or sent events in the environment. Use this to verify that an environment is actually in use before cleanup. Optionally filter by sdkName or sdkWrapperName to check a specific SDK, or purpose="ai" to check for AI SDKs.

PreviousPage 5 / 9Next