Skip to Content
v0.8.0 · shippedNative iOS / Android / Flutter / Capacitor SDKs, A2A discovery, SOC 2 readiness, residency, BYO storage, BYOK. Read the changelog →
Admin consoleConnect hub (console)

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

#SectionWhat it does
1Connect GitHubLink the primary repo so upgrade PRs and CI secret sync can resolve tokens
2Install SDKFramework tabs + copy snippet (SdkInstallCard)
3Native app CI secretsDiagnose + one-click sync of NEXT_PUBLIC_MUSHI_* into GitHub Actions
4Install MCPAdd to Cursor / Add to VS Code deeplinks (McpInstallButtons)
5Install CLInpm i -g @mushi-mushi/cli@latest + copy mushi connect / mushi init
6Update centerPer-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:

StatusMeaning
ci-secret-missingRequired var absent from GitHub Actions secrets/variables
native-never-seenWeb heartbeats exist but no capacitor:// / native UA
okSecrets 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:

  1. Click Create Upgrade PR on the Update center row.
  2. Backend enqueues sdk_upgrade_jobssdk-upgrade-worker bumps @mushi-mushi/* in package.json files only (never workspace: / file:).
  3. 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 --wait

Run 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.


Last updated on