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

  • Get environment release plans

    Get environment release plans, reusable progressive-release recipes. Beta API. Without releasePlanKey: a page ordered by creation time with totalCount. With releasePlanKey: one plan with its phases (clauses and steps), metrics, randomizationUnit, advancementMode, and cleanupBehavior.

  • Get error group

    Get one error group by secure_id with its state, stack and one occurrence (the latest unless errorObjectId or startDate picks another), with its trace_id, session, and next_id and previous_id. Set occurrences to list occurrences in a window instead. Frames carry link (GitHub source URL), in_app and source_map_error when known; top_frame adds code_before and code_after. include adds distribution (browser, OS, env, service, version) and trend for the window. _pivots gives get-trace and search-logs arguments for the occurrence's trace.

  • Get evaluation run summary

    Get the summary results of a completed evaluation run, including pass/fail counts and aggregate scores. Timestamps in the result are UTC.

  • Get evaluations

    Without evaluationId: list AI evaluation definition snapshots in a project (search by name, state active or archived, sortBy updatedAt or lastRun, limit, offset). With evaluationId: get one snapshot including prompts, models, criteria, and toolruntime. Timestamps in the result are UTC.

  • Get experiment metric results

    Get detailed statistical results for one metric on an experiment iteration. A statistic that is not a finite number is the string NaN, Infinity or -Infinity, e.g. an unbounded interval upper bound. Timestamps in the result are UTC.

  • Get experiment results

    Get an overall results summary across every metric on an experiment iteration. Timestamps in the result are UTC.

  • Get experiments

    Without experimentKey: list experiments in a project, optionally filtered by environmentKey, flagKey, or status; each entry has key, name, description, and current iteration status. With experimentKey (environmentKey also required): get one experiment including its treatments, metrics, and current iteration status. Timestamps in the result are UTC.

  • Get flag code references

    Get per-repository code-reference counts for one flag. Requires projectKey and flagKey. The flags map contains repository names, default branches, enabled state, hunkCount, fileCount, latestCommitTime, and links, not file paths or source hunks. Covers only default branches of repositories onboarded to code-reference scanning; an empty flags map is not proof of dead code, and disabled or stale scans need investigation. Use this evidence to identify other repositories to inspect during flag-safety review. Pair with get-flag-extinctions for removal history; neither proves that a change is correctly flag-gated.

  • Get flag extinctions

    Get commits that removed the last code reference to one flag in scanned repositories. Requires projectKey and flagKey. Returns an items map keyed by repository name; each event has revision, message, time (Unix epoch milliseconds), flagKey, and projKey. Optional repoName and branchName narrow the search; without branchName, only default branches are queried. Supply from and to together in Unix epoch milliseconds to filter by commit time. Extinctions are historical: references may have been reintroduced, so also check current code-reference statistics and inspect relevant branches before treating a flag as unused. An empty result does not prove the flag has no references.

  • Get flag health

    Get a combined flag health view with lifecycle status, last request time, targeting summary, age, and temporary state. When the flag does not exist (already deleted or never created), it returns {exists: false} instead of an error. 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.

PreviousPage 4 / 9Next