spawn_bootstrap
Exchange a one-time bootstrap key for a durable agent token, saving it to .env to enable authenticated agent access.
Instructions
Trade a one-time setup bootstrap key (sbk_…) for a durable agent token. Writes SPAWN_AGENT_KEY to the project .env. The full token is NEVER returned — only a masked prefix. Bootstrap keys expire in ~5 minutes and work once.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Human-readable label for this agent connection (use a distinct name per concurrent agent, e.g. terrain-agent) | Cursor Spawn MCP |
| projectDir | No | Absolute path to the Spawn game project (game.json / .env). Defaults to SPAWN_PROJECT_DIR or the MCP process cwd. | |
| bootstrapKey | Yes | One-time setup key from Spawn settings (sbk_…) |