Install the SwarmAI MCP CLI
The SwarmAI MCP CLI lets you log in with your SwarmAI API key, start an MCP bridge, and trigger test plans from terminals or CI—keeping the verification layer for coding agents close to your local tools.Prerequisites
- A SwarmAI API key with run permissions (see Generate an API key)
- Node.js 18+ or any runtime that can launch a long-lived MCP process
Install
Install the CLI from npm or the installer script:swarm binary on your PATH with MCP support for local tool bridges.
Log in
Authenticate once and the CLI writes a token to~/.swarm/mcp.toml.
swarm auth whoami, which prints your workspace, key scope, and token expiry.
Connect to MCP
Start the bridge so SwarmAI agents can call local tools exposed via MCP.Ctrl+C.
Trigger runs from the CLI
Kick off a plan directly:Troubleshooting
swarm mcp uphangs: another process may be on port 3939; pass--port 4040.- Auth errors: regenerate a key in Settings → API Keys and re-run
swarm auth login. - Verbose output: add
--debugto any command to print the JSON RPC chatter between SwarmAI and MCP.