Skip to content

MCP Apps dashboard: per-user grid with add-from-Connect picker - #4045

Merged
reachjalil merged 16 commits into
devfrom
feature/mcp-apps-dashboard
Aug 24, 2026
Merged

reachjalil merged 16 commits into
devfrom
feature/mcp-apps-dashboard

Conversation

@reachjalil

Copy link
Copy Markdown
Member

Gives MCP apps a permanent, chat-independent home: a per-user Dashboard of app tiles, reachable in one click from the sidebar next to the notification bell.

What this delivers (v0 scope)

  • Dashboard entry point: a LayoutDashboard sidebar destination labeled "Dashboard", placed with the Automations/Extensions destinations directly above the notification bell (app-sidebar.tsx). Navigates to /dashboard.
  • /dashboard route: top-level route rendered through SessionRoute's primarySlot, following the /automations precedent (route normalization keeps /dashboard stable across workspace activation).
  • Dashboard page: responsive auto-fill grid (minmax(320px,1fr)) of app tiles built from existing shadcn/ui primitives.
  • Add app picker: dialog listing MCP apps available via OpenWork Connect and the workspace's configured MCP servers, with per-server live connection status. Backed by a new server surface, GET /workspace/:id/mcp-apps/list, which enumerates cold-launchable MCP Apps (tools advertising a standard ui:// binding, visible to both model and app audiences, not policy-denied) and reports unreachable servers instead of failing.
  • Zero-config launch rule: dashboard tiles only host apps that can start with empty arguments. The catalog reports requiresInput (launch tool declares required input) and the picker disables those rows with a "Requires input" badge; tiles also enforce it at execution time (an isError launch result renders an explanatory state, not a broken tile).
  • Live tiles: each tile resolves its stored reference through the existing mcp-apps/resolve host path, cold-calls the launch tool with {} via mcp-apps/call (with the same approval flow as chat), and renders through the exact chat renderer pipeline. The chat McpAppFrame was refactored to extract a reusable McpAppSandboxView (sandbox + AppBridge + diagnostics) so chat messages and dashboard tiles share one implementation. Tile header has refresh (re-resolve + re-execute) and remove.
  • Per-user persistence: entries persist in localStorage keyed by signed-in Den user id + active org id (local/none scope when signed out). The dashboard is session/thread-independent.
  • Never empty: a clearly marked built-in "Hello World" tile (static local component, no MCP server) seeds the board on first open; it is removable and re-addable from the picker's Built-in section.

Explicitly out of scope (deferred)

  • Pinning from chat / "add to dashboard" from a chat message
  • Layouts, drag-and-drop, sorting, resizing
  • Server-side/cloud persistence or cross-device sync
  • Apps requiring launch input, and any argument-entry UI
  • Giving MCP apps access to Connect data beyond their own MCP scope
  • Any change to the pinned-panel/split-screen concept

Manual test steps

  1. Open a session → a "Dashboard" destination appears in the sidebar next to the notification bell.
  2. Click it → /dashboard opens with the built-in Hello World tile in a grid.
  3. Click "Add app" → the dialog lists the Built-in section plus each configured remote MCP server with Connected/Not connected status and its cold-launchable apps; apps with required input are disabled with a "Requires input" badge.
  4. Add an app → a tile appears, resolves, and renders the interactive view; refresh re-executes; remove deletes it.
  5. Switch sessions/workspaces and return → dashboard contents unchanged.
  6. Sign out/in or switch org → the board swaps to that user/org scope.

Checks run

  • apps/server: pnpm run typecheck — passed; bun --conditions=development test src/mcp-app-host.test.ts — 22 pass / 0 fail (includes two new catalog tests: input-requirement + visibility filtering, and unreachable-server reporting).
  • apps/app: pnpm run typecheck — passed.
  • The repo defines no lint target; typecheck is the static gate.
  • All checks re-run at the final head after rebasing onto current dev.

