Filter

July 9, 2025 ยท View on GitHub

Example Usage

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

let value: Filter = {
  type: "contextAttribute",
  attribute: "country",
  op: "<value>",
  values: [
    "JP",
  ],
  contextKind: "user",
  negate: false,
};

Fields

FieldTypeRequiredDescriptionExample
typecomponents.FilterType:heavy_check_mark:Filter type. One of [contextAttribute, eventProperty, group]contextAttribute
attributestring:heavy_minus_sign:If not a group node, the context attribute name or event property name to filter oncountry
opstring:heavy_check_mark:N/A
valuesany[]:heavy_check_mark:The context attribute / event property values or group member nodes[
"JP"
]
contextKindstring:heavy_minus_sign:For context attribute filters, the context kind.user
negateboolean:heavy_check_mark:If set, then take the inverse of the operator. 'in' becomes 'not in'.false