Skip to content

First-run flow: demo → namespace → MCP install (with read token) → first agent call #18

Description

@harrymove-ctrl

Context

After a hosted build, HostedBuildBanner (apps/web/src/main.tsx:4267) shows the share page, MCP endpoint, and an McpPlayground. But the install snippet generator ShareMcpInstall (main.tsx:2028) emits npx -y mcp-remote <mcpUrl> with no Authorization header / read token — so installing a private namespace silently 401s. QuickStartCard (main.tsx:4216) is static text with no progress, and unauthenticated users hit the hard /app gate before they can explore anything.

Goal / user story

As a first-timer, I go demo → see my new namespace → copy an MCP install command that actually works (token included for private) → make a first recall call, guided step by step, without getting silently 401'd.

Acceptance criteria

  • ShareMcpInstall and HostedBuildBanner snippets include --header "Authorization: Bearer <read-token>" for private namespaces, and omit it (with a one-line "public needs no token" note) for public ones.
  • The read token is fetched/shown only to a viewer who owns the namespace (never leaked on public /share/* pages).
  • A guided checklist (Demo → Build → Install → First recall) tracks progress and persists across reloads (localStorage).
  • A "Use this in your agent" card shows a copyable first-call example (a concrete recall against the namespace) on the build banner / share page.
  • Unauthenticated users can browse seeded public namespaces (showcase/directory) before encountering the delegate/wallet gate.
  • Copy buttons give visible "Copied" confirmation.

Implementation notes

  • Reuse PublishPanel's snippet shape (it already includes the Authorization header, ~main.tsx:449-456) inside ShareMcpInstall (main.tsx:2028); pull the token from /api/hosted/namespaces/:ns/tokens.
  • Replace static QuickStartCard (main.tsx:4216) with a progress-tracked stepper; reuse ShowcasePage (main.tsx:2057, backed by /api/directory) as the "explore public first" entry so the hard gate isn't the first thing new users hit.
  • Gotcha: the read-token snippet must be gated on ownership — share-page viewers must not see another user's private token. The read-token fix alone is small and shippable independently of the checklist.

Sui Overflow angle

This is the judge's first two minutes. A 401-free, guided demo→install→first-call path is what turns a Walrus/Sui demo into a "wow" instead of a debugging session. It's also where the extract/recall/remember capabilities are introduced as the contract that later becomes Talus/Nexus tools with on-chain attribution receipts.

Dependencies

Read-token fix is independent (ship now). Checklist/explore-first benefits from the routed namespace console (token management) and the Sui wallet identity issue.

Part of the ContextMEM roadmap (#4) • Sui Overflow build.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P0Demo-blocking: required for a working Sui Overflow demomcpModel Context Protocol servers and toolsonboardingUser and developer onboarding / first-run experienceui-uxWeb app UI/UX, accessibility, and responsive design

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions