Unleash Feature Flag MCP Server

Integrations

  • Allows installation and distribution of the MCP server package through npm, enabling users to easily install or run the server using npm or npx commands.

機能フラグMCPサーバーの解放

このリポジトリには、Unleash 機能フラグ管理システムと連携するための Model Context Protocol (MCP) サーバーが含まれています。これにより、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 : 機能フラグのタイプ(例:「リリース」、「実験」、「運用」、「キルスイッチ」)

機能フラグの更新

既存の機能フラグを更新します。

パラメータ:

  • projectId : プロジェクトのID
  • featureId : 機能フラグのID
  • description : 機能フラグの新しい説明
  • type : 機能フラグの新しいタイプ

機能フラグを取得

特定の機能フラグに関する詳細を取得します。

パラメータ:

  • projectId : プロジェクトのID
  • featureId : 機能フラグのID

カーソルを使用する

このMCPサーバーをカーソルで使用するには、カーソル設定で次のコマンドを使用します。

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

カーソル/クロードとの会話例:

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 インスペクターを使用して要求/応答パターンを分析します。

ライセンス

ISC

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

AI アシスタントが自然言語を通じて Unleash 機能フラグをプログラムで管理できるようにする MCP サーバー。これにより、プロジェクト間で機能フラグの作成、更新、取得などの操作が可能になります。

  1. What is MCP?
    1. Installation
      1. Configuration
        1. Available Tools
          1. Get Projects
          2. Get Features
          3. Create Feature Flag
          4. Update Feature Flag
          5. Get Feature Flag
        2. Using with Cursor
          1. Examples
            1. Development
              1. License
                ID: li2pr0w0ih