| description |
|---|
Reflag supports the MCP protocol. Understand how to connect the agent in your code editor to your Reflag account. |
Model Context Protocol enables seamless integration of your Large Language Model (LLM) with external data sources, such as a code editor. This guide will walk you through connecting your editor to Reflag data efficiently.
{% embed url="https://139729605.fs1.hubspotusercontent-eu1.net/hubfs/139729605/Videos/bucketco-website/cursor-mcp-flag-feature_full-height_h264.mp4" %}
Guide to Integrating Model Context Protocol with Reflag Data
The Model Context Protocol (MCP) is an open standard that facilitates seamless integration of AI models with various data sources and tools. In Reflag, MCP enhances your code editor's ability to interpret and manage feature flags, comprehending their states and interconnections within the codebase. This forms an efficient link between feature management workflows and AI-driven development tools. With Reflag hosting the MCP server, getting started is incredibly straightforward.
{% stepper %} {% step %}
- Cursor
- VSCode {% endstep %}
{% step %}
{% endstep %} {% endstepper %}
{% hint style="info" %} Ensure your editor/client and Node.js versions are up to date. {% endhint %}
To install the MCP into your preferred editor, use the Reflag CLI. This tool will configure your editor and provide agent guidelines, enhancing editor intelligence.
To set up the MCP support, invoke:
npx reflag mcpBelow are the manual setup steps for some of the popular editors, but there are more MCP-compatible clients. Before you start with the manual setup, you first need the App ID from your app settings page.
{% hint style="info" %} You can use mcp-remote to enable authentication and remote MCP connections in clients that don't yet support these features. {% endhint %}
- Open Cursor.
- Go to
Settings > Cursor Settings. - Click
MCPandNew MCP Serverand make sure the Reflag MCP server entry is present:
{
"mcpServers": {
"Reflag": {
"url": "https://app.reflag.com/api/mcp"
}
}
}{% hint style="info" %}
Cursor also supports workspace-specific MCP servers by adding the above configuration to .cursor/mcp.json inside your project directory.
{% endhint %}
- Save, go back to Cursor, and start prompting!
{% hint style="info" %} You must enable the Copilot agent mode to use MCP in Visual Studio Code Copilot chat. {% endhint %}
- Open VS Code.
- Open the command palette, typically
CMD + SHIFT + PorCTRL + SHIFT + P. - Type and select
MCP: Add Server.... - Select
HTTP. - Enter
https://app.reflag.com/api/mcpas the URL - Enter
Reflagas the server ID.
{% hint style="info" %}
VS Code also supports workspace-specific MCP servers by adding the above configuration to .vscode/mcp.json inside your project directory.
{% endhint %}
- Start prompting!
- Open Cursor Desktop.
- Go to
Settings > General > Claude Settings (Configure) > Connectors - Click Add Custom Connector
- Enter "Reflag" as the name and paste the MCP URL in:
https://app.reflag.com/api/mcp
- On the command line inside your project directory, enter:
claude mcp add --transport http Reflag https://app.reflag.com/api/mcp - Start
claudeand enter/mcpto begin the authentication process