MigrateStatsigFeatureGatesToWingify
Migrate Statsig feature gates to Wingify feature flags by mapping each gate to a flag with a default boolean variable and converting supported rollout rules into Wingify globalSegments.
Instructions
Migrate Statsig feature gates to Wingify FE. For each Statsig feature gate this tool: (1) lists all gates from Statsig, (2) maps each gate to a Wingify feature flag payload, (3) creates the feature flag in Wingify with a default boolean variable, and (4) creates rollout rules from the gate's rules with Statsig conditions mapped to Wingify globalSegment where supported. Rollout rules are enabled when the Statsig gate is enabled; the feature flag itself stays disabled after migration.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "MigrateStatsigFeatureGatesToWingify"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| includeArchived | No | Whether to also migrate archived Statsig feature gates. | |
| environmentIdOrKey | No | Target Wingify environment id or key for the rollout rule. Defaults to Production (id "1"). | 1 |