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.

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

  • Update automated rollout config

    Modify an automated rollout config that has not started releasing. Pass only what changes: environments, repoFullName, prNumber, or prUrl; omitted fields stay as they are. environments REPLACES the whole ordered plan, so an environment you omit is removed: read the config with get-automated-rollout-config, edit that list, and send it back complete. An environment sent without triggerType keeps its stored trigger_type, including manual and promotion; a newly added one starts on flag_eval. Each environment takes the shape create-automated-rollout-config accepts: releaseType is override (default) or policy, never immediate, so an immediate release passes only environmentKey. The config must be active with an unmerged PR, and an environment is editable only while its status is "pending" and release_lifecycle_status is "not_started". Otherwise LaunchDarkly returns a conflict, which is terminal: do not retry. Returns updated and the config as stored.

  • Update dashboard

    Change an existing dashboard, or with graphId one of its graphs. Only the fields you send change; the rest is kept. Without graphId send name, description, timePreset, graphIds, variables, tags, maintainerId, or maintainerTeamKey. With graphId send graph fields (title, description, query, expressions, groupBy, funnelSteps, ...); the graph must be on dashboardId. Get IDs from get-dashboards. Use create-graph to add a graph. For one point per period at any time range (a Daily or per-hour graph), set bucketInterval in seconds: 3600 hourly, 86400 daily, 604800 weekly; bucketCount instead fixes the number of points. Sending bucketCount clears a stored bucketInterval.

  • Update default environment release plan

    Set or clear an environment release plan as the environment's default, the plan suggested first when starting a release. Beta API. default: true makes this plan the default and replaces any current default; the response names it as previousDefaultKey. The plan's configuration must be complete. default: false clears the environment's default only when this plan currently is it; the plan itself is kept. Returns changed and the plan as read back after the change; changed is false when the plan was already in the requested state.

  • Update environment release plan

    Update an environment release plan's name, description, or progressive-release configuration. Beta API. Send only the fields to change; omitted fields keep their current values, including inside progressiveRelease, so a single field such as advancementMode or cleanupBehavior can be changed on its own without reading the plan first. progressiveRelease.phases and progressiveRelease.metrics are each replaced wholesale when provided, so include every phase or metric to keep. Editing a plan changes what releases started from it will do. progressiveRelease follows the same rules as in create-environment-release-plan. To change the environment's default plan, use update-default-environment-release-plan. The response lists the fields whose values changed and the plan as read back after the update.

  • Update error group state

    Triage an error group: set its state to OPEN, RESOLVED, or IGNORED, and optionally snooze it until a time. Changes whether Errors alerts fire for the group. Requires confirm=true. Check the group with get-error-group first. Returns the state and snoozed_until read back after the change.

  • Update experiment

    Update fields on an experiment or its current iteration. Only fields mutable in the current status are applied; rejected fields are returned under skipped. Timestamps in the result are UTC.

  • Update expiring targets

    List, add, update, or remove expiring targets on a flag. Expiring targets are automatically removed from targeting after a specified date. Timestamps in the result are UTC.

  • Update flag

    Update a flag's top-level settings and variations without changing environment targeting. It takes no environment: names, descriptions, tags, maintainers, custom properties, and variations are project-wide, so never ask for one. Pass any combination of name, description, tags {add, remove}, maintainer {memberId or teamKey}, temporary (true or false), customProperties {add, replace, remove}, defaultVariations {on, off} as variation values, not indexes, addVariations, and updateVariations; at least one is required. Repeating an addVariation with the same value, name and description is a no-op; the same value with a different name or description is rejected (use updateVariations). variationJsonSchema replaces the flag's variation schema and cannot be combined with any other change; make two separate calls. Turning a flag on or off is environment-scoped: use toggle-flag. Requires confirm=true.

  • Update flag release plan

    Update a flag release plan's name, description, maintainer, executionMode, applicationKeys, default, or environments. Beta API. Send only the fields to change; omitted fields keep their current values, including default. environments and applicationKeys are each replaced wholesale when provided, so include every entry to keep. default: true makes this plan the project's default and demotes the current one; default: false unsets this plan as the default and keeps the plan, so the project has no default until another plan is set. To delete a plan, use delete-flag-release-plan. The update is checked against the version that was read, so a concurrent edit returns an error instead of being overwritten; retry to apply it to the current plan. Flag releases already started from the plan are not affected. environments follow the RULES of create-flag-release-plan. Returns the plan as read back after the update.

  • Update flag targeting

    Add, remove, or replace users or contexts in individual flag targeting, and add or remove flag prerequisites, in one environment. Accepts only the instruction kinds addTargets, removeTargets, replaceTargets, addPrerequisite and removePrerequisite; use update-targeting-rules for rules.

  • Update metric

    Change an existing metric. Send only the fields to change; each replaces the current value, so tags and analysisUnits must list every entry to keep, and denominator replaces the whole term. percentile sets analysisType percentile. JSON null clears a window offset, a winsor bound, traceQuery, traceValueLocation, unitAggregationField, filters, or the denominator. An analysis unit must be a context kind available for experiments in the project. Timestamps in the result are UTC.

  • Update off variation

    Set the variation a flag serves when its targeting is off in each environment in envs, or every environment with ["*"]. fallthroughVariationIndex also sets the default rule. Environments that already match are skipped; environments that require approval are reported with the instructions for create-approval-request while the rest apply.

PreviousPage 8 / 9Next