Connect Cortex to Claude Code via MCP. Create flags, configure rollouts, and analyze feature adoption with natural language.
Claude can help you manage feature flags through conversation. Create new flags, configure targeting rules, adjust rollout percentages, and analyze adoption - all naturally.
user: Create a new feature flag for the redesigned checkout and roll it out to 10% of pro users
claude: I'll create that flag for you.
Done! The flag is now active for 10% of pro users. Want me to monitor adoption?
Connect Cortex to Claude Code
npm install -g @brainzlab/cortex-mcp
// ~/.claude/config.json { "mcpServers": { "cortex": { "command": "cortex-mcp", "args": ["--api-key", "YOUR_API_KEY"] } } }
Open Claude Code and manage features naturally:
"Show me all active feature flags and their rollout status"
Natural language feature management
Create a new feature flag called dark_mode for the settings page
Quick flag creation
Roll out the new_dashboard flag to 50% of enterprise users
Targeted percentage rollouts
What's the adoption rate for the ai_suggestions feature?
Adoption analytics
Enable the beta_features flag for user john@example.com
Individual user targeting
Show me all flags that are partially rolled out
Rollout status overview
What would happen if I enabled new_checkout for all users?
Impact analysis
Tools available to Claude
cortex_list_flags
List all feature flags with status
params: environment, status
cortex_create_flag
Create a new feature flag
params: name, description, default
cortex_update_flag
Update flag configuration
params: flag_id, enabled, rollout
cortex_set_targeting
Configure targeting rules
params: flag_id, rules
cortex_get_stats
Get flag evaluation statistics
params: flag_id, time_range
cortex_check_user
Check flag status for a user
params: flag_id, user_id
Claude will always confirm before making changes to feature flags. Destructive operations like disabling flags for all users require explicit confirmation.
Get started with Cortex and Claude Code today.