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.

  • Apply agent config approval

    Apply an already-approved AgentControl Config approval request. Call it only after the request's reviewStatus is approved; it never approves. If reviewStatus is declined or pending, do not apply: report it to the user. A result with scheduled: true is not live until executionDate. Arguments: id and confirm: true, plus an optional comment; nothing else. Unlike get-agent-config-approvals, it takes no projectKey, configKey, or env.

  • Apply approval request

    Apply an already-approved flag or segment approval request without approving it. Call it only after the request's reviewStatus is approved; it never approves. If reviewStatus is declined or pending, do not apply: report it to the user. A result with scheduled: true is not live until executionDate. Arguments: projectKey, id, and confirm: true, plus an optional comment; nothing else. Unlike get-approval-requests, it takes no env, flagKey, or segmentKey.

  • Copy flag config

    Copy a flag's targeting configuration from one environment to another. This overwrites selected target-environment configuration.

  • Create flag release

    Start a flag release: release a flag across environments by a flag release plan (kind "plan") or a list of environments (kind "custom"). In an interactive run, confirm the project, the flag, and the plan or each environment's release with the user before you send confirm: true. When you picked the project because the user named none, name it and wait for their reply first. With kind "plan", flagReleasePlanKey names the plan (from get-flag-release-plans; default: true unless the user picks another). Prefer kind "custom" when the project has no flag release plan or none fits the request; otherwise use a plan. With kind "custom", environments lists each environment in release order. Use only immediate and policy environments. An immediate environment is only environmentKey (releaseType is never immediate). releaseType "policy" releases with the environment's default release plan, or the plan environmentReleasePlanKey names. override exists for parity with create-automated-rollout-config, but a flag release does not use it. Never make up stages, percentages, or waits: ask the user. With releaseType "policy", the environment release plan sets how the environment ramps, so tell the user when durations they asked for will not apply. waitBeforeReleaseMillis still delays an environment's start after the previous one completes. A multi-variate flag needs startingVariationId and endingVariationId (variation _ids); a boolean flag omits both (false to true). Send pullRequest (repoFullName as owner/name, and number) for a pull request's release. A webhook environment then waits for a deploy that includes the merge. Without a pull request, it starts on the next deploy signal for that environment. Returns config_id and the release as read back; manage it with the *-automated-rollout-config tools. Report all returned warnings; an environment with one is not a clean release. Examples: - plan, boolean flag, no pull request: {"projectKey":"default","flagKey":"new-checkout","flagReleasePlanKey":"standard","confirm":true} - plan, multi-variate flag: {"projectKey":"default","flagKey":"theme","flagReleasePlanKey":"standard","startingVariationId":"<from _id>","endingVariationId":"<to _id>","confirm":true} - custom, staging immediate, then production by its default release plan: {"projectKey":"default","flagKey":"new-checkout","environments":[{"environmentKey":"staging"},{"environmentKey":"production","releaseType":"policy"}],"confirm":true}

  • Link view resources

    Link flags, segments, or AgentControl Configs to a view. Views are an Enterprise feature. IDENTIFYING RESOURCES: - flags / aiConfigs: pass `keys` - segments: pass `segmentIdentifiers` ({environmentId, segmentKey} pairs — segments are environment-scoped) - any type: pass `filter` to link everything matching a list-endpoint filter expression (flags use comma-separated field:value filters, segments use queryfilter syntax; `environmentId` is required with a segments filter). Keys and filter combine as a union. Up to 100 keys or segmentIdentifiers per call, batched automatically at 20 per API request; split longer lists into several calls. The response aggregates successCount/failureCount across batches and lists any resources that failed to link.

  • Save and start experiment iteration

    Stop the running iteration, create a new draft with supplied field updates, and start it. Timestamps in the result are UTC.

  • Start experiment iteration

    Start an experiment iteration and allocate live end-user traffic. Requires explicit user confirmation and must not automatically follow creation or update. Timestamps in the result are UTC.

  • Start guarded rollout

    Before calling this tool, call load-skill for the `feature-flags/launchdarkly-guarded-rollout` guide without asking the user, since loading is read-only; it covers stage design and metric choice, which this tool does not validate. Start a guarded rollout on an enabled flag. Omit ruleId to use the default rule, or set ruleId to an existing targeting rule's _id. Each metric needs key; set isGroup for a metric group and autoRollback on an individual metric to roll back when it regresses. Do not send regressionThreshold or onRegression: LaunchDarkly rolls back on any regression it is statistically confident about. autoRollback cannot be set on a metric group. updateDefaultRuleOnCompletion is only for a rule target: completing the rollout deletes that rule and serves the test variation from the default rule. Stage weights are integer basis points and cannot exceed 50000 (50%). Success is returned only when LaunchDarkly's response shows an active measured rollout on that same target, and the result's target is {kind: fallthrough} or {kind: rule, ruleId}. Approval-required environments return instructions for create-approval-request.

  • Stop experiment iteration

    Stop the currently running experiment iteration with a required winning treatment. Timestamps in the result are UTC.

  • Stop guarded rollout

    Stop an active guarded rollout. Omit ruleId to stop the rollout on the default rule, or set ruleId to stop the rollout on that targeting rule. The tool finds the active release itself and stops it through the environment-releases API. outcome rollBack serves the control variation and rollForward serves the test variation; omit outcome to roll back. A rollForward stop can fail if that phase has already ended. Success is returned only when the flag read-back shows the rollout is gone. The result includes target, outcome, and releaseId. Approval-required environments return instructions for create-approval-request.

  • Toggle alert

    Enable or disable an observability alert without changing its configuration. Use this to silence a noisy alert during an incident or maintenance window, and to turn it back on afterwards. The alert's query, threshold, and destinations are untouched. Set disabledUntil to mute it for a window: it re-enables itself then. Mute windows are off for most projects; when the backend rejects one, the alert is not changed and you can disable it without disabledUntil instead. Takes alertId (from get-alerts) and enabled (true enables, false disables); disabledUntil (ISO 8601 or now+2h) works with enabled false. Returns alert_id, enabled, updated (true once reading the alert back shows the new state) and disabled_until. Example - mute alert 42 for two hours: {"projectKey": "default", "alertId": 42, "enabled": false, "disabledUntil": "now+2h"}

  • Toggle flag

    Turn a feature flag's targeting on or off in a specific environment.

  • Unlink view resources

    Unlink flags, segments, or AgentControl Configs from a view. Views are an Enterprise feature. Requires confirm=true, which approves the unlink. Unlinking never deletes flags, segments, or AgentControl Configs; only their link to the view is removed. IDENTIFYING RESOURCES: - flags / aiConfigs: pass `keys` - segments: pass `segmentIdentifiers` ({environmentId, segmentKey} pairs) - any type: pass `filter` to unlink everything matching a list-endpoint filter expression (`environmentId` is required with a segments filter). Keys and filter combine as a union. Up to 100 keys or segmentIdentifiers per call, batched automatically at 20 per API request; split longer lists into several calls. The response aggregates successCount/failureCount across batches and lists any resources that failed to unlink.

  • Update agent config

    Update an AgentControl Config. resource is required and picks what changes. resource=config: name, description, tags, defaultVariationKey (the variation new environments serve by default; existing environments keep their fallthrough, so change those with resource=targeting), evaluationMetricKey, isInverted, or maintainer (maintainerId or maintainerTeamKey, not both; an empty string removes it). Configs cannot be archived. resource=variation: one variation's name (variationName), model, prompts, tools, or skills, by variationKey. resource=targeting: one environment's targeting, in a single write: on turns targeting on or off; fallthrough sets the default for contexts no rule matches ({"variationKey":"candidate"} serves one variation, {"weights":[{"variationKey":"a","percent":50},{"variationKey":"b","percent":50}]} splits traffic); targetingInstructions changes rules and individual targets with kinds addRule, removeRule, reorderRules, replaceRules, updateRuleDescription, addClauses, removeClauses, addValuesToClause, removeValuesFromClause, updateClause, addTargets, removeTargets, clearTargets, and replaceTargets; rule kinds take ruleId, each kind takes variationKey where it serves a variation, and addTargets and removeTargets also require contextKind (for example user) and values. variation and targeting require confirm=true.

  • Update agent graph

    Update AgentControl graph metadata or replace its structure. Timestamps in the result are UTC.

  • Update agent skill

    Update an AgentControl agent skill. Requires confirm=true. A markdown, name, or description change creates a new version; tags and maintainer changes do not, and tags replace the current tags; set maintainerId or maintainerTeamKey, not both. Variations stay pinned to the version they attached. To move them, set moveVariations: without targets it moves every variation in section references to the latest version (or toVersion), keeping their other skills. A config that requires approval gets an approval request instead (status approval_requested); each target's status is in moveVariations.results.

  • Update ai model config

    Update an AI model config. Requires confirm=true. modelConfigKey is the key, not the id: for example OpenAI.gpt-4o for a global model, or the key a custom model was created with, which often has no provider prefix (for example gpt-image-2-custom). Pass the model key the user gives as modelConfigKey without asking or looking it up first. restricted=true stops variations from selecting the model and works on global models; restricted=false allows it again. The other fields change only custom models (global=false); params, customParams, and tags replace the current values. provider and id cannot change: create a new model config instead. If restricting fails because the key is in use, move those variations to another modelConfigKey, then retry.

  • Update ai tool

    Update an AI tool definition's description or schema. It can also set tags, which are replaced, not merged, and customParameters. Requires confirm=true.

  • Update alert

    Update an observability alert. Only the fields you pass change; destinations, when passed, replace the whole list. To keep a webhook destination, pass it as get-alerts returned it; its masked URL is restored to the stored one. Sessions and Errors alerts keep Count and their grouping, and a per-session Sessions alert keeps its fixed threshold, window and cooldown; notes says when an input was overridden. Use toggle-alert to enable or disable an alert. Returns alert_updated, alert_id, alert_url, and the updated configuration.

  • Update assignment data source

    Replace fields on a custom assignment data source, or archive it with archived: true. Each provided field replaces the stored value; columnMappings and tags are replaced whole. Changing the table, view, query, or column mappings makes LaunchDarkly re-run the source against the warehouse.

Page 1 / 3Next