Skip to main content
Glama

Unleash Feature Flag MCP Server

by ylin6

释放功能标志 MCP 服务器

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

什么是 MCP?

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

安装

您可以从 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 检查器来分析请求/响应模式。

执照

国际学习中心

-
security - not tested
F
license - not found
-
quality - not tested

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

MCP 服务器允许 AI 助手通过自然语言以编程方式管理 Unleash 功能标志,从而实现跨项目创建、更新和检索功能标志等操作。

  1. 什么是 MCP?
    1. 安装
      1. 配置
        1. 可用工具
          1. 获取项目
          2. 获取功能
          3. 创建功能标志
          4. 更新功能标志
          5. 获取功能标志
        2. 与游标一起使用
          1. 示例
            1. 发展
              1. 执照

                Related MCP Servers

                • -
                  security
                  A
                  license
                  -
                  quality
                  An MCP server that implements Claude Code-like functionality, allowing the AI to analyze codebases, modify files, execute commands, and manage projects through direct file system interactions.
                  Last updated -
                  179
                  Python
                  MIT License
                  • Apple
                  • Linux
                • -
                  security
                  A
                  license
                  -
                  quality
                  An MCP server that analyzes codebases and generates contextual prompts, making it easier for AI assistants to understand and work with code repositories.
                  Last updated -
                  10
                  Python
                  MIT License
                • -
                  security
                  A
                  license
                  -
                  quality
                  An MCP server that allows AI assistants to interact with Foundry datasets, ontology objects, and functions through natural language queries and commands.
                  Last updated -
                  2
                  Python
                  MIT License
                • A
                  security
                  F
                  license
                  A
                  quality
                  An MCP server that supercharges AI assistants with powerful tools for software development, enabling research, planning, code generation, and project scaffolding through natural language interaction.
                  Last updated -
                  11
                  40
                  TypeScript
                  • Linux
                  • Apple

                View all related MCP servers

                MCP directory API

                We provide all the information about MCP servers via our MCP API.

                curl -X GET 'https://glama.ai/api/mcp/v1/servers/ylin6/unleash-ff-mcp-server'

                If you have feedback or need assistance with the MCP directory API, please join our Discord server