Skip to main content
ClaudeWave

DevCycle - CLI

MCP ServersOfficial Registry20 stars6 forks● TypeScriptMITUpdated today
ClaudeWave Trust Score
95/100
✓ Verified
Passed
  • ✓Open-source license (MIT)
  • ✓Actively maintained (<30d)
  • ✓Topics declared
  • ✓Mature repo (>1y old)
  • ✓Documented (README)
Last scanned: 10/15/2026
Install in Claude Code / Claude Desktop
Method: Manual
Claude Code CLI
git clone https://github.com/DevCycleHQ/cli
claude_desktop_config.json (Claude Desktop)
{
  "mcpServers": {
    "cli": {
      "command": "node",
      "args": ["/path/to/cli/dist/index.js"],
      "env": {
        "DEVCYCLE_CLIENT_SECRET": "<devcycle_client_secret>",
        "DEVCYCLE_PROJECT_KEY": "<devcycle_project_key>"
      }
    }
  }
}
1. Run the command above in your terminal (Claude Code), or paste the JSON config into claude_desktop_config.json (Claude Desktop).
2. Replace any <placeholder> values with your API keys or paths.
3. Restart Claude. The MCP server and its tools appear automatically.
💡 Clone https://github.com/DevCycleHQ/cli and follow its README for install instructions.
Detected environment variables
DEVCYCLE_CLIENT_SECRETDEVCYCLE_PROJECT_KEY
Use cases

