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
| Field | Type | Required | Description |
|---|---|---|---|
on | boolean | :heavy_check_mark: | Whether the flag is on |
archived | boolean | :heavy_check_mark: | Boolean indicating if the feature flag is archived |
salt | string | :heavy_check_mark: | N/A |
sel | string | :heavy_check_mark: | N/A |
lastModified | number | :heavy_check_mark: | N/A |
version | number | :heavy_check_mark: | Version of the feature flag |
targets | components.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. |
contextTargets | components.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. |
rules | components.Rule[] | :heavy_minus_sign: | An array of the rules for how to serve a variation to specific targets based on their attributes |
fallthrough | components.VariationOrRolloutRep | :heavy_minus_sign: | N/A |
offVariation | number | :heavy_minus_sign: | The ID of the variation to serve when the flag is off |
prerequisites | components.Prerequisite[] | :heavy_minus_sign: | An array of the prerequisite flags and their variations that are required before this flag takes effect |
site | components.Link | :heavy_check_mark: | N/A |
access | components.Access | :heavy_minus_sign: | N/A |
environmentName | string | :heavy_check_mark: | The environment name |
trackEvents | boolean | :heavy_check_mark: | Whether LaunchDarkly tracks events for the feature flag, for all rules |
trackEventsFallthrough | boolean | :heavy_check_mark: | Whether LaunchDarkly tracks events for the feature flag, for the default rule |
debugEventsUntilDate | number | :heavy_minus_sign: | N/A |
summary | components.FlagSummary | :heavy_minus_sign: | N/A |
evaluation | components.FlagConfigEvaluation | :heavy_minus_sign: | N/A |
migrationSettings | components.FlagConfigMigrationSettingsRep | :heavy_minus_sign: | N/A |