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.

  • Find o11y project

    Find the LaunchDarkly project that holds a service's observability data (logs, traces, metrics, errors). Use this before other observability tools when you know a service but not its project; a project's name often does not match the services it holds. A match means the project has had data for the service, not that it is sending now; confirm the window with get-keys key=service_name. Pass the returned projectKey to the other observability toolruntime.

  • Get agent config approvals

    List approval requests for an AgentControl Config. Pass projectKey and configKey, or only id. Each request has a url that opens it in LaunchDarkly. reviewStatus is the reviewers' decision: pending, approved, or declined. status is the change itself: pending, scheduled, completed (applied), or failed. Pass id to return only that request; the id from create is enough, and any key passed with it must match the request's resource. Each request lists its reviews, so a decline shows its reason and reviewer. For integration-managed approvals with auto-apply on, reading a request can make LaunchDarkly apply it once approved.

  • Get agent configs

    Without configKey: search and browse AgentControl Configs (query, tags, view, modes, maintainerId, maintainerTeamKey, sort, limit, offset; filters combine with AND). With configKey: get one config; section is config (default, with variations), health (missing variations, models, prompts, tool references), status (lifecycle across every environment; no env needed), targeting (one environment; requires env), or versions (every saved version of one variation, newest first; requires variationKey). To restore an earlier prompt or model, pass that version's model and messages to update-agent-config resource=variation.

  • Get agent graphs

    Without graphKey: list AgentControl graphs in a project (limit, offset). With graphKey: get one graph including its edges. Timestamps in the result are UTC.

  • Get agent skills

    AgentControl agent skills: versioned SKILL.md documents that AgentControl Config variations attach by {key, version}. These are not the LaunchDarkly workflow guides served by get-skills and load-skill. Without skillKey: list skills (query matches key, name, or description). With skillKey: section skill (default) returns the latest version with its markdown; versions lists every version newest first with its markdown; references lists the variations that attach the skill and the version each one pins.

  • Get ai model configs

    Get the AI model configs that AgentControl Config variations can select: global catalog models (global=true) and the project's custom models. Without keys: a page filtered by query (case-insensitive match on key or name, for example gpt-4o), tags, and restricted. With keys: those model configs, and any not found in missingKeys; version (an integer from an earlier read) needs exactly one key. Pass a model config's key (for example OpenAI.gpt-4o) as modelConfigKey and its id (for example gpt-4o) as modelName on a variation. Costs are USD per token.

  • Get ai tools

    Without toolKey: list AI tool definitions in a project (limit, offset). With toolKey: get one AI tool definition including its schema. With toolKey and section versions: list that tool's versions newest first, paged by limit and offset. To attach a tool, put its key and version in a variation's tools array ({key, version}).

  • Get alert firing history

    Show when an alert actually fired, what it evaluated, and what state it is in now. This is the tool that answers "is this alert doing anything?" and "what exactly fired?". Use it to find stale alerts worth retiring, to check whether a threshold is reachable, to re-run the query behind a firing, and to confirm an alert still works after you retune it. Takes alertId (from get-alerts), lookbackDays (default 30, positive: how far back to count firings), limit (default 10, max 100: firing rows to return, newest first) and includeIdleGroups (default false: also list groups in Normal with no state change for 14 days in current_state). RETURNS: - summary: Read this first. episodes (firings of one group less than episode_gap_minutes apart, newest first, with start, end, firings and span_minutes), flaps (re-entries into Alert within an episode), firings_per_day for the last 7 days, groups (firings per group), and chronic: true when it fired on more than 4 of the last 7 days, which usually means a noisy threshold rather than a new failure. value_source says whether the firing value is stored; it usually is not, so recompute it with a firing's replay. Counts cover up to 500 firings; complete is false past that - evaluation: The alert's current query, function, grouping and thresholds - firing_count: Times a group entered Alert in the window, not re-notifications. May exceed the rows returned — check truncated - last_fired_at: Timestamp of the most recent firing, or null if it never fired in the window - firings: Newest-first rows with state, previous_state, group, investigation_conversation_id, and replay: search-aggregations arguments, to pass as-is, that recompute the value the alert compared against its threshold for that group. config_changed_since=true means the alert was edited after that firing, so the replay uses the current config. - current_state: Latest state per group. This is how you tell an alert firing RIGHT NOW from one that fired and resolved. States: Normal, Warn, Alert, Error, NoData idle_groups_omitted counts groups left out as idle. A current_state of NoData is a finding worth reporting — the alert's query matches nothing, so it can no longer fire regardless of threshold. That usually means the underlying service was renamed or stopped emitting. Example usage: {"projectKey": "default", "alertId": 42, "lookbackDays": 90}

  • Get alerts

    Without alertId: list existing alerts as compact rows with each enabled alert's current state, 50 at a time; page with offset, and set fullConfig for investigation settings and destination IDs; check this before creating a new alert. Pass state=Alert to answer "what is firing right now" in one call. Filter by alert name with search; filter further by productType, disabled, query (text of the alert's own filter), destination, or tag. updated_at is the last config edit, not the last firing; use get-alert-firing-history for when and how often an alert fired. For project-wide stale, never-fired or unrouted alert questions, set audit (one firing lookup per alert, so slower) instead of looping get-alert-firing-history; say "no firings in the last N days", not "never fired". With alertId: get one alert's full configuration. Webhook URLs in destinations are masked.

  • Get approval requests

    List approval requests, including applied (completed), scheduled, and failed requests. Pass projectKey, env, and flagKey or segmentKey (never both) for one flag or segment; only id for one request; or projectKey without a key for the whole project, the list its Approvals page shows across flags, segments, and AgentControl Configs. Given only an approval request id, call this tool with just id: it returns any approval request, whether for a flag, segment, or AgentControl Config, so never ask which kind it is. Pass status or reviewStatus to keep only some requests, for example reviewStatus ["pending"] and status ["pending"] for requests still awaiting review. Project-wide, also narrow by env, assignedToMemberIds (members asked to review; for requests waiting on the user, pass the id from get-member-self), requestedByMemberId, resourceKind, and the creation window createdAfter and createdBefore (each an ISO 8601 time with a timezone (2024-01-15T10:00:00Z), a date (2024-01-15, UTC), a time relative to now (now, now-15m, now-1h, now-7d; units s, m, h, d, w), or Unix epoch seconds or milliseconds; for example createdAfter now-7d for the last week), and page with limit (default 20, max 200) and offset: results are newest first, nextOffset is set when more remain, and each request has resourceKind, resourceKey, and env. Each request has a url that opens it in LaunchDarkly. reviewStatus is the reviewers' decision: pending, approved, or declined. status is the change itself: pending, scheduled, completed (applied), or failed. Pass id to return only that request; the id from create is enough, and any key passed with it must match the request's resource. Each request lists its reviews, so a decline shows its reason and reviewer. For integration-managed approvals with auto-apply on, reading a request can make LaunchDarkly apply it once approved. Timestamps in the result are UTC.

  • Get assignment data sources

    Custom assignment data sources: project-scoped warehouse tables recording which treatment each context received, for experiments assigned outside LaunchDarkly. Without dataSourceKey: list sources. With dataSourceKey: get one, with its mappings and the experiments using it. Adding assignmentSourceExperimentId probes that experiment's rows and reports ok, warn (slow analysis), or blocked.

  • Get automated rollout config

    Fetch a single automated rollout config by id to verify its state. Use this after create-automated-rollout-config (which returns config_id) to confirm the rollout was recorded and to check its progress. LIFECYCLE: - pr_state: "pending" until the guarding PR merges, then "merged". - status: "active" while releasing, then "complete", "expired", or "archived". The config reports its execution_mode. Each environment reports its desired_release_type, environment_release_plan_key (a policy environment that names a plan other than the default), trigger_type, wait_before_release_millis, the pinned override (if any), and release progress via released_at and associated_release_id (both set once the environment's release starts). An environment is editable with update-automated-rollout-config only while its status is "pending" and release_lifecycle_status is "not_started". Takes configId, the rollout config id returned by create-automated-rollout-config. RETURNS: - found: Boolean; false when no config with that id exists for the project's account. - config: The rollout config when found — { id, project_key, flag_key, repo_full_name, pr_number, pr_url, pr_state, status, execution_mode, required_application_keys, created_at, updated_at, completed_at, environments: [{ environment_key, desired_release_type, environment_release_plan_key, trigger_type, status, release_lifecycle_status, wait_before_release_millis, associated_release_id, released_at, override: { release_method, rollout_context_kind_key, stages, metric_keys, metric_group_keys, rollback_on_regression } }] }.

  • Get changes

    Show what changed around a failure: one time-ordered timeline for a service and window that merges build version changes seen in traces, logs and errors, LaunchDarkly flag changes from the audit log, and the service's alert firings and config edits. Use it to answer "did a deploy or a flag change cause this?" before digging into traces. versions gives each build's first_seen, last_seen and, from traces, error_spans and error_span_rate. By default flag changes are only those the service's spans evaluated in the window (evaluated_by_service, the strongest link to the failure) or, when the service records no flag evaluations, those in environmentKey; set allFlagChanges for the rest. Changes to one flag and environment under ten minutes apart are one flag_change row (changes, last_changed_at) describing the last; alert firings under two hours apart are one alert_episode row. Over maxTokens, version and alert rows are kept first, then evaluated flag changes, then the newest of the rest.

  • Get context attributes

    Discover context attribute names and values recently seen in one environment, to build a search-contexts filter or a targeting clause from real data instead of guessed names. Without attributeName: list attribute names (JSON pointers such as /email or /address/city) with each name's kind, weight (relative frequency), and redacted, most frequent first. Narrow with kind and nameContains. With attributeName and kind: list that attribute's observed values with weight, most frequent first. Narrow with valueContains to autocomplete a partial value. attributeName key lists context keys. filterField is the field to use in a search-contexts filter, such as user.email. It is omitted for nested names (/address/city) and other names search-contexts cannot filter on; find those contexts by kind or key and read their attributes with get-context-instances. nameContains and valueContains match a case-insensitive substring. Results stop at limit with no next page; truncated says when more may exist. Find kind keys with get-context-kinds.

  • Get context instances

    Get all stored instances of a specific context by kind and key. Returns every recorded occurrence of the context, including its full attribute set (e.g., merchantCountryCode, disbursementRail) and which SDK/application reported each instance. Use search-contexts to find a context key, then use this tool to inspect its full attribute history across all SDK applications. Pagination: responses include `totalCount`. When hasMore is true, pass continuationToken from the response to get the next page.

  • Get context kinds

    List the context kinds defined in a project (for example user, organization, device), with key, name, description, archived, hideInTargeting, createdFrom, and lastSeen. Kind keys differ per project, so call this before targeting or searching contexts by kind instead of assuming user exists or that "customers" means a kind named customer. Archived kinds are left out unless includeArchived is true; they cannot be targeted. Next: get-context-attributes for a kind's attribute names, then search-contexts. Timestamps in the result are UTC.

  • Get dashboards

    Without dashboardId: list existing dashboards, with next_offset when more remain; set includeGraphs for each dashboard's graph stubs. Check this before creating a new dashboard. search matches dashboard names only; tags, maintainerId, and maintainerTeamKey keep dashboards with that tag or maintainer. To find dashboards that chart a metric, service or query, set graphSearch (and productType), which also returns matched_graphs. maxQueriesPerDashboard returns graph queries to reuse. With dashboardId: get one dashboard with every graph's full definition, its template variables, kind (Standard graph grid or Brief analytical report), time_preset, description, tags, and maintainer. Graph queries can reference variables as $key; pass their defaultValues to preview-graph as variables.

  • Get datasets

    Without datasetId: list offline datasets in a project (id, name, status, row count, creation info), paged by page and pageSize. When hasMore is true, pass nextPage as page. With datasetId: get one dataset including its processing status and row count. Dataset status is pending, ready, or failed. Timestamps in the result are UTC.

  • Get doc

    Fetch the full markdown content of a LaunchDarkly documentation page. Pass a URL returned by `search-docs`, or any `https://launchdarkly.com/docs/` URL. The LaunchDarkly docs site serves clean markdown when the URL path ends with `.md` (e.g. `https://launchdarkly.com/docs/home/flags/create.md`). This tool appends `.md` automatically if not already present. Responses are capped at 75 KB. When `truncated` is true, fetch the next logical section directly or narrow your search query. Only `https://launchdarkly.com/docs/` URLs are accepted.

  • Get environment

    Get a LaunchDarkly environment's client-side ID, mobile key, and approval settings. Use this to initialize a browser or mobile SDK, or to check whether changes need approval: approvalSettings covers flags (required, minNumApprovals, canReviewOwnRequest, canApplyDeclinedChanges) and resourceApprovalSettings covers other kinds such as segment and aiconfig. requiredApprovalTags lists at most 25 tags; requiredApprovalTagCount gives the total when there are more. Does not return the server-side SDK key; use get-sdk-key for that.

Page 1 / 5Next