{"id":31830864,"url":"https://github.com/open-feature/mcp","last_synced_at":"2025-10-11T21:28:19.244Z","repository":{"id":316650231,"uuid":"1064233186","full_name":"open-feature/mcp","owner":"open-feature","description":"Model Context Protocol (MCP) Server for OpenFeature","archived":false,"fork":false,"pushed_at":"2025-10-03T20:31:37.000Z","size":232,"stargazers_count":1,"open_issues_count":3,"forks_count":1,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-10-03T22:25:11.285Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/open-feature.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-09-25T18:25:13.000Z","updated_at":"2025-09-30T01:40:04.000Z","dependencies_parsed_at":"2025-10-03T22:15:06.748Z","dependency_job_id":null,"html_url":"https://github.com/open-feature/mcp","commit_stats":null,"previous_names":["open-feature/mcp"],"tags_count":12,"template":false,"template_full_name":null,"purl":"pkg:github/open-feature/mcp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/open-feature%2Fmcp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/open-feature%2Fmcp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/open-feature%2Fmcp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/open-feature%2Fmcp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/open-feature","download_url":"https://codeload.github.com/open-feature/mcp/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/open-feature%2Fmcp/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279008859,"owners_count":26084517,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-11T02:00:06.511Z","response_time":55,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-10-11T21:28:17.168Z","updated_at":"2025-10-11T21:28:19.239Z","avatar_url":"https://github.com/open-feature.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# OpenFeature MCP\n\n## Warning\n\n**This project is in active development.**\n\n## Features\n\nA local Model Context Protocol (MCP) server that provides OpenFeature SDK\ninstallation guidance and Open Feature Remote Evaluation Protocol (OFREP) over stdio.\n\n- **OpenFeature SDK Installation Guides**: Fetch installation prompts for various\n  OpenFeature SDKs\n- **MCP stdio Transport**: Intended for local usage by MCP-compatible clients\n\nThis server is published to the [MCP Registry](https://registry.modelcontextprotocol.io) under `dev.openfeature/mcp`.\n\n## Configure your AI client (local)\n\n### Cursor\n\nAdd to `~/.cursor/mcp_settings.json`:\n\n```json\n{\n  \"mcpServers\": {\n    \"OpenFeature\": {\n      \"command\": \"npx\",\n      \"args\": [\"-y\", \"@openfeature/mcp\"]\n    }\n  }\n}\n```\n\n### VS Code (Continue)\n\nAdd to `.continue/config.json`:\n\n```json\n{\n  \"mcpServers\": {\n    \"OpenFeature\": {\n      \"command\": \"npx\",\n      \"args\": [\"-y\", \"@openfeature/mcp\"]\n    }\n  }\n}\n```\n\n### Claude Code (CLI)\n\nAdd the server via CLI:\n\n```bash\nclaude mcp add --transport stdio openfeature npx -y @openfeature/mcp\n```\n\nThen manage the connection in the CLI with `/mcp`.\n\n### Windsurf\n\nIn the \"Manage MCP servers\" raw config, add:\n\n```json\n{\n  \"mcpServers\": {\n    \"OpenFeature\": {\n      \"command\": \"npx\",\n      \"args\": [\"-y\", \"@openfeature/mcp\"]\n    }\n  }\n}\n```\n\n### Claude Desktop\n\nEdit your Claude Desktop config and add:\n\n```json\n{\n  \"mcpServers\": {\n    \"openfeature\": {\n      \"command\": \"npx\",\n      \"args\": [\"-y\", \"@openfeature/mcp\"]\n    }\n  }\n}\n```\n\nRestart Claude Desktop after saving.\n\n## NPM Global install (optional)\n\nIf you prefer a global install instead of NPX:\n\n```bash\nnpm install -g @openfeature/mcp\n```\n\nNow in your MCP config use `openfeature-mcp` as the command:\n\n```json\n{\n  \"mcpServers\": {\n    \"openfeature\": {\n      \"command\": \"openfeature-mcp\"\n    }\n  }\n}\n```\n\nAll logs are written to stderr. The MCP protocol messages use stdout.\n\n## Available Tools\n\n### `install_openfeature_sdk`\n\nFetches Markdown instructions for installing the OpenFeature SDK for a given\ntechnology. Optionally augments the prompt with installation guidance for one\nor more feature flag providers.\n\n**Parameters:**\n\n- `technology` (string enum): One of the supported technologies listed below\n- `providers` (string array, optional): Zero or more provider identifiers. If\n  present, adds provider-specific installation notes to the prompt (or removes\n  placeholder sections when empty).\n\n**Supported Technologies**:\n\nThe technologies list is build from the avaliable `prompts/*.md`, updated automatically using `scripts/build-prompts.js`\n\n- android\n- dotnet\n- go\n- ios\n- java\n- javascript\n- nestjs\n- nodejs\n- php\n- python\n- react\n- ruby\n\n**Supported Providers**:\n\nThe provider list is sourced automatically from the OpenFeature `open-feature/openfeature.dev`\nrepo; newly added providers there become available here without manual edits.\nSee `scripts/build-providers.js` for details.\n\n### `ofrep_flag_eval`\n\nEvaluate feature flags via OpenFeature Remote Evaluation Protocol (OFREP).\nIf `flag_key` is omitted, performs bulk evaluation.\n\nReferences:\n[`open-feature/protocol` repo](https://github.com/open-feature/protocol),\n[OFREP OpenAPI spec](https://raw.githubusercontent.com/open-feature/protocol/refs/heads/main/service/openapi.yaml)\n\nParameters (all optional unless noted):\n\n- `base_url` (string, optional): Base URL of your OFREP-compatible flag\n  service. If omitted, the server uses env/config (see below).\n- `flag_key` (string, optional): If provided, calls single flag evaluation:\n  `/ofrep/v1/evaluate/flags/{key}`. If omitted, calls bulk:\n  `/ofrep/v1/evaluate/flags`.\n- `context` (object, optional): Evaluation context, e.g. `{ \"targetingKey\":\n  \"user-123\", ... }`.\n- `etag` (string, optional): For bulk requests, sent as `If-None-Match` to\n  enable 304 caching semantics.\n- `auth` (object, optional): Inline auth for this call only.\n  - `bearer_token` (string, optional): Sets `Authorization: Bearer \u003ctoken\u003e`.\n  - `api_key` (string, optional): Sets `X-API-Key: \u003ckey\u003e`.\n\nAuth and base URL resolution (priority):\n\n1. Tool call args: `base_url`, `auth.bearer_token`, `auth.api_key`\n2. Environment variables: `OPENFEATURE_OFREP_BASE_URL` (or `OFREP_BASE_URL`),\n   `OPENFEATURE_OFREP_BEARER_TOKEN` (or `OFREP_BEARER_TOKEN`),\n   `OPENFEATURE_OFREP_API_KEY` (or `OFREP_API_KEY`)\n3. Config file: `~/.openfeature-mcp.json` (override with\n   `OPENFEATURE_MCP_CONFIG_PATH`)\n\nExample `~/.openfeature-mcp.json`:\n\n```json\n{\n  \"OFREP\": {\n    \"baseUrl\": \"https://flags.example.com\",\n    \"bearerToken\": \"\u003ctoken\u003e\",\n    \"apiKey\": \"\u003ckey\u003e\"\n  }\n}\n```\n\nNotes:\n\n- Bulk requests may return `ETag`. Pass it back via `etag` to leverage 304 Not\n  Modified.\n- Either bearer token or API key can be supplied; both are supported by the\n  spec.\n\n## Development\n\n### Prerequisites\n\n- Node.js 18+\n\n### Setup\n\n1. Install dependencies:\n\n   ```bash\n   npm install\n   ```\n\n2. Add or edit install guides in the `prompts/` folder (Markdown). These are\n   bundled at build time.\n\n3. Build prompts bundle:\n\n   ```bash\n   npm run build-prompts\n   ```\n\n4. Build TypeScript:\n\n   ```bash\n   npm run build\n   ```\n\n5. Run locally (binary entrypoint):\n\n   ```bash\n   node dist/cli.js\n   ```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopen-feature%2Fmcp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fopen-feature%2Fmcp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopen-feature%2Fmcp/lists"}