Unleash MCP (Feature Toggle)
释放 MCP 服务器
与 Unleash Feature Toggle 系统集成的模型上下文协议 (MCP) 服务器实现。
概述
该项目使用模型上下文协议 (MCP) 在 LLM 应用程序和 Unleash 功能标记系统之间搭建了桥梁。它允许 AI 应用程序:
从 Unleash 检查功能标志状态
向 LLM 公开功能标志信息
创建功能标志
更新功能标志
列出所有项目
Related MCP server: OpsLevel MCP
目录
要求
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
}
}
}
}贡献
欢迎贡献代码!欢迎提交 Pull 请求。
支持该项目
如果您发现这个项目有帮助,请考虑给我买杯咖啡!
扫描上方二维码或点击此处支持该项目的发展。
执照
该项目根据 MIT 许可证获得许可 - 有关详细信息,请参阅 LICENSE 文件。
Available Tools
21 toolsaddFeatureTagC
Add a tag to a feature flag
Inputs: featureName (required), tagType (required), tagValue (required).
addStrategyC
Add a strategy to a feature flag in a specific environment
Inputs: environment (required), featureName (required), projectId (required), strategyName (required), +2 more.
archiveFlagC
Archive a feature flag in a specific project
Inputs: featureName (required), projectId (required).
createFlagC
Create a new feature flag in an Unleash project
Inputs: name (required), project (required), description, impressionData, +1 more.
deleteStrategyC
Delete a strategy configuration from a feature flag in the specified environment
Inputs: environment (required), featureName (required), projectId (required), strategyId (required).
disableFlagC
Disables a feature flag in the specified environment
Inputs: environment (required), featureName (required), projectId (required).
enableFlagC
Enables a feature flag in the specified environment
Inputs: environment (required), featureName (required), projectId (required).
getEnvironmentsB
Get a list of all environments configured in Unleash
getFeatureTagsC
Get a list of all tags for a specific feature
Inputs: featureName (required).
getFeatureTypesB
Get a list of all feature types with their descriptions and lifetimes
getFlagC
Get detailed information about a feature flag
Inputs: flagName (required).
getProjectFeatureC
Get detailed information about a feature flag in a specific project
Inputs: featureName (required), projectId (required).
getProjectFeaturesC
Get all features for a specific project from the Unleash repository
Inputs: projectId (required).
getProjectsB
Get a list of all projects
listFlagsB
Get a list of all feature flags
markFeaturesStaleC
Marks features as stale or not stale in the specified project
Inputs: features (required), projectId (required), stale (required).
patchFlagB
Modify specific properties of an existing feature flag in an Unleash project using JSON Patch operations
Inputs: featureName (required), patches (required), projectId (required).
setStrategySortOrderC
Set the sort order of strategies for a feature flag in a specific environment
Inputs: environment (required), featureName (required), projectId (required), strategyIds (required).
updateFlagC
Update an existing feature flag in an Unleash project
Inputs: featureName (required), projectId (required), archived, description, +3 more.
updateStrategyC
Update a strategy configuration for a feature flag in the specified environment
Inputs: environment (required), featureName (required), name (required), projectId (required), +3 more.
validateFeatureNameC
Validate if a feature flag name is valid and available for use
Inputs: featureName (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 21 tools
Most tools have distinct purposes, but there is some overlap between getFlag and getProjectFeature, and between updateFlag and patchFlag, which could cause minor confusion. However, descriptions clarify the differences (e.g., project-specific vs. general, full update vs. partial patch), so misselection is unlikely.
Tool names generally follow a consistent verb_noun pattern (e.g., createFlag, deleteStrategy, getProjects), with minor deviations like addFeatureTag (noun_verb) and markFeaturesStale (verb_adjective_noun). The naming is readable and mostly predictable, though not perfectly uniform.
With 21 tools, the count is on the higher side for a feature toggle server, bordering on heavy. While it covers many operations, it might feel overwhelming or redundant, such as having both listFlags and getProjectFeatures for listing features.
The tool set provides comprehensive CRUD and lifecycle coverage for feature flags, including creation, retrieval, updating, archiving, enabling/disabling, and strategy management. It also includes utility functions like validation and environment/project listing, leaving no obvious gaps for the domain.
Maintenance
Related MCP Connectors
Model Context Protocol server for the Apideck Unified API. Connect any MCP-compatible agent framework to 100+ accounting systems, HRIS platforms, file storage providers, and more through one integration. More information https://www.apideck.com/mcp-server
Enable secure connectivity between Sentry issues and debugging data, and LLM clients, using a Model Context Protocol (MCP) server.
A Model Context Protocol server for Wix AI tools
Feature flags, A/B experiments, kill switches, dynamic config & i18n — Shipeasy MCP server.
Related MCP Servers
- AlicenseBqualityDmaintenanceA Model Context Protocol (MCP) server that provides JSON-RPC functionality through OpenRPC.241Apache 2.0

OpsLevel MCPofficial
AlicenseNot gradedqualityFmaintenanceModel Context Protocol (MCP) server for OpsLevel12MIT
argocd-mcpofficial
AlicenseCqualityCmaintenanceAn implementation of Model Context Protocol (MCP) server for Argo CD.1413,348 npm610Apache 2.0- AlicenseNot gradedqualityBmaintenanceA generic, modular server for implementing the Model Context Protocol (MCP).123 npm45ISC