LiveVariant

v0.1.5
io.github.livevariant/livevariant Checked 5 hours ago Published 3 months ago

Build, inspect and read adaptive A/B tests.

Values you need

VariableWhat it is
LIVEVARIANT_SERVER_URLoptional Base URL of a self-hosted LiveVariant deployment. Omit to use the hosted service at https://livevariant.com.
LIVEVARIANT_API_TOKENoptional secret API token for a self-hosted deployment that sets LV_API_TOKEN. Not needed for the hosted service.
LIVEVARIANT_ASSET_UPLOAD_TOKENoptional secret Asset upload token for a deployment with hosted images enabled. Optional.

npm (npx) discovery passed

Requires Node.js 18+

Run in a terminal
claude mcp add livevariant -- npx -y --package=@livevariant/mcp@0.1.5 livevariant-mcp
Add to claude_desktop_config.json
{
  "mcpServers": {
    "livevariant": {
      "args": [
        "-y",
        "--package=@livevariant/mcp@0.1.5",
        "livevariant-mcp"
      ],
      "command": "npx"
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "livevariant": {
      "args": [
        "-y",
        "--package=@livevariant/mcp@0.1.5",
        "livevariant-mcp"
      ],
      "command": "npx"
    }
  }
}
Add to .vscode/mcp.json
{
  "servers": {
    "livevariant": {
      "args": [
        "-y",
        "--package=@livevariant/mcp@0.1.5",
        "livevariant-mcp"
      ],
      "command": "npx",
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.livevariant]
command = "npx"
args = ["-y", "--package=@livevariant/mcp@0.1.5", "livevariant-mcp"]

Remote (hosted)

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

For AI agents

  1. 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).
  2. Restart or reload the client so it starts the server.
  3. Verify: the server should expose these tools: build_test, inspect_test, generate_priors, get_stats, upload_image, variant_brief.
  4. 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