• SYNCED
  • UPDATED
  • VERIFIED
  • HUMAN

How to batch update feature flags with your AI

Connect Flagsmith to your AI client to manage toggles through conversation. Once connected, you can modify entire environments without clicking through the dashboard.

Ask AI about this page

Short answer

How can I batch update feature flags with my AI?

Your AI uses the Flagsmith MCP to fetch your current settings and then applies updates to multiple toggles based on your instructions. You can target specific environments or groups of flags in a single command. This gives you direct control over remote configurations through your chat interface.

The outcomes

Where your changes land

What happens when you give your AI a command.

SYNCED

Environment alignment

The AI checks your current settings to ensure the requested changes match your existing environment state. You get a clear view of what is active before anything changes.

UPDATED

Bulk toggle changes

Multiple flags are updated in one go. Your AI executes the changes across the specified environment immediately.

VERIFIED

State confirmation

The AI confirms the new status of your flags. You receive a summary of which toggles were successfully modified.

HUMAN

Manual oversight

You decide which flags are safe to batch update. The AI won't guess your intent for sensitive production toggles without your explicit command.

The workflow

What your AI does when the command arrives.

The AI handles the heavy lifting of navigating the Flagsmith API.

  1. Fetch current state

    The AI pulls a list of all active flags and their current values for your chosen environment.

    get_environment_flags
  2. Identify targets

    Your AI parses your request to find the specific flags or patterns you want to change.

    get_environment_flags
  3. Apply changes

    The AI sends the new configuration values to Flagsmith for every flag in your list.

    update_flag_v2
  4. Report results

    The AI tells you exactly which flags were updated and which ones failed.

    update_flag_v2

Try it

Copy these to start.

Use these prompts to trigger your first batch update.

Starting points

Replace the bracketed text with your actual environment names or flag keys.

Flagsmith Connector

You're all set. Choose your MCP client and follow the setup instructions.

Connector linkhttps://edge.vinkius.com/vk_preview_xgmQb2dzh97FZxv1IILo2vfMxbDzCf9lyXcSnJKm/mcp

Claude Desktop

Follow the steps below to connect in seconds.

  1. 1In Claude Desktop, open Settings → Connectors.
  2. 2Click “Add custom connector” and paste the connector link above as the remote MCP server URL.
  3. 3Click Add and start a new chat — Flagsmith capabilities are ready to use.
Configuration · claude_desktop_config.jsonCopy
{
  "mcpServers": {
    "flagsmith-mcp": {
      "url": "https://edge.vinkius.com/vk_preview_xgmQb2dzh97FZxv1IILo2vfMxbDzCf9lyXcSnJKm/mcp"
    }
  }
}
Copy into chat04
  • Get all flags in the production environment.

  • Turn off the 'new_onboarding_flow' and 'beta_search' flags in staging.

  • Update all flags starting with 'ui_test_' to be enabled in development.

  • Show me the current status of the 'payment_gateway_v2' flag in production.

  • Claude
  • ChatGPT
  • Cursor
  • VS Code
  • Windsurf
  • Claude Code
  • JetBrains
  • Cline

Start here

Connect Flagsmith once, then ask.

Just link your account once. Your credentials stay encrypted and secure, and you can start managing flags immediately from your favorite AI client.

Connect Flagsmith to your AI

FAQ

How this task behaves

  • 01

    Can the AI delete feature flags?

    No. The available tools only allow for fetching and updating flag values, not deleting them.

  • 02

    Will the AI change my production flags without asking?

    No. The AI only performs updates when you explicitly tell it to change a flag.

  • 03

    Can I update flag segments or rules?

    No. The current tools are limited to updating the flag values themselves.

  • 04

    How does the AI know which flags to update?

    It uses the current environment data to identify the flags you mentioned in your prompt.

  • 05

    Can I use this to create new flags?

    No. You can only update existing flags that the AI can see in your environment.

  • More questions about Flagsmith? The Connector page answers them. See everything the Flagsmith Connector can do

Connect Flagsmith to Claude, Cursor, ChatGPT & more