What You Can Do with MCP
With Confidence MCP servers, you can:- Get help with setting up your integration
- Search documentation
- Create and configure feature flags
- Add variants and define schemas
- Set up targeting rules
- Test flag resolution
- Analyze flag usage in your codebase
Before You Begin
To complete this quickstart:- You need a Confidence account
- You need an AI assistant that supports MCP: Claude Code, Cursor, or VS Code with GitHub Copilot
Set Up the Documentation MCP Server
The Documentation MCP server gives your AI assistant access to Confidence documentation through semantic search. No authentication required.- Claude Code
- Cursor
- VS Code
Set Up the Flags MCP Server
The Flags MCP server enables your AI assistant to create and manage feature flags. This server requires authentication.- Claude Code
- Cursor
- VS Code
/mcp and select confidence-flags to authenticate.Create a Feature Flag with AI
This tutorial walks through creating the same header redesign flag as the Configure a Flag quickstart, but using natural language prompts instead of the UI.Verify Your Client Exists
The MCP server requires an existing client. List your available clients to find one to use:List my available clients in ConfidenceIf you don’t have a client yet, create one in the Confidence UI before continuing.
Create a Flag with Schema
Create a flag and define its schema in a single prompt:Create a flag called “header-redesign” with a string property “color” and an integer property “size”Or you can ask it to base the schema of an existing struct in your code base:
Create a flag in Confidence with schema as my header-design struct
Add Variants
Add the variants you want to test:Add a variant “default-style” to the header-redesign flag with color “black” and size 14
Add a variant “new-style” to the header-redesign flag with color “blue” and size 16
Create an Override Rule
Set up an override rule to test a specific variant:Create an override rule on header-redesign for user_id “user-test-id” to see the “new-style” variant
Test Flag Resolution
Verify your configuration works as expected:Test resolving header-redesign for a user with user_id “user-test-id”The AI assistant tells you which variant resolves and why.
Example Prompts for Common Tasks
Use these prompts for everyday flag management:Flag Operations
- “List all feature flags in Confidence”
- “Get details about the checkout-flow flag”
- “Create a boolean flag called enable-dark-mode”
- “Add a variant to the signup-experiment flag”
Targeting and Rules
- “Create an override rule on checkout-flow for user_id ‘test-user’ to see variant ‘new-checkout’”
- “Test what variant resolves for checkout-flow with user_id ‘test-user‘“
Documentation and Integration
- “Show how to integrate Confidence with Python”
- “Search documentation for information about A/B testing”
- “Show the React SDK integration guide”
Codebase Analysis
- “Analyze what flags to clean up in this codebase”
- “Find where the header-redesign flag appears in the code”

