An MCP server for Unleash feature flagging server, and your new best coding buddy
接入配置
选择客户端,复制配置,再按项目文档补齐环境变量。
claude mcp add unleash --env UNLEASH_BASE_URL='<UNLEASH_BASE_URL>' --env UNLEASH_PAT='<UNLEASH_PAT>' -- npx -y @unleash/mcp~/.codex/config.toml
[mcp_servers.unleash]
command = "npx"
args = ["-y", "@unleash/mcp"]
env = { UNLEASH_BASE_URL = "<UNLEASH_BASE_URL>", UNLEASH_PAT = "<UNLEASH_PAT>" }
# codex mcp add unleash --env UNLEASH_BASE_URL='<UNLEASH_BASE_URL>' --env UNLEASH_PAT='<UNLEASH_PAT>' -- npx -y @unleash/mcp~/.cursor/mcp.json
{
"mcpServers": {
"unleash": {
"command": "npx",
"args": [
"-y",
"@unleash/mcp"
],
"env": {
"UNLEASH_BASE_URL": "<UNLEASH_BASE_URL>",
"UNLEASH_PAT": "<UNLEASH_PAT>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"unleash": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@unleash/mcp"
],
"env": {
"UNLEASH_BASE_URL": "<UNLEASH_BASE_URL>",
"UNLEASH_PAT": "<UNLEASH_PAT>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"unleash": {
"command": "npx",
"args": [
"-y",
"@unleash/mcp"
],
"env": {
"UNLEASH_BASE_URL": "<UNLEASH_BASE_URL>",
"UNLEASH_PAT": "<UNLEASH_PAT>"
}
}
}
}claude_desktop_config.json
{
"mcpServers": {
"unleash": {
"command": "npx",
"args": [
"-y",
"@unleash/mcp"
],
"env": {
"UNLEASH_BASE_URL": "<UNLEASH_BASE_URL>",
"UNLEASH_PAT": "<UNLEASH_PAT>"
}
}
}
}.trae/mcp.json
{
"mcpServers": {
"unleash": {
"command": "npx",
"args": [
"-y",
"@unleash/mcp"
],
"env": {
"UNLEASH_BASE_URL": "<UNLEASH_BASE_URL>",
"UNLEASH_PAT": "<UNLEASH_PAT>"
}
}
}
}需要的环境变量
UNLEASH_BASE_URLUNLEASH_PAT
把占位值换成你自己的密钥;不要把密钥提交到代码仓库。