Skip to content

DevCycleHQ-Sandbox/openfeature-mcp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OpenFeature MCP Local Server (stdio)

Warning

This project is in active development and intended for testing only. APIs, prompts, and behavior may change without notice. Do not use in production.

A local Model Context Protocol (MCP) server that provides OpenFeature SDK installation guidance over stdio.

Features

  • No Authentication Required: Simplified implementation without OAuth or user management
  • OpenFeature SDK Installation Guides: Fetch installation prompts for various OpenFeature SDKs
  • MCP stdio Transport: Intended for local usage by MCP-compatible clients

Configure your AI client (local)

Cursor

Add to ~/.cursor/mcp_settings.json:

{
  "mcpServers": {
    "OpenFeature": {
      "command": "npx",
      "args": ["-y", "@openfeature/mcp"]
    }
  }
}

VS Code (Continue)

Add to .continue/config.json:

{
  "mcpServers": {
    "OpenFeature": {
      "command": "npx",
      "args": ["-y", "@openfeature/mcp"]
    }
  }
}

Claude Code (CLI)

Add the server via CLI:

claude mcp add --transport stdio openfeature npx -y @openfeature/mcp

Then manage the connection in the CLI with /mcp.

Windsurf

In the "Manage MCP servers" raw config, add:

{
  "mcpServers": {
    "OpenFeature": {
      "command": "npx",
      "args": ["-y", "@openfeature/mcp"]
    }
  }
}

Claude Desktop

Edit your Claude Desktop config and add:

{
  "mcpServers": {
    "openfeature": {
      "command": "npx",
      "args": ["-y", "@openfeature/mcp"]
    }
  }
}

Restart Claude Desktop after saving.

NPM Global install (optional)

If you prefer a global install instead of NPX:

npm install -g @openfeature/mcp

Now in your MCP config use openfeature-mcp as the command:

{
  "mcpServers": {
    "openfeature": {
      "command": "openfeature-mcp"
    }
  }
}

All logs are written to stderr. The MCP protocol messages use stdout.

Available Tools

install_openfeature_sdk

Fetches and returns OpenFeature SDK install prompt Markdown for a given guide from the bundled prompts.

Parameters:

  • guide (string enum): One of the supported guides listed below

Supported Guides (bundled):

  • android
  • dotnet
  • go
  • ios
  • java
  • javascript
  • nestjs
  • nodejs
  • php
  • python
  • react
  • ruby

Development

Prerequisites

  • Node.js 18+

Setup

  1. Install dependencies:

    npm install
  2. Add or edit install guides in the prompts/ folder (Markdown). These are bundled at build time.

  3. Build prompts bundle:

    npm run build-prompts
  4. Build TypeScript:

    npm run build
  5. Run locally (binary entrypoint):

    node dist/cli.js

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published