MCP Servers overview

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](#repo-configuration).

[![oclif](https://img.shields.io/badge/cli-oclif-brightgreen.svg)](https://oclif.io)
[![Version](https://img.shields.io/npm/v/@devcycle/cli.svg)](https://www.npmjs.com/package/@devcycle/cli)
[![License](https://img.shields.io/npm/l/@devcycle/cli.svg)](https://github.com/DevCycleHQ/cli/blob/main/package.json)

<!-- toc -->
* [Command Topics](#command-topics)
* [Pattern captures the key including surrounding quotes](#pattern-captures-the-key-including-surrounding-quotes)
* [Pattern strips quotes, capturing only the content](#pattern-strips-quotes-capturing-only-the-content)
<!-- tocstop -->

## 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)

1. **Configure your AI assistant to use the hosted MCP server:**

   - **Cursor**: Add to `.cursor/mcp_settings.json`:

     ```json
     {
       "mcpServers": {
         "devcycle": {
           "url": "https://mcp.devcycle.com/mcp"
         }
       }
     }
     ```

   - **Claude Desktop**: Add to your Claude config file:

     ```json
     {
       "mcpServers": {
         "devcycle": {
           "command": "npx",
           "args": [
             "mcp-remote",
             "https://mcp.devcycle.com/mcp"
           ]
         }
       }
     }
     ```

2. **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](docs/mcp.md).

## CLI Documentation

## Setup

### Install the CLI

Using NPM

```sh-session
$ npm install -g @devcycle/cli
```

Or alternatively, using homebrew

```sh-session
$ brew tap devcyclehq/cli
$ brew install devcycle
```

## 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](docs/login.md#dvc-login-sso), the CLI will retrieve and store an access token, which is valid for 24 hours.

The [`login again` command](docs/login.md#dvc-login-again) 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](docs/organizations.md) 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](docs/repo.md#dvc-repo-init) behaves in the same way as `login sso`, but creates a [repo configuration file](#repo-configuration) and stores the project and organization choices there instead.

### Using Client Credentials

#### Client Credentials in Auth File

Use the [`dvc status` command](docs/status.md#dvc-status) 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.

```yaml
clientCredentials:
  client_id: <your client id>
  client_secret: <your client secret>
```

This file should **not** be checked in to version control.

The default location is based on the [oclif configDir](https://oclif.io/docs/config)

If you intend to run the CLI using options that override config file locations, the [`dvc status` command](docs/status.md#dvc-status) 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`](docs/diff.md) and [`dvc usages`](docs/usages.md) commands will use the project defined there.

Otherwise, this is chosen during login or set using the [project select command](docs/projects.md#dvc-projects-select)

### Environment Variables

Set the following environment variables:

```sh-session
$ export DEVCYCLE_CLIENT_ID=<your client id>
$ export DEVCYCLE_CLIENT_SECRET=<your client secret>
$ export DEVCYCLE_PROJECT_KEY=<your project key>
```

### Command-Line Arguments

The CLI can be run with the following arguments:

```sh-session
$ dvc --client-id=<your client id> --client-secret=<your client secret> --project=<your project key>
```

### 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

<!-- usage -->
```sh-session
$ npm install -g @devcycle/cli
$ dvc COMMAND
running command...
$ dvc (--version)
@devcycle/cli/6.6.1 linux-x64 node-v24.21.0
$ dvc --help [COMMAND]
USAGE
  $ dvc COMMAND
...
```
<!-- usagestop -->

<!-- commands -->
# Command Topics

* [`dvc alias`](docs/alias.md) - Manage repository variable aliases.
* [`dvc autocomplete`](docs/autocomplete.md) - display autocomplete installation instructions
* [`dvc cleanup`](docs/cleanup.md) - Replace a DevCycle variable with a static value in the current version of your code. Currently only JavaScript is supported.
* [`dvc diff`](docs/diff.md) - Print a diff of DevCycle variable usage between two versions of your code.
* [`dvc environments`](docs/environments.md) - Create a new Environment for an existing Feature.
* [`dvc features`](docs/features.md) - Create, view, or modify Features with the Management API.
* [`dvc generate`](docs/generate.md) - Generate Devcycle related files.
* [`dvc help`](docs/help.md) - Display help for dvc.
* [`dvc identity`](docs/identity.md) - View or manage your DevCycle Identity.
* [`dvc keys`](docs/keys.md) - Retrieve SDK keys from the Management API.
* [`dvc login`](docs/login.md) - Log in to DevCycle.
* [`dvc logout`](docs/logout.md) - Discards any auth configuration that has been stored in the auth configuration file.
* [`dvc organizations`](docs/organizations.md) - List or switch organizations.
* [`dvc overrides`](docs/overrides.md) - Create, view, or modify Overrides for a Project with the Management API.
* [`dvc projects`](docs/projects.md) - Create, or view Projects with the Management API.
* [`dvc repo`](docs/repo.md) - Manage repository configuration.
* [`dvc status`](docs/status.md) - Check CLI status.
* [`dvc targeting`](docs/targeting.md) - Create, view, or modify Targeting Rules for a Feature with the Management API.
* [`dvc usages`](docs/usages.md) - Print all DevCycle variable usages in the current version of your code.
* [`dvc variables`](docs/variables.md) - Create, view, or modify Variables with the Management API.
* [`dvc variations`](docs/variations.md) - Create a new Variation for an existing Feature.

<!-- commandsstop -->
## Repo Configuration

The following commands can only be run from the root of a configured repository

- [`dvc diff`](docs/diff.md)
- [`dvc usages`](docs/usages.md)
- [`dvc alias`](docs/alias.md)
- [`dvc cleanup`](docs/cleanup.md)

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:

```yml
## the project and organization to use when connecting to the DevCycle Rest API for this repo
project: "project-key"
org:
  id: "org_xxxxxx"
  name: "unique-org-key"
  display_name: "Human Readable Org Name"
## block for configuring "code insights" features like diff and variable usage scanning
## use this section to improve the detection of DevCycle usage within your code
codeInsights:
  ## add additional names to check for when looking for instances of DVCClient from an SDK
  clientNames:
    - "dvcClient"
  ## map the values used in your code to the corresponding variable key in DevCycle
  variableAliases:
    "VARIABLES.ENABLE_V1": "enable-v1"
  ## additional regex patterns used to match variables for a specific file extension
  matchPatterns:
    ## file extension to override for, containing a list of patterns to use
    js:
      - dvcClient\.variable\(\s*["']([^"']*)["']
  ## an array of file glob patterns to include in usage scan
  includeFiles:
    - "*.[jt]s"
  ## an array of file glob patterns to exclude from usage scan
  excludeFiles:
    - "dist/*"
```

### Match Patterns and Aliases

When identifying variable usages in the code, the CLI will identify DevCycle SDK methods by 
continuous-deliverycontinuous-deploymentdevcycledevopsfeature-flagsfeature-togglesopenfeature

What people ask about cli

What is DevCycleHQ/cli?

+

DevCycleHQ/cli is mcp servers for the Claude AI ecosystem. DevCycle - CLI It has 20 GitHub stars and its last recorded update is dated 2026-10-14.

How do I install cli?

+

You can install cli by cloning the repository (https://github.com/DevCycleHQ/cli) or following the README instructions on GitHub. ClaudeWave also provides quick install blocks on this page.

Is DevCycleHQ/cli safe to use?

+

Our security agent has analyzed DevCycleHQ/cli and assigned a Trust Score of 95/100 (tier: Verified). See the full breakdown of passed checks and flags on this page.

Who maintains DevCycleHQ/cli?

+

DevCycleHQ/cli is maintained by DevCycleHQ. The last recorded GitHub activity is dated 2026-10-14, with 4 open issues.

Are there alternatives to cli?

+

Yes. On ClaudeWave you can browse similar mcp servers at /categories/mcp, sorted by popularity or recent activity.

Deploy cli to your cloud

Ship this repo to production in minutes. Each platform spins up its own environment with editable env vars.

Maintain this repo? Add a badge to your README

Drop the badge into your GitHub README to show it's tracked on ClaudeWave. Each badge links back to this page and reflects the live Trust Score.

Featured on ClaudeWave: DevCycleHQ/cli
[![Featured on ClaudeWave](https://claudewave.com/api/badge/devcyclehq-cli)](https://claudewave.com/repo/devcyclehq-cli)
<a href="https://claudewave.com/repo/devcyclehq-cli"><img src="https://claudewave.com/api/badge/devcyclehq-cli" alt="Featured on ClaudeWave: DevCycleHQ/cli" width="320" height="64" /></a>

More MCP Servers

cli alternatives