LaunchFlag

v0.2.7
dev.launchflag/launchflag Checked 2 hours ago Published 2 months ago

Feature flags and kill switches.

Values you need

VariableWhat it is
LAUNCHFLAG_TOKENrequired secret API token from the LaunchFlag dashboard Install page.
LAUNCHFLAG_URLoptional Base URL. Defaults to https://launchflag.dev.

npm (npx) discovery passed

Requires Node.js 18+

Run in a terminal
claude mcp add launchflag -e 'LAUNCHFLAG_TOKEN=<LAUNCHFLAG_TOKEN>' -- npx -y launchflag-mcp@0.2.7
Add to claude_desktop_config.json
{
  "mcpServers": {
    "launchflag": {
      "args": [
        "-y",
        "launchflag-mcp@0.2.7"
      ],
      "command": "npx",
      "env": {
        "LAUNCHFLAG_TOKEN": "<LAUNCHFLAG_TOKEN>"
      }
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "launchflag": {
      "args": [
        "-y",
        "launchflag-mcp@0.2.7"
      ],
      "command": "npx",
      "env": {
        "LAUNCHFLAG_TOKEN": "<LAUNCHFLAG_TOKEN>"
      }
    }
  }
}
Add to .vscode/mcp.json
{
  "inputs": [
    {
      "description": "LAUNCHFLAG_TOKEN",
      "id": "launchflag-token",
      "password": true,
      "type": "promptString"
    }
  ],
  "servers": {
    "launchflag": {
      "args": [
        "-y",
        "launchflag-mcp@0.2.7"
      ],
      "command": "npx",
      "env": {
        "LAUNCHFLAG_TOKEN": "${input:launchflag-token}"
      },
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.launchflag]
command = "npx"
args = ["-y", "launchflag-mcp@0.2.7"]
env = { "LAUNCHFLAG_TOKEN" = "<LAUNCHFLAG_TOKEN>" }

Remote (hosted)

Run in a terminal
claude mcp add --transport http launchflag https://launchflag.dev/api/mcp --header 'Authorization: <Authorization>'
Add to Settings → Connectors → Add custom connector (or claude_desktop_config.json via mcp-remote)
{
  "mcpServers": {
    "launchflag": {
      "args": [
        "-y",
        "mcp-remote",
        "https://launchflag.dev/api/mcp",
        "--header",
        "Authorization: <Authorization>"
      ],
      "command": "npx"
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "launchflag": {
      "headers": {
        "Authorization": "<Authorization>"
      },
      "url": "https://launchflag.dev/api/mcp"
    }
  }
}
Add to .vscode/mcp.json
{
  "servers": {
    "launchflag": {
      "headers": {
        "Authorization": "<Authorization>"
      },
      "type": "http",
      "url": "https://launchflag.dev/api/mcp"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.launchflag]
command = "npx"
args = ["-y", "mcp-remote", "https://launchflag.dev/api/mcp", "--header", "Authorization: <Authorization>"]

For AI agents

  1. Ask the user for: LAUNCHFLAG_TOKEN. Never invent or guess these values; secrets go into the client config, not into chat logs.
  2. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  3. Restart or reload the client so it starts the server.
  4. Verify: the server should expose these tools: list_flags, cleanup_flags, create_flag, set_flag, promote_flag, delete_flag, emergency_off, list_projects.
  5. If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.

Machine-readable: install.md · manifest.json