FeatureFlagConfig

October 20, 2025 ยท View on GitHub

Example Usage

import { FeatureFlagConfig } from "@launchdarkly/mcp-server/models/components";

let value: FeatureFlagConfig = {
  on: true,
  archived: true,
  salt: "<value>",
  sel: "<value>",
  lastModified: 799430,
  version: 880588,
  site: {},
  access: {
    denied: [],
    allowed: [],
  },
  environmentName: "<value>",
  trackEvents: true,
  trackEventsFallthrough: true,
};

Fields

FieldTypeRequiredDescription
onboolean:heavy_check_mark:Whether the flag is on
archivedboolean:heavy_check_mark:Boolean indicating if the feature flag is archived
saltstring:heavy_check_mark:N/A
selstring:heavy_check_mark:N/A
lastModifiednumber:heavy_check_mark:N/A
versionnumber:heavy_check_mark:Version of the feature flag
targetscomponents.Target[]:heavy_minus_sign:An array of the individual targets that will receive a specific variation based on their key. Individual targets with a context kind of 'user' are included here.
contextTargetscomponents.Target[]:heavy_minus_sign:An array of the individual targets that will receive a specific variation based on their key. Individual targets with context kinds other than 'user' are included here.
rulescomponents.Rule[]:heavy_minus_sign:An array of the rules for how to serve a variation to specific targets based on their attributes
fallthroughcomponents.VariationOrRolloutRep:heavy_minus_sign:N/A
offVariationnumber:heavy_minus_sign:The ID of the variation to serve when the flag is off
prerequisitescomponents.Prerequisite[]:heavy_minus_sign:An array of the prerequisite flags and their variations that are required before this flag takes effect
sitecomponents.Link:heavy_check_mark:N/A
accesscomponents.Access:heavy_minus_sign:N/A
environmentNamestring:heavy_check_mark:The environment name
trackEventsboolean:heavy_check_mark:Whether LaunchDarkly tracks events for the feature flag, for all rules
trackEventsFallthroughboolean:heavy_check_mark:Whether LaunchDarkly tracks events for the feature flag, for the default rule
debugEventsUntilDatenumber:heavy_minus_sign:N/A
summarycomponents.FlagSummary:heavy_minus_sign:N/A
evaluationcomponents.FlagConfigEvaluation:heavy_minus_sign:N/A
migrationSettingscomponents.FlagConfigMigrationSettingsRep:heavy_minus_sign:N/A