Feature flags and kill switches. Turn a shipped feature off in production without a deploy.
接入配置
选择客户端,复制配置,再按项目文档补齐环境变量。
本地运行
claude mcp add launchflag --env LAUNCHFLAG_TOKEN='<LAUNCHFLAG_TOKEN>' -- npx -y launchflag-mcp~/.codex/config.toml
[mcp_servers.launchflag]
command = "npx"
args = ["-y", "launchflag-mcp"]
env = { LAUNCHFLAG_TOKEN = "<LAUNCHFLAG_TOKEN>" }
# codex mcp add launchflag --env LAUNCHFLAG_TOKEN='<LAUNCHFLAG_TOKEN>' -- npx -y launchflag-mcp~/.cursor/mcp.json
{
"mcpServers": {
"launchflag": {
"command": "npx",
"args": [
"-y",
"launchflag-mcp"
],
"env": {
"LAUNCHFLAG_TOKEN": "<LAUNCHFLAG_TOKEN>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"launchflag": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"launchflag-mcp"
],
"env": {
"LAUNCHFLAG_TOKEN": "<LAUNCHFLAG_TOKEN>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"launchflag": {
"command": "npx",
"args": [
"-y",
"launchflag-mcp"
],
"env": {
"LAUNCHFLAG_TOKEN": "<LAUNCHFLAG_TOKEN>"
}
}
}
}claude_desktop_config.json
{
"mcpServers": {
"launchflag": {
"command": "npx",
"args": [
"-y",
"launchflag-mcp"
],
"env": {
"LAUNCHFLAG_TOKEN": "<LAUNCHFLAG_TOKEN>"
}
}
}
}.trae/mcp.json
{
"mcpServers": {
"launchflag": {
"command": "npx",
"args": [
"-y",
"launchflag-mcp"
],
"env": {
"LAUNCHFLAG_TOKEN": "<LAUNCHFLAG_TOKEN>"
}
}
}
}远程托管
claude mcp add --transport http launchflag https://launchflag.dev/api/mcp --header 'Authorization: <AUTHORIZATION>'~/.codex/config.toml
[mcp_servers.launchflag]
url = "https://launchflag.dev/api/mcp"
http_headers = { Authorization = "<AUTHORIZATION>" }
# codex mcp add launchflag --url https://launchflag.dev/api/mcp~/.cursor/mcp.json
{
"mcpServers": {
"launchflag": {
"url": "https://launchflag.dev/api/mcp",
"headers": {
"Authorization": "<AUTHORIZATION>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"launchflag": {
"type": "http",
"url": "https://launchflag.dev/api/mcp",
"headers": {
"Authorization": "<AUTHORIZATION>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"launchflag": {
"httpUrl": "https://launchflag.dev/api/mcp",
"headers": {
"Authorization": "<AUTHORIZATION>"
}
}
}
}claude_desktop_config.json · Customize › Connectors › Add custom connector
{
"mcpServers": {
"launchflag": {
"command": "npx",
"args": [
"-y",
"mcp-remote",
"https://launchflag.dev/api/mcp",
"--header",
"Authorization:<AUTHORIZATION>"
]
}
}
}.trae/mcp.json
{
"mcpServers": {
"launchflag": {
"url": "https://launchflag.dev/api/mcp",
"headers": {
"Authorization": "<AUTHORIZATION>"
}
}
}
}需要的环境变量
LAUNCHFLAG_TOKEN
把占位值换成你自己的密钥;不要把密钥提交到代码仓库。