Back to MCP directory
publicPublicdnsLocal runtime

mcp-stdio

Statsig MCP服务器实现了模型上下文协议(MCP),支持stdio和SSE两种传输方式,用于Statsig API集成。

article

README

🚀 Statsig MCP Server

Statsig MCP Server实现了用于Statsig API集成的模型上下文协议(MCP),支持标准输入输出(stdio)和服务器发送事件(SSE)两种传输方式。

🚀 快速开始

本服务器可实现Statsig API集成的模型上下文协议(MCP),支持标准输入输出和服务器发送事件两种传输方式。

📦 安装指南

在项目根目录下,执行以下命令进行安装和构建:

npm install
npm run build

💻 使用示例

基础用法

要将此服务器与MCP客户端一起使用,需要按以下方式配置 mcp.json 文件。

使用标准输入输出传输(默认)

{
  "mcpServers": {
    "Statsig": {
      "command": "node /path/to/build/index.js",
      "env": {
        "STATSIG_API_KEY": "console-YOUR-CONSOLE-KEY"
      }
    }
  }
}

使用服务器发送事件传输

目前,一些客户端(例如Cursor)所使用的SSE协议不支持请求头。本服务器支持在查询参数中携带Statsig API密钥的请求。虽然在使用HTTPS时这些数据会被加密,但仍建议您谨慎操作。

{
  "mcpServers": {
    "Statsig": {
      "url": "http://localhost:3000/sse?STATSIG_API_KEY=console-<your-console-key>"
    }
  }
}
help

Runtime guide

cloud

Hosted runtime

Hosted servers run from a provider-managed environment. You usually connect the MCP client to the hosted endpoint or follow the provider's authorization flow, without keeping a local process alive

  1. Open provider connection page
  2. Authorize or copy endpoint
  3. Connect from your MCP client
terminal

Local runtime / other methods

Local servers run on your own machine or infrastructure. You normally copy the server_config into your MCP client, install the required package, and provide env variables from env_schema when needed

  1. Copy server_config
  2. Install required package
  3. Fill env variables and restart client