# Flipt MCP for AI Agents AI Agent Connect

> Flipt MCP for AI Agents. Manage feature flags, rollouts, and segments directly through your AI client. See flag states, create variants, and set up targeted distributions without leaving your IDE or chat interface. It connects your Flipt instance to your agent so you can talk your way through feature management.

## Overview
- **Category:** developer-tools
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_TVcMgPuHtCjr3IvZBRaswl0SFXe5TsrryvQScOOE/ai-agent-connect
- **Tags:** feature-flags, rollouts, targeting, ab-testing, configuration-management

## Description

Managing feature flags usually means jumping between tabs, hunting for the right namespace, and double-checking that a rollout hasn't accidentally hit the wrong audience. It's tedious work that's prone to human error. This Connector changes that by letting you talk to your Flipt instance directly through your AI client. Instead of manual clicks, you can just ask your agent to show you the current status of a specific flag or tell it to set up a new canary release. You can quickly check which segments are active, create new constraints for targeted rollouts, and manage variants on the fly. It makes feature management feel like a conversation rather than a series of clicks. By connecting to the Vinkius catalog, you get a reliable way to keep your production environment stable while moving fast. You get to focus on the logic of your release rather than the friction of the dashboard.

## Tools

### list_flags
Shows all feature flags in a specific namespace. Use this to quickly see which flags are active.

### list_namespaces
Retrieves a list of all namespaces in your Flipt instance. This helps you see your full environment structure.

### list_rollouts
Lists the rollout progress for a specific flag. Use this to check how many users have received a new feature.

### list_rules
Shows the rules currently applied to a flag. This is useful for auditing your evaluation logic.

### list_segments
Lists all segments within a given namespace. Check these to see your targeted user groups.

### list_tokens
Shows your active authentication tokens. Use this to check your current access levels.

### create_constraint
Adds a new constraint to a segment for targeted targeting. This helps refine who sees which features.

### create_distribution
Sets up a new distribution for a rule. Use this to manage percentage-based releases and canary deployments.

### create_variant
Adds a new variant to a specific feature flag. Use this to create different values for your evaluation logic.

## Prompt Examples

**Prompt:** 
```
List all namespaces in my Flipt instance.
```

**Response:** 
```
I've retrieved the namespaces. You currently have:

* **default** (Global resources)
* **production-env** (Production flags)

Which one would you like to explore?
```

**Prompt:** 
```
Show me all the feature flags in the 'default' namespace.
```

**Response:** 
```
Fetching flags for 'default'... I found 3 flags:

1. `new-onboarding-flow`
2. `dark-mode-beta`
3. `api-v2-enabled`

Would you like to see the variants for any of these?
```

**Prompt:** 
```
Create a new variant called 'v2-test' for the 'header-experiment' flag in the 'default' namespace.
```

**Response:** 
```
Variant **v2-test** has been successfully created for the **header-experiment** flag. It is now available for use in your rules and distributions.
```

## Capabilities

### List all flags in a namespace
See every feature flag in a specific namespace with one request.

### View all namespaces
Get a full list of your Flipt namespaces to see your environment structure.

### Check rollout statuses
See the current progress of a specific flag's rollout.

### Inspect flag rules
View the logic and rules currently applied to a feature flag.

### See all segments
Retrieve all defined segments within a namespace.

### View active tokens
Check your authentication tokens to manage access levels.

### Create segment constraints
Add specific constraints to a segment for more precise targeting.

### Set up distributions
Create a new distribution for a rule to manage percentage-based releases.

### Add flag variants
Create new variants for a flag to return different values based on your logic.

## Use Cases

### Checking flag status during a hotfix
A developer needs to know if a specific flag is active in production. They ask their agent to list_flags in the production namespace to get an immediate answer.

### Verifying a beta rollout
A product manager wants to ensure the beta is hitting the right audience. They ask the agent to list_segments and list_rules to confirm the targeting logic.

### Setting up a canary release
A DevOps engineer needs to start a 5% rollout. They ask the agent to create_distribution for a rule to handle the percentage-based release safely.

### Adding an experiment variant
A developer wants to add a 'v2-test' value to an existing flag. They ask the agent to create_variant for the header-experiment flag without leaving the editor.

## Benefits

- Stop context switching between your IDE and the Flipt dashboard by using list_flags and list_namespaces to check states instantly.
- Reduce human error in canary releases by using create_distribution to set precise percentage-based rollouts via chat.
- Speed up development by using create_variant to add new values to flags while you're still in the middle of coding a feature.
- Target specific user groups more accurately by using create_constraint to define segment rules on the fly.
- Audit your entire environment quickly by using list_rules and list_segments to see exactly who sees what.
- Simplify access management by using list_tokens to check your authentication status without hunting through settings.

## How It Works

The bottom line is you get direct conversational control over your feature flags without ever opening the Flipt dashboard.

1. Subscribe to the Flipt MCP on Vinkius.
2. Enter your Flipt URL and API Token in your AI client settings.
3. Ask your agent to list flags, create variants, or check rollout progress.

## Frequently Asked Questions

**How does the Flipt MCP help with feature flags?**
The Flipt MCP lets you manage your flags using natural language. You can list flags, check their current status, and manage variants directly through your AI client.

**Can I use the Flipt MCP to manage rollouts?**
Yes. You can use it to check rollout progress and create new distributions for percentage-based releases, making it much easier to manage canary deployments.

**Does the Flipt MCP work with Cursor or Claude?**
Yes, it works with any MCP-compatible client, including Claude, Cursor, Windsurf, and VS Code.

**How do I set up targeted rollouts with Flipt?**
You can ask your agent to create a new distribution for a specific rule or add constraints to your segments to define exactly which users see a feature.

**Can I check my segments using the Flipt MCP?**
Absolutely. You can list all segments within a namespace to see your targeted user groups and verify your targeting logic.

**Is the Flipt MCP good for DevOps engineers?**
It's a great tool for DevOps because it allows for quick auditing of rollout configurations and namespace partitions during production incidents without leaving your workspace.

**Can I list all feature flags in a specific namespace?**
Yes! Use the `list_flags` tool and provide the `namespaceKey` (e.g., 'default'). The agent will return all flags configured within that partition.

**How do I define a new variant for an existing flag?**
You can use the `create_variant` action. You'll need to specify the `namespaceKey`, `flagKey`, and the new variant's `key` and `name`.

**Is it possible to see the rollout configuration for a specific flag?**
Absolutely. Use the `list_rollouts` tool by providing the target `namespaceKey` and `flagKey` to retrieve the current rollout strategy.