Known gaps (why draft)

  • Missing proof: no app-driving evals/specs e2e evidence yet for the UI journey (sidebar entry → /dashboard → default tile → add/remove → persistence across session switch). The server catalog surface has executable unit proof; the UI journey needs an .e2e.test.ts before this is ready.
  • The tile renderer reuses the chat MCP App frame pipeline behind McpAppSandboxView; a dedicated dashboard renderer surface (e.g. non-inline display mode) can replace it later without touching tiles.
  • Picker rows show the MCP server name as the source; marketplace/plugin provenance enrichment is a follow-up.
  • Local-only persistence by design (v0).
  • Non-read-only launch tools prompt for approval on each tile launch/refresh, matching chat behavior.

@vercel

vercel Bot commented Aug 24, 2026 •

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
openwork-app Ready Ready Preview Aug 24, 2026 10:56pm
openwork-den Ready Ready Preview Aug 24, 2026 10:56pm
openwork-den-worker-proxy Ready Ready Preview Aug 24, 2026 10:56pm
openwork-landing Ready Ready Preview, v0 Aug 24, 2026 10:56pm
1 Skipped Deployment
Project Deployment Actions Updated (UTC)
openwork-diagnostics Skipped Skipped Aug 24, 2026 10:56pm

@vercel
vercel Bot temporarily deployed to Preview – openwork-diagnostics August 24, 2026 20:44 Inactive
- Write-tool tiles execute at most once per Run/refresh press: client or
  workspace identity changes no longer replay an approved data-modifying
  launch, and a launch that turns out to need approval falls back to the
  idle Run card instead of popping a consent prompt on mount.
- The dashboard scope tracks den settings changes, so switching the active
  organization swaps the board immediately.
- The MCP app catalog probes servers concurrently with a per-server time
  budget, dedupes Connect hosts against their workspace-config copies, and
  shares one tool-scan pipeline; callMcpAppTool now enforces the same
  exported approval predicate the catalog reports.
- The add-app picker keeps catalog rows mounted through background
  refetches so typed launch input survives a window-focus refetch.
- Chat MCP app views keep their measured height across re-resolves instead
  of snapping back to the default.
…cross workspaces

- Auto-launch requires the add-time consent marker the picker records:
  entries that appear in storage without it (tampered or imported) render
  the idle Run card instead of executing on dashboard open, narrowing the
  Warden finding that a server-controlled readOnlyHint alone could trigger
  execution. The picker now discloses that added apps launch automatically.
- Tiles resolve through the selected workspace first, then every other
  available workspace runtime, so a tile added under one workspace still
  launches when a different workspace is selected. The sandbox view runs
  under the endpoint that actually resolved the app.
…ent explicit

- The dashboard renders a placeholder while Den auth is still checking, so
  the shared signed-out scope can never load and auto-launch a previous
  user's entries through the account about to be restored; the board mounts
  keyed to the final scope.
- Every picker add now goes through the details panel, which states exactly
  what adding consents to: automatic launches on dashboard open for
  zero-config apps, run-on-request for data-modifying apps, stored JSON
  input where required. No tile behavior rests on a server-controlled hint
  the user never saw.
A newly added tile always waits for an explicit Run; only after the user
has run it once and seen what it does is autoLaunch persisted, letting
later dashboard opens launch it automatically. Consent for automatic
execution is therefore anchored to an observed run, not to the MCP
server's read-only annotation. Write-tools remain run-on-request forever.
Picker and idle-card copy state the first-run rule.

@diff-warden diff-warden Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Warden security clearance: clear. No blocking findings (security or desktop↔den sync) in this diff (96f87274784a05c5dc8ddc14d143f03e52d9bd1c). Automated clearance satisfies the required-review gate only — a human still reviews and merges. Analysis run

@reachjalil
reachjalil merged commit fa5e5db into dev Aug 24, 2026
18 checks passed

This branch was successfully deployed

4 active and 1 inactive deployments
Preview – openwork-den-worker-proxy — 96f87274 Deployed Aug 24, 2026 by vercel[bot]
Preview – openwork-den — 96f87274 Deployed Aug 24, 2026 by vercel[bot]
Preview – openwork-landing — 96f87274 Deployed Aug 24, 2026 by vercel[bot]
Preview – openwork-app — 96f87274 Deployed Aug 24, 2026 by vercel[bot]
Preview – openwork-diagnostics — 96f87274 Deployed Aug 24, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant