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.

  • Archive automated rollout config

    Archive an automated rollout config so the scheduler stops processing it. It is a soft delete: the config stays readable with get-automated-rollout-config, with status "archived". Returns archived, config_id, and project_key.

  • Archive flag

    Archive a feature flag after a removal-readiness check, or set restore:true to unarchive it.

  • Copy flag config

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

  • Create agent config

    Create an AgentControl Config or one of its variations. resource is required. configKey always names the config and variationKey and variationName always name a variation. resource=config creates the config (configKey, name, mode); pass variationKey, variationName, modelConfigKey, modelName, and instructions or messages to also create its first variation, optionally with tools and skills, in the same write. For mode judge, evaluationMetricKey and isInverted are required (isInverted: true if a lower metric value is better). maintainerId (member ID) or maintainerTeamKey (team key) sets the maintainer, not both. resource=variation adds variationKey and variationName to configKey, with model and prompts, or clones sourceVariationKey (omitted model, prompts, tools, skills, and judgeConfiguration are copied from it).

  • Create agent config approval

    Create an approval request for an AgentControl Config change without approving it. Each instruction is an AgentControl Config targeting semantic patch object with a kind: enableTargeting or disableTargeting turns targeting on or off, so enabling it is [{"kind":"enableTargeting"}]; rule and target kinds are those of update-agent-config resource=targeting targetingInstructions. Reviewers go in notifyMemberIds and notifyTeamKeys; pass only reviewers the user named and never pick one yourself. A request needs at least one reviewer unless an approval integration such as ServiceNow runs the review, which takes no LaunchDarkly reviewers; pass its form fields in integrationConfig instead. Without env, the request covers every environment and LaunchDarkly applies the project's strictest approval settings. If the tool rejects the reviewers, ask the user who should review and call it again. A person approves or declines the request in LaunchDarkly. The response includes approvalRequest.url. Check the outcome with get-agent-config-approvals and the request's id.

  • Create agent graph

    Create an AgentControl graph for a multi-agent workflow. Timestamps in the result are UTC.

  • Create agent skill

    Create an AgentControl agent skill from SKILL.md markdown. It starts at version 1. Set maintainerId or maintainerTeamKey, not both. Attach it with create-agent-config or update-agent-config resource=variation by passing skills: [{key, version}].

  • Create ai model config

    Create a custom AI model config for a model that is not in the global catalog. Search get-ai-model-configs first, and use a global model if one exists. key uses letters, numbers, ., _, and - (for example gpt-image-2-custom). id is the provider's model ID (for example gpt-image-2). provider matches the key's prefix, if any (for example OpenAI). Costs are USD per token (for example 0.000005). params and customParams are JSON objects (for example {"temperature": 0.7}). maintainerId and maintainerTeamKey are not applied on create; set one of them with update-ai-model-config. Next, pass key as modelConfigKey and id as modelName when creating an AgentControl Config variation.

  • Create ai tool

    Create an AI tool definition using raw JSON Schema. customParameters is application metadata that is not sent to the model.

  • Create alert

    Create an observability alert that fires when an aggregated metric crosses a threshold. Every functionType except Count needs functionColumn: duration for trace latency, value for metrics. Before creating one, check get-alerts for a similar alert, discover dimensions with get-keys, and confirm data and a sensible threshold with search-aggregations. Sessions alerts need sessionsAlertMode. Returns alert_created, alert_id, alert_url, and notes when the product-type rules overrode an input.

  • Create approval request

    Create an approval request for a flag or segment change without approving it. Pass flagKey for a flag or segmentKey for a segment, never both. Each instruction is a semantic patch object with a kind. Flag kinds include turnFlagOn, turnFlagOff, updateOffVariation or updateFallthroughVariationOrRollout with a variationId, addRule, addTargets or addPrerequisite; turning the flag on is [{"kind":"turnFlagOn"}]. To add or remove values on an existing rule clause, use addValuesToClause or removeValuesFromClause with ruleId, clauseId (the `_id` values from get-flags with flagKey) and values, or updateClause with ruleId, clauseId and clause; never removeClauses and addClauses to change a clause's values. Segment kinds are those of update-segment-rules and update-segment-targets, such as addRule or addIncludedTargets with contextKind and values. Reviewers go in notifyMemberIds and notifyTeamKeys; pass only reviewers the user named and never pick one yourself. Whether a reviewer is required depends on the environment, so this tool checks for you: a flag needs one when its environment requires approval for it, and a segment always does, unless an approval integration such as ServiceNow runs the review. An integration takes no LaunchDarkly reviewers; pass its form fields in integrationConfig instead. When the requester cannot review their own requests, the requester cannot be a reviewer. If the tool rejects the reviewers, ask the user who should review and call it again. A person approves or declines the request in LaunchDarkly. The response includes approvalRequest.url. Then give the user approvalRequest.url and stop: a person has to review it first, so check the outcome later with get-approval-requests and the request's id, not right after creating it. Timestamps in the result are UTC.

  • Create assignment data source

    Create a custom assignment data source from a warehouse table, view, or SQL query. LaunchDarkly runs the source against the environment's warehouse integration and rejects it unless columnMappings.columns matches the columns the warehouse returns. Attach it to an experiment through the experiment's assignmentDataSource.

  • Create automated rollout config

    Record an automated rollout config for a feature-flagged change. Use it only for AutomatedRollout requests. The guarding flag must already exist. Pass repoFullName, prNumber, and prUrl for the PR the user names or you just filed; omit them when there is none. Each listed environment releases after the merge, pinned in override or by a release plan; to hold one, leave it out (no hold or date field exists). releaseType is only override or policy; immediate, progressive, and guarded are override.releaseMethod values. An immediate release passes only environmentKey, with no releaseType or override. triggerType: flag_eval (default), webhook (CI/CD deploy), manual, or promotion. Stages have exactly allocation and durationMillis; allocation is thousandths of a percent, so 10% over one hour is {"allocation":10000,"durationMillis":3600000}. override keys are camelCase: releaseMethod, rolloutContextKindKey, stages, metricKeys, rollbackOnRegression. policy uses the environment's default release plan, or the plan environmentReleasePlanKey names. Surface every warning in generated comments; do not call a warned environment a clean rollout. Returns config_id, the stored config, and warnings.

  • Create dashboard

    Create a new empty dashboard (visualization) for organizing charts. IMPORTANT: Before creating a new dashboard: 1. Use get-dashboards to check if a similar dashboard already exists 2. Use get-keys to discover available data dimensions for the product types you want to chart Takes name and optional timePreset (default "last_24_hours"; also "last_7_days", "last_30_days"), variables ({key, defaultValues, suggestionType, field}), description (subtitle under the name), tags (for finding it in the dashboards list, e.g. ["checkout", "team-payments"]), and maintainerId or maintainerTeamKey (the maintaining member or team). Returns dashboard_created, dashboard_id, dashboard_url, name, and the stored description, tags, maintainer_id and maintainer_team_key. After creating a dashboard, use create-graph to add charts to it. Before adding more than three, load the observability/dashboard-layout skill guide with load-skill and plan the rows. Example usage: {"name": "API Performance Dashboard", "timePreset": "last_7_days"}

  • Create dataset

    Create and upload an offline evaluation dataset with a stable key. Provide JSONL rows or raw CSV/JSONL content. Timestamps in the result are UTC.

  • Create environment

    Create an environment in a LaunchDarkly project. name is the display name capitalized as the user wrote it (QA, not qa). Returns its key, name, client-side ID, mobile key, color, tags, and settings. Does not return the server-side SDK key; use get-sdk-key. Environment keys must be unique in the project, start with a letter or number, and contain only letters, numbers, periods, underscores, and dashes. A key already in use returns a conflict: do not retry with the same key; check it with get-environment and ask the user whether to use that environment or another key. A permission denied error can also mean the project has reached its environment limit. Boolean settings default to false. With sourceEnv, the new environment starts with a copy of that environment's flag configurations and segments, including rules but not individual context targets; its settings come from this call, not from sourceEnv. Approval settings cannot be set when creating an environment and are not copied.

  • Create environment release plan

    Create a reusable progressive-release plan in the specified project and environment. Does not start a release on a flag. An active plan with the same key returns 409. Returns the created plan as read back. Beta API. progressiveRelease: randomizationUnit, optional advancementMode (manual or automatic, default manual) and cleanupBehavior, phases, and optional metrics. cleanupBehavior sets what happens when a release finishes: leave_rules_in_place keeps the rules, so the release stays limited to the audience in them; remove_rules_and_update_default_rule removes the rules and releases to everyone through the default rule (the API default). PHASES: 1-10, each with 1-10 clauses and 1-10 steps. A flag release plan can use this plan only if it has exactly one phase. Every phase's clauses must include the randomization unit clause {attribute: "kind", op: "in", values: [<randomizationUnit>], contextKind: <randomizationUnit>}; alone it releases to every context of that kind. randomizationUnit must be an existing, unarchived context kind in the project. Clauses use the flag targeting shape {attribute, op, values, contextKind?, negate?}: contextKind defaults to user, and attribute and contextKind may be empty only for segmentMatch, whose values are segment keys. values holds 1-25 entries, each string at most 1,024 bytes. STEPS: {allocation, durationMillis}. allocation is per-100k (5000 = 5%): greater than 0, at most 99000 (99%), and greater than the previous step's. Completing the release reaches everyone. durationMillis is the hold before the next step and must be greater than 0 (14400000 = 4h). METRICS: object keyed by metric or metric group key, each {isGroup, autoRollback?}. Empty makes a progressive release; any keys make releases from the plan guarded, which caps every step at 50000 (50%) and requires the randomizationUnit to be enabled for guarded rollouts. Max 10 metrics and 5 groups; keys must exist in the project and each metric must support the randomizationUnit. One example per release type: - progressive, no metrics: {"projectKey":"default","environmentKey":"production","key":"prod-ramp","name":"Production ramp","progressiveRelease":{"randomizationUnit":"user","advancementMode":"automatic","cleanupBehavior":"remove_rules_and_update_default_rule","phases":[{"clauses":[{"attribute":"kind","op":"in","values":["user"],"contextKind":"user"}],"steps":[{"allocation":10000,"durationMillis":3600000},{"allocation":50000,"durationMillis":3600000}]}]}} - guarded, steps at most 50000: {"projectKey":"default","environmentKey":"production","key":"prod-guarded","name":"Production guarded","progressiveRelease":{"randomizationUnit":"user","advancementMode":"automatic","cleanupBehavior":"remove_rules_and_update_default_rule","phases":[{"clauses":[{"attribute":"kind","op":"in","values":["user"],"contextKind":"user"}],"steps":[{"allocation":10000,"durationMillis":3600000},{"allocation":50000,"durationMillis":3600000}]}],"metrics":{"error-rate":{"isGroup":false,"autoRollback":true}}}}

  • Create evaluation

    Create an AI evaluation definition snapshot. Datasets are selected later when run-evaluation is called. Messages can reference {{snippet.<key>}}; give each referenced snippet's text inline in promptSnippets (key to text), which is stored in this evaluation and needs no create-prompt-snippet call. Pass the environment it generates in as generationContext.environmentKey. Timestamps in the result are UTC.

Page 1 / 9Next