@featureflip/mcp

中文文档
0.10.1发布于 2026/11/13Apache-2.0TypeScriptES Module近 30 天下载 2321

MCP server for managing Featureflip feature flags from AI agents and editors

原始使用文档
文档目录7 节
  1. Setup
  2. Claude Code
  3. Cursor / Cline / generic JSON config
  4. Configuration
  5. Tools
  6. Notes
  7. License

@featureflip/mcp

MCP (Model Context Protocol) server for Featureflip — manage feature flags from AI coding assistants (Claude Code, Cursor, Copilot, Cline) and autonomous agents.

Setup

  1. Create an API token in the Featureflip dashboard:
    • Personal token (ffp_...): Settings → API Tokens — acts as you, for interactive editor use.
    • Service token (ffs_...): Organization Settings → Service Tokens — scoped machine identity for CI/agents.
  2. Add the server to your MCP client:

Claude Code

claude mcp add featureflip -e FEATUREFLIP_TOKEN=ffp_your_token -- npx -y @featureflip/mcp@latest

Cursor / Cline / generic JSON config

{
  "mcpServers": {
    "featureflip": {
      "command": "npx",
      "args": ["-y", "@featureflip/mcp@latest"],
      "env": { "FEATUREFLIP_TOKEN": "ffp_your_token" }
    }
  }
}

Keep the @latest. Without a version, npx reuses the copy it downloaded the first time and never checks npm again, so tools added in later releases would never show up in your client.

Configuration

Env varRequiredDefaultPurpose
FEATUREFLIP_TOKENyes—ffp_/ffs_ API token
FEATUREFLIP_API_URLnohttps://api.featureflip.ioAPI base URL
FEATUREFLIP_ORGnoautoOrg slug (needed only for multi-org personal tokens)

Tools

CRUD: list_projects, list_environments, list_flags, get_flag, create_flag, update_flag, delete_flag, archive_flag, restore_flag, set_flag_expiry, set_flag_owner, set_flag_permanent, toggle_flag, update_flag_environment_config, copy_flag_config, get_targeting, update_targeting, manage_targeting_rule, manage_variation, list_segments, get_segment, manage_segment, manage_project, set_default_flag_lifetime, manage_environment, list_sdk_keys, manage_sdk_key, list_flag_triggers, manage_flag_trigger, list_rollout_ramps, manage_rollout_ramp

Webhooks (Admin token required): list_webhooks, list_webhook_deliveries, manage_webhook, deliver_webhook

Workflows: flag_status (cross-environment view), flag_evaluations (what a flag served in one environment: evaluation counts by variation and rule), compare_environments (which flags differ between two environments), find_stale_flags (cleanup candidates), list_removal_candidates (flags safe to remove, with the prerequisite dependents to remove first), wrap_feature (create flag + get the SDK snippet for your language)

Full reference: https://featureflip.io/docs/integrations/mcp/

Notes

  • Flag evaluation is not exposed over MCP — use the language SDKs in application code.
  • Every mutation is audit-logged and attributed to the token.

License

Apache-2.0

版本与发布记录

@featureflip/mcp 共发布 24 个版本,首次发布于 2026/07/10;过去 12 个月发布了 24 个版本。

版本发布日期距今
0.10.1latest2026/11/131 天前
0.10.02026/11/113 天前
0.9.02026/11/077 天前
0.8.02026/11/077 天前
0.7.02026/11/059 天前
0.6.02026/11/0311 天前

关于 @featureflip/mcp 的常见问题

@featureflip/mcp 是什么?

MCP server for managing Featureflip feature flags from AI agents and editors

如何安装 @featureflip/mcp?

在项目目录运行 npm install @featureflip/mcp,或使用 pnpm add / yarn add / bun add。它还提供命令行工具 featureflip-mcp,可以用 npx featureflip-mcp 直接运行。

@featureflip/mcp 支持 TypeScript 吗?

支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。

@featureflip/mcp 支持 ESM 还是 CommonJS?

以 ES Module 形式发布,推荐使用 import 引入。在 CommonJS 项目中,Node.js 20.19+ / 22.12+ 可以直接 require() 不含顶层 await 的 ES Module,更早的版本需要改用动态 import()。

@featureflip/mcp 需要什么版本的 Node.js?

package.json 的 engines 字段要求 Node.js >=20.19.0。版本不符时 npm 默认只给出警告,开启 engine-strict 后会拒绝安装。

@featureflip/mcp 可以商用吗?

@featureflip/mcp 使用 Apache-2.0 许可。宽松许可:允许商业使用、修改和再分发,并附带明确的专利授权;分发时需保留许可与 NOTICE 文件,修改过的文件要注明改动。以上为概括,不构成法律意见,请以许可原文为准。

@featureflip/mcp 的下载量有多少?

根据 npm 官方下载统计,@featureflip/mcp 在 2026/10/15 – 2026/11/13 这 30 天内被下载 2,321 次,日均约 77 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@featureflip/mcp 还在维护吗?

最新版本 0.10.1 发布于 2026/11/13(1 天前);至今共发布 24 个版本,其中过去 12 个月发布了 24 个;首次发布于 2026/07/10。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。