Statsig
Drive Statsig (feature flags + experiments + analytics) from any AI agent: evaluate gates/dynamic configs/experiments, log events, manage console-side gates and experiments. 10 tools, server-secret-key auth.
7 天免费 · 无需信用卡 · EU 托管
问 Statsig 任何事
通过 AnythingMCP 对 Statsig 试一个真实提示 — Claude 调用工具并返回答案。在你的消息上按 Enter 即可在 Cloud 安装。
在 Cloud 上安装 StatsigClaude 是 AI,可能会出错。请核对回答。
2 分钟设置
- 1在 cloud.anythingmcp.com 开始免费试用。
- 2在连接器商店点击 Statsig。提示时粘贴凭据。
- 3生成 MCP API 密钥,将 AI 客户端指向生成的 MCP URL。
Statsig 指南
面向主流 AI 客户端的逐步设置。
配置 Statsig
直接来自连接器定义:在哪里获取凭据、需要哪些权限,以及该适配器调用的是哪个 API。 由连接器作者以英文提供。
This connector uses the Statsig HTTP API (docs.statsig.com).
Two distinct APIs:
- Server SDK API (
api.statsig.com/v1/...) — runtime evaluation + event logging. RequiresSTATSIG_SERVER_SECRET_KEY(starts withsecret-). - Console API (
statsigapi.net/console/v1/...) — admin operations like creating gates. RequiresSTATSIG_CONSOLE_API_KEY(starts withconsole-). The adapter uses the Server SDK base by default; tools that hit the Console API set explicit absolute URLs in their endpointMapping.
Setup:
- Sign in to https://console.statsig.com → Settings → Keys & Environments.
- Copy the Server Secret Key (
secret-...) for runtime ops. - Copy a Console API Key (
console-...) for admin ops (Settings → Project Settings → API Keys → Create Console API Key). - Set
STATSIG_SERVER_SECRET_KEYand (optionally, for admin tools)STATSIG_CONSOLE_API_KEY.
Authentication: Server SDK uses statsig-api-key: ${SERVER_SECRET} header. Console uses STATSIG-API-KEY: ${CONSOLE_KEY} header.
Statsig-Client-Time header: server SDK endpoints prefer a STATSIG-CLIENT-TIME header (Unix ms) — Statsig uses for evaluation timing. Skip for simple cases.
User object: every gate/config/experiment evaluation needs a user object with at minimum userID (your stable user ID). Add email, country, appVersion, custom for targeting accuracy.
Out of scope here: Layers API (experiment layers), holdouts, GitHub integration, audit log, project membership management.