npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@flipt-io/mcp-server-flipt-v2

v0.0.1

Published

Model Context Protocol server for Flipt v2

Downloads

145

Readme

Flipt v2 MCP Server

mcp-server-flipt-v2

A Model Context Protocol (MCP) server for Flipt v2, allowing AI assistants to manage and evaluate feature flags.

Using Flipt v1? Use @flipt-io/mcp-server-flipt instead.

Features

  • Manage environments and branch environments: list, branch, and propose changes back via your SCM
  • List, create, update, and delete namespaces, flags, segments, variants, rules, rollouts, distributions, and constraints
  • Evaluate boolean and variant flags (single and batch) for specific entities
  • Toggle flags on/off
  • Safe concurrent edits: every write passes Flipt v2's resource revision, so conflicting changes are rejected instead of silently overwritten

Usage

Once the server is running, it will:

  1. Set up a STDIO transport for MCP communication
  2. Register tools and prompts for interacting with Flipt v2

Node

You can install the package globally and run it:

npm install -g @flipt-io/mcp-server-flipt-v2 && mcp-server-flipt-v2

Or run it directly with npx:

npx -y @flipt-io/mcp-server-flipt-v2

Docker

You can also run the server in a Docker container:

docker run -d --name mcp-server-flipt-v2 ghcr.io/flipt-io/mcp-server-flipt-v2:latest

Configuration

The server can be configured using environment variables:

  • FLIPT_URL: The URL of the Flipt API (default: http://localhost:8080)
  • FLIPT_API_KEY: The API key to use for the Flipt API (optional)
  • FLIPT_ENVIRONMENT: The environment used when a tool call does not specify one (default: default)

You can set these in a .env file in the directory where you run the server.

Tools

Every tool that operates inside an environment accepts an optional environmentKey, falling back to FLIPT_ENVIRONMENT.

| Group | Tools | | --- | --- | | Environments | list_environments, list_branches, create_branch, delete_branch, propose_branch, list_branch_changes | | Namespaces | list_namespaces, get_namespace, create_namespace, update_namespace, delete_namespace | | Flags | list_flags, get_flag, create_flag, update_flag, delete_flag, toggle_flag | | Variants | create_variant, update_variant, delete_variant | | Rules | create_rule, delete_rule | | Distributions | create_distribution, delete_distribution | | Rollouts | create_rollout, delete_rollout | | Segments | list_segments, get_segment, create_segment, update_segment, delete_segment | | Constraints | create_constraint, delete_constraint | | Evaluation | evaluate_boolean_flag, evaluate_variant_flag, evaluate_batch |

Notes on the v2 data model

In Flipt v2, variants, rules, rollouts, distributions, and constraints live inside their parent flag or segment document rather than behind their own API endpoints. The corresponding tools read the parent document, apply the change, and write it back with the revision from the read, so a concurrent modification results in a conflict error instead of a lost update — fetch the resource again and retry.

Rules, rollouts, and constraints have no ids in v2; delete them by their index as shown by get_flag / get_segment. Variants and distributions are addressed by key.

License

Apache 2.0