Connect & Update
Route: /connect
Scenario: Your repo is on GitHub, the SDK is installed, but MCP isn’t wired in Cursor yet and you’re two minor versions behind on
@mushi-mushi/web. This page is the one-stop hub: GitHub connect → SDK install → MCP deeplink → CLI → upgrade PR.
Work through the sections top-to-bottom. GitHub App connection unlocks the Create Upgrade PR flow; SDK and MCP sections work without it.
Sections
| # | Section | What it does |
|---|---|---|
| 1 | Connect GitHub | Link the primary repo so upgrade PRs and CI secret sync can resolve tokens |
| 2 | Install SDK | Framework tabs + copy snippet (SdkInstallCard) |
| 3 | Native app CI secrets | Diagnose + one-click sync of NEXT_PUBLIC_MUSHI_* into GitHub Actions |
| 4 | Install MCP | Add to Cursor / Add to VS Code deeplinks (McpInstallButtons) |
| 5 | Install CLI | npm i -g @mushi-mushi/cli@latest + copy mushi connect / mushi init |
| 6 | Update center | Per-package freshness chips + Create Upgrade PR (SdkUpgradeCTA) |
Native app CI secrets
Capacitor, Expo, and React Native apps bake NEXT_PUBLIC_MUSHI_* at compile
time — a missing secret silently disables initMushi() and the lime banner
never appears in the store build.
The Native app CI secrets card calls GET /v1/admin/projects/:id/sdk-diagnostics
and shows a fused verdict:
| Status | Meaning |
|---|---|
ci-secret-missing | Required var absent from GitHub Actions secrets/variables |
native-never-seen | Web heartbeats exist but no capacitor:// / native UA |
ok | Secrets present and native SDK seen recently |
One-click sync: POST /v1/admin/projects/:id/sync-ci-secrets mints a
scoped ingest key and writes each required var via sealed-box encryption.
The Mushi GitHub App requests Contents + Pull requests only — not Actions
secrets. Auto-write works when a fine-grained PAT with Actions secrets: Read
and write is stored in project settings. Otherwise the card expands guided
gh secret set commands and a CI env: YAML block.
See also: Self-hosting · AGENTS.md native CI section
SDK upgrade PR
When a package is outdated or deprecated:
- Click Create Upgrade PR on the Update center row.
- Backend enqueues
sdk_upgrade_jobs→sdk-upgrade-workerbumps@mushi-mushi/*inpackage.jsonfiles only (neverworkspace:/file:). - Draft PR opens on GitHub, auto-readied, status streams via SSE.
CLI equivalent: see SDK reference → CLI (mushi upgrade for local bumps).
Quick path (5 minutes)
Connect GitHub
Install the Mushi GitHub App on your primary repo (or paste a fine-grained PAT with Contents + PR + Actions secrets if you need CI auto-write).
Install SDK
Copy the framework snippet → paste into your app → deploy or run locally.
Wire MCP
Click Add to Cursor → restart IDE → mushi doctor --server.
Wire CLI (SDK + env + MCP)
Copy Connect SDK + MCP from the CLI section:
MUSHI_API_KEY=mushi_xxx mushi connect \
--project-id <uuid> \
--endpoint https://dxptnwrhwsqckaftyymj.supabase.co/functions/v1/api \
--write-env --wire-ide --waitRun mushi login first if you need to paste an API key interactively. SDK-only: mushi init --project-id <uuid>.
When no SDK heartbeat is detected, a 1-2-3 setup strip at the top links Create → Verify → CLI.
Verify
Send test report on Projects or shake/submit from the app.
Related pages
- Onboarding — guided wizard (same outcome, more hand-holding)
- CLI ↔ console loop — end-to-end setup narrative
- Projects — API keys + assistant config
- MCP — full tool catalogue
- SDK health — version + heartbeat diagnostics