addStrategy
Define and apply a feature flag strategy for a specific environment within the Unleash MCP server, enabling controlled feature rollouts with constraints and parameters.
Instructions
Add a strategy to a feature flag in a specific environment
Input Schema
Name | Required | Description | Default |
---|---|---|---|
constraints | No | ||
environment | Yes | ||
featureName | Yes | ||
parameters | No | ||
projectId | Yes | ||
strategyName | Yes |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"constraints": {
"items": {
"additionalProperties": false,
"properties": {
"contextName": {
"type": "string"
},
"operator": {
"type": "string"
},
"values": {
"items": {
"type": "string"
},
"type": "array"
}
},
"required": [
"contextName",
"operator",
"values"
],
"type": "object"
},
"type": "array"
},
"environment": {
"minLength": 1,
"type": "string"
},
"featureName": {
"minLength": 1,
"type": "string"
},
"parameters": {
"additionalProperties": {
"type": "string"
},
"type": "object"
},
"projectId": {
"minLength": 1,
"type": "string"
},
"strategyName": {
"minLength": 1,
"type": "string"
}
},
"required": [
"projectId",
"featureName",
"environment",
"strategyName"
],
"type": "object"
}