| name | mushi-setup |
| description | Set up Mushi Mushi in a new project — install SDK, configure API keys, connect to the admin console, map user stories from a live app, and generate TDD tests. Use when the user asks to "set up mushi", "add mushi to my project", "connect mushi", "configure mushi", "install mushi sdk", "map my user stories", or "start using mushi tdd". |
Mushi Mushi Setup
Overview
Mushi Mushi is a TDD/PDCA engine for web apps: it captures bugs, maps user stories from your live app, auto-generates Playwright tests, and continuously improves them via PDCA loops.
Console URLs
| Environment | Base URL |
|---|
| Hosted (default) | https://kensaur.us/mushi-mushi/admin |
| Local monorepo | http://localhost:6464 after pnpm dev |
| Override | MUSHI_CONSOLE_URL (CLI + browser opens) |
Resolution order: env → saved consoleUrl in ~/.config/mushi/config.json → localhost probe → monorepo heuristic → hosted.
Command matrix
| Command | Use when |
|---|
npx mushi-mushi / mushi init | First SDK install — framework detect, packages, .env.local |
mushi connect --project-id <uuid> --endpoint <url> --write-env --wire-ide --wait | Have ID + key; want env + Cursor MCP + heartbeat proof |
mushi login | Save credentials before other commands |
mushi setup | MCP-only wiring from saved config (not SDK install) |
Do not mint SDK keys under Settings → BYOK. Use Setup → Verify → Generate API key (report:write).
Quick Start (5 steps)
1. Get your project credentials
Open the Mushi admin console (local: http://localhost:6464).
- Setup → Steps or Projects → New project — create a project.
- Copy Project ID (UUID) from the success panel immediately after Create.
- Setup → Verify — Generate API key (
report:write). Shown once.
Or run npx mushi-mushi — the wizard opens /onboarding?tab=steps&setup=cli, verifies via whoami, then installs.
You need:
MUSHI_PROJECT_ID — UUID from success panel or Projects chip
MUSHI_API_KEY — mushi_… from Verify tab
2. Install the SDK
npx mushi-mushi
npm install @mushi-mushi/web
3. Initialize in your app
import { Mushi } from '@mushi-mushi/web'
Mushi.init({
projectId: process.env.MUSHI_PROJECT_ID!,
apiKey: process.env.MUSHI_API_KEY!,
capture: {
discoverInventory: {
enabled: true,
routeTemplates: ['/items/[id]', '/users/[userId]/profile'],
},
},
})
4. Map user stories from live app (no SDK required)
npm install -g @mushi-mushi/cli
mushi login --api-key mushi_... --project-id <uuid>
mushi stories map --url https://your-app.vercel.app --wait
Review proposals: Inventory → Discovery → Past proposals.
5. Generate TDD tests from stories
mushi tdd pending
mushi tdd gen <story-id> --mode review
mushi tdd approve <qa-story-id>
CLI prerequisite step (init wizard)
If no saved config and no --project-id / --api-key flags:
- No — open console → opens
?setup=cli
- Yes — paste credentials
- Use mushi login first → exit and re-run init
Second project
Use /onboarding?tab=steps&setup=cli or Projects → New project so the create form stays visible when you already have projects.
BYOK Key Pool (quota-aware failover)
mushi keys list
MUSHI_BYOK_KEY=sk-ant-... mushi keys add --provider anthropic --label "Backup account"
Console: Settings → API Key Pool (not the same as SDK ingest keys on Verify).
MCP Integration (Cursor / Claude)
After mushi login:
mushi setup
mushi connect --project-id <uuid> --endpoint <url> --write-env --wire-ide --wait
Manual MCP block:
{
"mcpServers": {
"mushi": {
"command": "npx",
"args": ["@mushi-mushi/mcp"],
"env": {
"MUSHI_API_KEY": "mushi_...",
"MUSHI_API_ENDPOINT": "https://dxptnwrhwsqckaftyymj.supabase.co/functions/v1/api",
"MUSHI_PROJECT_ID": "<uuid>"
}
}
}
}
Connect Slack (1-click)
Integrations → Slack → Add to Slack
mushi slack status
mushi slack test
Verify Setup
mushi doctor --server --qa-stories
pnpm smoke:cli-setup
Common flags:
- ✗ Firecrawl → Integrations → BYOK Keys
- ✗ QA target URL → QA Coverage → Edit story
- ✗ Slack → Integrations → Add to Slack
Docs