flagsmith-mcp
v0.1.2Model Context Protocol (MCP) server for Flagsmith feature flags and Bayesian experimentation
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
create_flag
Create a multivariate feature flag in Flagsmith with equal variant traffic splits. Args: name: Flag identifier (e.g., 'cta_button'). description: What this flag controls. variants: List of variant names (e.g., ['variant_a', 'variant_b']).
| Parameter | Type | Description |
|---|---|---|
description * | string | |
name * | string | |
variants * | array |
toggle_flag
Enable or disable a feature flag in the default environment. Args: flag_name: Name of the feature flag to toggle. enabled: True to enable the flag, False to disable.
| Parameter | Type | Description |
|---|---|---|
enabled * | boolean | |
flag_name * | string |
list_flags
List all feature flags in the project with their current state, variants, and traffic allocations.
set_traffic_split
Update the multivariate percentage weights for a feature flag. Args: flag_name: Name of the multivariate flag. splits: Mapping of variant name to traffic percentage (e.g. {'variant_a': 80.0, 'variant_b': 20.0}).
| Parameter | Type | Description |
|---|---|---|
flag_name * | string | |
splits * | object |
create_experiment
Create a Flagsmith Experiment linked to a multivariate feature flag and target metric. Args: name: Name of the experiment (e.g. 'CTA Button Conversion Test'). flag_name: The multivariate flag under test (e.g. 'cta_button'). metric_event: Target conversion event key (e.g. 'cta_clicked'). hypothesis: The hypothesis being tested.
| Parameter | Type | Description |
|---|---|---|
flag_name * | string | |
metric_event * | string | |
name * | string | |
hypothesis | string |
get_experiment_results
Retrieve conversion rates and Bayesian win probability for an experiment. Args: experiment_id: The ID of the experiment (e.g., 'exp_cta_button_12345').
| Parameter | Type | Description |
|---|---|---|
experiment_id * | string |
ship_winner
Read experiment Bayesian results, identify the winning variant, and set its traffic split to 100%. Args: experiment_id: The ID of the experiment.
| Parameter | Type | Description |
|---|---|---|
experiment_id * | string |