
Devcycle
com.devcycle由 devcycle.com 发布官方发布者v6.6.1更新于 Oct 24, 2026
DevCycle MCP server for feature flag management
概览
托管式 DevCycle MCP 服务器,让 AI 编程助手创建、更新和管理功能开关、变量、变体与定向规则。
- 可以做什么
- 创建、查看和修改功能开关、变量、变体、环境与定向规则
- 管理自助定向覆盖(Self-Targeting Overrides),获取项目的 SDK 密钥
- 列出或切换账号下的组织与项目
- 生成类型定义及相关的 DevCycle 文件,以便类型安全地使用
- 适用场景
- 当你使用 DevCycle 功能开关,希望助手在不离开编辑器的情况下修改开关、查看定向配置或生成 SDK 密钥与类型定义时适用。
- 运行要求
- 远程托管端点,无需本地安装。需要 OAuth 认证,首次使用时会引导完成授权。需要一个可访问相应组织与项目的 DevCycle 账号。
安装
在 SourceWeft 中
- 打开 控制台中的 Devcycle,将其添加到工作区。
- 连接 所需的 凭据。它们会被私密存储,绝不会在公开页面上展示。
- 为需要使用其工具的对话启用该服务。
Web executable,通过 Streamable HTTP。 远程服务在工作区中配置后即可从网页运行时运行。
交给智能体安装
把这段提示词粘贴到 Claude Code、Codex、Cursor 等智能体,或 SourceWeft 对话中。智能体会读取该服务器的安装指南,先向你展示发布者、端点和登录方式,经你同意后再把它添加到你的客户端。密钥不会写进任何命令。
阅读 https://sourceweft.com/mcp/com.devcycle%2Fmcp/install.md,并按其中说明把这个 MCP 服务器接入我的客户端。修改任何配置之前,先告诉我它的发布者、端点和登录方式,等我确认。不要把 API 密钥写进命令或我会提交的文件;问我密钥应从哪里获取。其他 MCP 客户端
把它添加到你客户端的 mcpServers 配置中。 客户端会在首次连接时完成 OAuth 登录。
{
"mcpServers": {
"devcycle": {
"type": "http",
"url": "https://mcp.devcycle.com/mcp"
}
}
}README
DevCycle CLI & MCP Server
This repository contains the DevCycle CLI for managing feature flags from the command line, plus an MCP (Model Context Protocol) server that enables AI coding assistants to interact with DevCycle.
Major features include:
- Fully manage your Features, Variables, Variations and Targeting Rules from the command line
- Detect and list DevCycle Variable usages in your codebase
- Manage your Self-Targeting Overrides to quickly switch between Variable values
- Generate type definitions for type-safe usage of DevCycle (Typescript only)
- MCP (Model Context Protocol) server for AI-powered feature flag management with Cursor and Claude
The CLI can be customized in several ways using command-line args or by creating a configuration file.
- Command Topics
- Pattern captures the key including surrounding quotes
- Pattern strips quotes, capturing only the content
MCP Server for AI Assistants
The DevCycle MCP (Model Context Protocol) server enables AI coding assistants like Cursor and Claude to manage feature flags directly from your development environment. DevCycle offers a hosted MCP server that requires no local installation.
Quick Setup (No Installation Required)
-
Configure your AI assistant to use the hosted MCP server:
-
Cursor: Add to
.cursor/mcp_settings.json: -
Claude Desktop: Add to your Claude config file:
-
-
That's it! The server will guide you through OAuth authentication when you first use it.
Your AI assistant can now create, update, and manage feature flags on your behalf.
For local installation options, detailed configuration, available tools, and advanced usage, see the complete MCP documentation.
CLI Documentation
Setup
Install the CLI
Using NPM
Or alternatively, using homebrew
Authentication
Many of the CLI commands require DevCycle API authorization. There are several ways to provide these credentials.
Using Access Tokens (preferred)
Login Command
By using the login sso command, the CLI will retrieve and store an access token, which is valid for 24 hours.
The login again command can be used to retrieve a new access token using the saved project and organization without prompting for them.
This process will open browser windows to interact with the DevCycle universal login page. It will first obtain a personal access token, then prompt you to choose an organization. A second browser window is used to authenticate the CLI with your chosen organization.
To switch organizations once logged in, the organizations select command can be used.
If executing the CLI in a containerized environment, please ensure one of the following PORTs can be accessed via Port Forwarding: 2194 (default), 2195, 2196 or 8080. This will allow the authentication process to complete and set the access token appropriately.
Repo Init Command
The repo init command behaves in the same way as login sso, but creates a repo configuration file and stores the project and organization choices there instead.
Using Client Credentials
Client Credentials in Auth File
Use the dvc status command to find the configuration file location for your platform. The credentials can be stored in the file pointed to by the Auth config path. Create the file if it does not exist, with the following contents.
This file should not be checked in to version control.
The default location is based on the oclif configDir
If you intend to run the CLI using options that override config file locations, the dvc status command command can be run with those options to confirm that the file locations are as expected.
Project Selection
You also need to specify the default project ID for the CLI to use.
If there is a repo configuration file, the dvc diff and dvc usages commands will use the project defined there.
Otherwise, this is chosen during login or set using the project select command
Environment Variables
Set the following environment variables:
Command-Line Arguments
The CLI can be run with the following arguments:
Github Action
The Devcycle Github actions are configured with auth information through the project-key, client-id and client-secret configuration parameters. This is passed to the CLI via command line arguments.
Usage
Command Topics
dvc alias- Manage repository variable aliases.dvc autocomplete- display autocomplete installation instructionsdvc cleanup- Replace a DevCycle variable with a static value in the current version of your code. Currently only JavaScript is supported.dvc diff- Print a diff of DevCycle variable usage between two versions of your code.dvc environments- Create a new Environment for an existing Feature.dvc features- Create, view, or modify Features with the Management API.dvc generate- Generate Devcycle related files.dvc help- Display help for dvc.dvc identity- View or manage your DevCycle Identity.dvc keys- Retrieve SDK keys from the Management API.dvc login- Log in to DevCycle.dvc logout- Discards any auth configuration that has been stored in the auth configuration file.dvc organizations- List or switch organizations.dvc overrides- Create, view, or modify Overrides for a Project with the Management API.dvc projects- Create, or view Projects with the Management API.dvc repo- Manage repository configuration.dvc status- Check CLI status.dvc targeting- Create, view, or modify Targeting Rules for a Feature with the Management API.dvc usages- Print all DevCycle variable usages in the current version of your code.dvc variables- Create, view, or modify Variables with the Management API.dvc variations- Create a new Variation for an existing Feature.
Repo Configuration
The following commands can only be run from the root of a configured repository
Many of the options available as command-line args can also be specified using a repo configuration file. The default
location for this file is <REPO ROOT>/.devcycle/config.yml.
This location can be overridden using the --repo-config-path flag.
The configuration file format is documented below:
Match Patterns and Aliases
When identifying variable usages in the code, the CLI will identify DevCycle SDK methods by default. To capture other usages you may define match patterns. Match patterns are defined by file extension.
:::note Each pattern must include exactly one capture group for the variable key. Capture the entire key value (including surrounding quotes if you choose the “with quotes” pattern). :::
Match patterns can be defined in the configuration file, for example:
Capturing with or without quotes
Match patterns can capture variable keys with or without quotes, which affects whether aliases are needed:
With quotes:
- Matches:
dvcClient.variable('my-variable', default) - Captures:
'my-variable'(with quotes)
Without quotes (aliases or generated constants required):
- Matches:
dvcClient.variable('my-variable', default) - Captures:
my-variable
Match patterns can also be passed directly to relevant commands using the --match-pattern flag:
When testing your regex the --show-regex flag can be helpful. This will print all patterns used to find matches in your codebase.
Custom Wrapper Functions
If you use wrapper functions around the SDK, add patterns for them.
Example: Custom wrapper functions
来源:README.md,提交 c0242ab
工具
0版本历史
3- v6.6.1最新Oct 14, 2026
- v6.6.0Oct 7, 2026
- v6.3.2Sep 16, 2026
评分
已满足适用检查项的 85%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通必需25 分
- 已声明认证方式必需10 分
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分