Skip to content

Commit 235548a

Browse files
Add instructions for installing Statsig MCP in Codex
1 parent fc74b10 commit 235548a

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

docs/integrations/mcp.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,25 +47,35 @@ Once you've added and saved the configuration file, restart Cursor or Claude Des
4747
## Current MCP capabilities
4848

4949
### Experiments (A/B Tests)
50+
5051
- **Get_List_of_Experiments**: List all experiments in the project with optional status filtering
5152
- **Get_Experiment_Details_by_ID**: Get experiment details including groups and parameters
5253
- **Create_Experiment**: Create new experiments with groups, hypothesis, etc.
5354
- **Update_Experiment_Entirely**: Replace entire experiment configuration (any excluded data will be removed - the MCP will understand this.)
5455

5556
### Gates (Feature Flags)
57+
5658
- **Get_List_of_Gates**: List all gates/flags with optional type filtering (e.g., STALE, PERMANENT)
5759
- **Get_Gate_Details_by_ID**: Get complete gate configuration details (rules, ID type, etc.)
5860
- **Create_Gate**: Create new gate/flag with targeting rules and settings
5961
- **Update_Gate_Entirely**: Replace entire gate setup with new rules and settings (any excluded data will be removed - the MCP will understand this.)
6062

6163
### Dynamic Configs
64+
6265
- **Get_List_of_Dynamic_Configs**: List all dynamic config objects in the project
6366
- **Get_Dynamic_Config_Details_by_ID**: Retrieve detailed config including targeting rules, return values
6467
- **Create_Dynamic_Config**: Create new config with rules, return values, etc.
6568
- **Update_Dynamic_Config_Entirely**: Replace entire dynamic config with new targeting and values (any excluded data will be removed - the MCP will understand this.)
6669

6770
Need other functions? We're happy to consider additions by request, reach out in Slack.
6871

72+
## **Setting up in Codex**
73+
74+
```bash
75+
codex mcp add statsig -- npx --yes mcp-remote https://api.statsig.com/v1/mcp \
76+
--header "statsig-api-key: console-YOUR-CONSOLE-API-KEY"
77+
```
78+
6979
## **Setting up in Cursor**
7080

7181
[Click Here](cursor://anysphere.cursor-deeplink/mcp/install?name=statsig-local&config=eyJjb21tYW5kIjoibnB4IG1jcC1yZW1vdGUgaHR0cHM6Ly9hcGkuc3RhdHNpZy5jb20vdjEvbWNwIC0taGVhZGVyIHN0YXRzaWctYXBpLWtleToke0FVVEhfVE9LRU59IiwiZW52Ijp7IkFVVEhfVE9LRU4iOiJjb25zb2xlLWtleSJ9fQ==) to add the Statsig MCP to Cursor, or copy the json to: `~/.cursor/mcp.json`
@@ -81,7 +91,7 @@ The configuration file is located at:
8191

8292
On Claude Code, we recommend using the http transport directly, run this command on the command line anywhere you use Claude Code:
8393

84-
```bash
94+
```bash
8595
claude mcp add --transport http statsig-local https://api.statsig.com/v1/mcp \
8696
--header "statsig-api-key: console-YOUR-CONSOLE-API-KEY"
8797
```

0 commit comments

Comments
 (0)