diff --git a/.cursor-plugin/marketplace.json b/.cursor-plugin/marketplace.json index 5ff10ceb..379be0f1 100644 --- a/.cursor-plugin/marketplace.json +++ b/.cursor-plugin/marketplace.json @@ -397,6 +397,11 @@ "name": "excalidraw", "source": "third_party/excalidraw", "description": "Draw and export hand-drawn diagrams from chat." + }, + { + "name": "statsig", + "source": "third_party/statsig", + "description": "Inspect and manage feature gates, experiments, dynamic configs, and metrics." } ] } diff --git a/README.md b/README.md index 6cff83a3..4d9bd7c4 100644 --- a/README.md +++ b/README.md @@ -80,6 +80,7 @@ Official Cursor plugins for popular developer tools, frameworks, and SaaS produc | `meltwater` | [Meltwater](third_party/meltwater/) | Cursor | Integrations | Search media and social mentions and pull analytics. | | `daloopa` | [Daloopa](third_party/daloopa/) | Cursor | Integrations | Pull source-linked fundamentals, KPIs, filings, and prices. | | `excalidraw` | [Excalidraw](third_party/excalidraw/) | Cursor | Integrations | Draw and export hand-drawn diagrams from chat. | +| `statsig` | [Statsig](third_party/statsig/) | Cursor | Integrations | Inspect and manage feature gates, experiments, dynamic configs, and metrics. | Author values match each plugin’s `plugin.json` `author.name` (Cursor lists `plugins@cursor.com` in the manifest). ## Repository structure diff --git a/third_party/statsig/.cursor-plugin/plugin.json b/third_party/statsig/.cursor-plugin/plugin.json new file mode 100644 index 00000000..d0b20df4 --- /dev/null +++ b/third_party/statsig/.cursor-plugin/plugin.json @@ -0,0 +1,35 @@ +{ + "name": "statsig", + "displayName": "Statsig", + "version": "1.0.0", + "minClientVersions": { + "cursor": "3.13.0" + }, + "description": "Inspect and manage feature gates, experiments, dynamic configs, and metrics.", + "author": { + "name": "Cursor", + "email": "plugins@cursor.com" + }, + "homepage": "https://docs.statsig.com/integrations/mcp/cursor", + "repository": "https://github.com/cursor/plugins", + "license": "MIT", + "logo": "assets/logo.png", + "keywords": [ + "statsig", + "feature flags", + "feature gates", + "experiments", + "a/b testing", + "dynamic configs", + "metrics", + "mcp" + ], + "category": "integrations", + "tags": [ + "statsig", + "feature-flags", + "experimentation", + "mcp" + ], + "mcpServers": "./mcp.json" +} diff --git a/third_party/statsig/CHANGELOG.md b/third_party/statsig/CHANGELOG.md new file mode 100644 index 00000000..bb8b8f45 --- /dev/null +++ b/third_party/statsig/CHANGELOG.md @@ -0,0 +1,9 @@ +# Changelog + +All notable changes to this plugin will be documented here. + +## 1.0.0 — initial release + +- Added the `statsig` MCP server pointing at Statsig's hosted Streamable HTTP endpoint (`https://api.statsig.com/v1/mcp`). +- Auth uses OAuth with Statsig user login — no Console API key or client ID to configure. +- Logo: Statsig's official mark, from the `statsig-io` GitHub organization. diff --git a/third_party/statsig/LICENSE b/third_party/statsig/LICENSE new file mode 100644 index 00000000..ca2bba77 --- /dev/null +++ b/third_party/statsig/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2026 Cursor + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/third_party/statsig/README.md b/third_party/statsig/README.md new file mode 100644 index 00000000..9182c4c4 --- /dev/null +++ b/third_party/statsig/README.md @@ -0,0 +1,65 @@ +# Statsig + +Cursor plugin that connects agents to [Statsig](https://www.statsig.com) through Statsig's official remote [Model Context Protocol](https://modelcontextprotocol.io/) server. + +List and inspect feature gates, experiments, dynamic configs, and metrics in the signed-in Statsig project, pull gate and experiment results, and (with write permissions) create or update gates, experiments, and configs from chat. + +Official Cursor setup: https://docs.statsig.com/integrations/mcp/cursor + +## Install + +1. Open **Cursor Settings → Plugins**. +2. Search for **Statsig**. +3. Click **Install**, then complete the Statsig sign-in prompt. + +Or run `/add-plugin statsig` in chat. + +## MCP + +```json +{ + "mcpServers": { + "statsig": { + "type": "http", + "url": "https://api.statsig.com/v1/mcp" + } + } +} +``` + +Auth is OAuth against Statsig. Cursor prompts for Statsig user login when the plugin connects — there is no API key or client ID to configure. + +## Before you connect + +You need a Statsig account with access to a project. Statsig's MCP OAuth issues a **Personal Console API Key** scoped to your role, so your Statsig org owner must have enabled Personal Console API Key creation for your role under organization settings. If sign-in fails, ask your org owner to enable it. + +## What agents can do + +| Category | Capabilities | +| --- | --- | +| Gates (feature flags) | List gates with type filters (for example stale or permanent), get full gate configuration, pull gate results, view version history, and create or replace gates | +| Experiments | List experiments by status, creator, or tag; get experiment details; pull overall and dimension results with CUPED and confidence options; view version history; start code cleanup; create or replace experiments | +| Dynamic configs | List configs, get targeting rules and return values, and create or replace configs | +| Metrics | List metrics and metric sources and read metric definitions | + +The hosted runtime is the source of truth for tool names and schemas. + +## Notes + +- Tool calls run as the Statsig user who authorizes the connection and cannot exceed that user's role permissions. Read-only roles can use every read tool; write tools require a role with write access. +- `Update_*_Entirely` tools replace the whole entity — any field left out is removed. Read the entity first and confirm before writing. +- Statsig also documents an API-key setup that runs `npx mcp-remote` locally with a `statsig-api-key` header. This plugin intentionally packages only the OAuth Streamable HTTP endpoint and does not wrap a local stdio server. +- Revoke access at any time by deleting the Personal Console API Key from your Statsig project's API keys page. + +## Docs + +- Statsig MCP in Cursor: https://docs.statsig.com/integrations/mcp/cursor +- Statsig MCP overview and tool list: https://docs.statsig.com/integrations/mcp/overview +- Personal Console API Keys: https://docs.statsig.com/access-management/api-keys +- Server URL: https://api.statsig.com/v1/mcp + +Logo is Statsig's official mark, from the `statsig-io` GitHub organization. + +## License + +MIT diff --git a/third_party/statsig/assets/logo.png b/third_party/statsig/assets/logo.png new file mode 100644 index 00000000..ffed8d2a Binary files /dev/null and b/third_party/statsig/assets/logo.png differ diff --git a/third_party/statsig/mcp.json b/third_party/statsig/mcp.json new file mode 100644 index 00000000..368a7b14 --- /dev/null +++ b/third_party/statsig/mcp.json @@ -0,0 +1,8 @@ +{ + "mcpServers": { + "statsig": { + "type": "http", + "url": "https://api.statsig.com/v1/mcp" + } + } +}