Skip to Content
v1.27.1 · shipped Global XHR capture, Hash-router inventory Read the changelog →
Admin consoleConnect hub (console)

Connect & Update

Route: /connect

Scenario: Your repo is on GitHub, the SDK is installed, but your editor still can’t ask Mushi what broke — and you’re a couple versions behind on @mushi-mushi/web. This page wires GitHub, SDK, MCP, CLI, and upgrade PRs in one place.

The page opens with ConnectStudio — pick your AI client, then choose a lane (MCP / CLI / Skills). Work through the sections below top-to-bottom. Connecting GitHub enables the Create Upgrade PR flow; SDK and MCP sections work without it.


ConnectStudio hero (3 lanes)

LaneWhat it does
MCPOne-click install for Cursor, VS Code, Claude Code, Windsurf, and other clients (ClientConnectButton mints a scoped key + deeplink / config JSON)
CLIInstall @mushi-mushi/cli, mushi login, then wire the selected IDE
SkillsCopy skill / pipeline setup for the selected client

A collapsible Connection status disclosure summarizes activation, snapshot, and provenance chips that used to live as separate strips.


Sections

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