Skip to main content
Glama

Unleash MCP (Feature Toggle)

MCPサーバーの解放

Unleash Feature Toggle システムと統合する Model Context Protocol (MCP) サーバー実装。

概要

このプロジェクトは、モデルコンテキストプロトコル(MCP)を用いて、LLMアプリケーションとUnleash機能フラグシステム間の橋渡しを行います。これにより、AIアプリケーションは以下のことが可能になります。

  1. Unleashから機能フラグのステータスを確認する
  2. 機能フラグ情報をLLMに公開する
  3. 機能フラグを作成する
  4. 機能フラグの更新
  5. すべてのプロジェクトを一覧表示する

目次

要件

  • Node.js (v18以上)
  • TypeScript (v5.0 以上)
  • Unleash サーバーインスタンスへのアクセス

インストール

# Install dependencies npm i

建築

Unleash MCP サーバーは、LLM アプリケーションと Unleash 機能フラグ システム間のブリッジとして機能します。

+----------------+ +-------------------+ +----------------+ | | | | | | | LLM App | <--> | Unleash MCP | <--> | Unleash API | | (MCP Client) | | Server | | Server | | | | | | | +----------------+ +-------------------+ +----------------+

発達

プロジェクト構造

unleash-mcp-server/ ├── src/ │ ├── index.ts # Main entry point │ ├── server.ts # Server implementation │ ├── config.ts # Configuration handling │ ├── transport/ # MCP transport implementations │ │ ├── http.ts # HTTP/SSE transport │ │ └── stdio.ts # STDIO transport │ ├── unleash/ # Unleash API client implementations │ │ ├── unleash-client.ts # Main Unleash client │ │ ├── get-feature-flag.ts │ │ └── get-all-projects.ts │ ├── resources/ # MCP resource implementations │ │ ├── flags.ts # Feature flag resources │ │ └── projects.ts # Project resources │ ├── tools/ # MCP tool implementations │ │ ├── get-flag.ts # Get feature flag tool │ │ └── get-projects.ts # Get projects tool │ └── prompts/ # MCP prompt implementations │ ├── flag-check.ts # Check single flag │ └── batch-flag-check.ts # Check multiple flags ├── tests/ # Tests └── package.json # Project configuration

コーディング標準

  • 命名規則:
    • ファイル: kebab-case.ts を使用します (例: feature-flag.ts )
    • クラス: PascalCase を使用する (例: UnleashClient )
    • 関数/メソッド: キャメルケースを使用する (例: getFlagStatus )
    • インターフェース/型: PascalCase を使用する (例: FeatureFlagConfig )
  • 輸入品:
    • ローカルファイルをインポートするときは常に .js 拡張子を含める
    • インポートの順序に従う: Node.js 組み込み → 外部依存関係 → ローカルインポート
    • デフォルトのエクスポートではなく名前付きエクスポートを使用する
  • ドキュメント:
    • パブリック関数、クラス、インターフェースには JSDoc コメントを使用する
    • 複雑なロジックをインラインコメントで文書化する

建物

# Compile TypeScript npm run build # Run the server npm start

テスト

# Run tests npm test

検査

# MCP stdio inspect npm run build npx @modelcontextprotocol/inspector node dist/index.js # MCP sse inspect npm start npx @modelcontextprotocol/inspector

使い方

Claude または Cursor 構成の場合:

{ "mcpServers": { "unleash": { "command": "npx", "args": [ "-y", "unleash-mcp" ], "env": { "UNLEASH_URL": "YOUR_UNLEASH_END_POINT", "UNLEASH_API_TOKEN": "YOUR_UNLEASH_API_TOKEN", "MCP_TRANSPORT": "stdio", "MCP_HTTP_PORT": 3001 } } } }

貢献

貢献を歓迎します!お気軽にプルリクエストを送信してください。

プロジェクトを支援する

このプロジェクトが役に立つと思ったら、私にコーヒーをご馳走していただけると嬉しいです。

このプロジェクトの開発をサポートするには、上記の QR コードをスキャンするか、ここをクリックしてください

ライセンス

このプロジェクトは MIT ライセンスに基づいてライセンスされています - 詳細については LICENSE ファイルを参照してください。

You must be authenticated.

A
security – no known vulnerabilities
A
license - permissive license
A
quality - confirmed to work

hybrid server

The server is able to function both locally and remotely, depending on the configuration or use case.

Unleash Feature Toggle システムと統合する Model Context Protocol (MCP) サーバー実装。

  1. 概要
    1. 目次
      1. 要件
        1. インストール
          1. 建築
            1. 発達
              1. プロジェクト構造
              2. コーディング標準
              3. 建物
              4. テスト
              5. 検査
            2. 使い方
              1. 貢献
                1. プロジェクトを支援する
                  1. ライセンス

                    Related MCP Servers

                    • A
                      security
                      A
                      license
                      A
                      quality
                      A beginner-friendly Model Context Protocol (MCP) server that helps users understand MCP concepts, provides interactive examples, and lists available MCP servers. This server is designed to be a helpful companion for developers working with MCP. Also comes with a huge list of servers you can install.
                      Last updated -
                      3
                      9
                      36
                      JavaScript
                      Apache 2.0
                    • A
                      security
                      F
                      license
                      A
                      quality
                      A Model Context Protocol (MCP) server that provides a simple sleep/wait tool, useful for adding delays between operations such as waiting between API calls or testing eventually consistent systems.
                      Last updated -
                      1
                      6
                      7
                      JavaScript
                    • -
                      security
                      -
                      license
                      -
                      quality
                      A specialized server that helps users create new Model Context Protocol (MCP) servers by providing tools and templates for scaffolding projects with various capabilities.
                      Last updated -
                      1
                      TypeScript
                    • -
                      security
                      -
                      license
                      -
                      quality
                      A Model Context Protocol (MCP) server that interacts with system APIs, allowing users to check connections, search employees, register breakfast, and update chemical information by shifts.
                      Last updated -
                      2

                    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/cuongtl1992/unleash-mcp'

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