Skip to main content
Glama
Unleash Feature Flag MCP Server

Unleash Feature Flag MCP Server

by ylin6

释放功能标志 MCP 服务器

此存储库包含一个模型上下文协议 (MCP) 服务器,用于与 Unleash 功能标志管理系统交互。它允许 AI 代理通过 Unleash API 管理功能标志。

什么是 MCP?

模型上下文协议 (MCP) 是一种规范,用于使 AI 模型能够与外部工具和数据源交互。该服务器为 Unleash 实现了 MCP 协议,允许 AI 助手以编程方式管理功能开关。

Related MCP server: @shipeasy/mcp

安装

您可以从 npm 安装该软件包:

npm install -g @ylin6/unleash-ff-mcp-server

或者直接使用 npx 运行:

npx @ylin6/unleash-ff-mcp-server

配置

服务器需要以下环境变量:

  • UNLEASH_API_URL :您的 Unleash API 实例的 URL

  • UNLEASH_AUTH_TOKEN :您的 Unleash 实例的身份验证令牌

可用工具

MCP 服务器提供了以下用于管理功能标志的工具:

获取项目

检索 Unleash 实例中所有项目的列表。

获取功能

检索特定项目内的所有功能标志。

参数:

  • projectId :项目的 ID

创建功能标志

在项目中创建新的功能标志。

参数:

  • projectId :项目的 ID

  • name :功能标志的名称

  • description :功能标志的描述

  • type :功能标志的类型(例如,“release”、“experiment”、“operational”、“kill-switch”)

更新功能标志

更新现有的功能标志。

参数:

  • projectId :项目的 ID

  • featureId :功能标志的 ID

  • description :功能标志的新描述

  • type :功能标志的新类型

获取功能标志

检索有关特定功能标志的详细信息。

参数:

  • projectId :项目的 ID

  • featureId :功能标志的 ID

与游标一起使用

要将此 MCP 服务器与 Cursor 一起使用,请在游标设置中使用以下命令

env UNLEASH_API_URL=XXXX UNLEASH_AUTH_TOKEN=XXX npx -y @ylin6/unleash-ff-mcp-server

示例

与 Cursor/Claude 的对话示例:

You: Show me all the feature flags in the 'dashboard' project

Claude: I'll fetch all the feature flags in the 'dashboard' project for you.
[Claude uses the getFeatures tool with projectId='dashboard']

Claude: Here are all the feature flags in the 'website' project:
- new-homepage (type: release)
- dark-mode (type: experiment)
- beta-footer (type: operational)
...

发展

要检查 MCP 服务器的运行情况,您可以运行:

npm run inspect

这使用 MCP 检查器来分析请求/响应模式。

执照

国际学习中心

Available Tools

5 tools
createFeatureFlagC

Create a new feature flag

Inputs: featureData (required), projectId (required).

getFeatureFlagC

Retrieve a specific feature flag from a project

Inputs: featureId (required), projectId (required).

getFeaturesC

Retrieve features for a specific project

Inputs: projectId (required).

getProjectsC

Retrieve a list of projects

Inputs: no named parameters.

updateFeatureFlagC

Update an existing feature flag

Inputs: featureData (required), featureId (required), projectId (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.3/5.0

    Scored across 5 tools

    Disambiguation5/5

    Every tool has a clearly distinct purpose with no overlap: createFeatureFlag and updateFeatureFlag handle modifications, getFeatureFlag and getFeatures retrieve specific or grouped data, and getProjects lists projects. The descriptions reinforce these distinctions, making misselection unlikely.

    Naming Consistency5/5

    All tools follow a consistent verb_noun pattern with camelCase styling (e.g., createFeatureFlag, getFeatureFlag). There are no deviations in naming conventions, making the set predictable and easy to understand at a glance.

    Tool Count5/5

    With 5 tools, the server is well-scoped for managing feature flags in Unleash. Each tool earns its place by covering essential operations: project listing, feature retrieval, and flag lifecycle management, without being overly sparse or bloated.

    Completeness4/5

    The toolset provides solid CRUD coverage for feature flags (create, get, update) and project listing, but lacks a deleteFeatureFlag tool, which is a minor gap. Agents can likely work around this, but the absence prevents full lifecycle management.

    Maintenance

    ActivityInactive
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      C
      quality
      C
      maintenance
      Flipt’s MCP server allows AI assistants and LLMs to directly interact with your feature flags, segments, and evaluations through a standardized interface. For example, you could ask your AI assistant: “What’s the current state of the ‘dark-mode’ flag?”
      28
      24 npm
      6
      Apache 2.0
    • A
      license
      Not graded
      quality
      A
      maintenance
      A unified MCP server for experimentation and i18n, enabling AI assistants to manage feature flags, experiments, metrics, events, and string translations via natural language.
      677 npm
      MIT