Repository navigation
MCP Apps dashboard: per-user grid with add-from-Connect picker - #4045
Merged
Merged
Conversation
Contributor
|
The latest updates on your projects. Learn more about Vercel for GitHub.
1 Skipped Deployment
|
- 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.
reachjalil
enabled auto-merge (squash)
August 24, 2026 22:33
…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.
Contributor
There was a problem hiding this comment.
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
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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)
LayoutDashboardsidebar destination labeled "Dashboard", placed with the Automations/Extensions destinations directly above the notification bell (app-sidebar.tsx). Navigates to/dashboard./dashboardroute: top-level route rendered throughSessionRoute'sprimarySlot, following the/automationsprecedent (route normalization keeps/dashboardstable across workspace activation).minmax(320px,1fr)) of app tiles built from existing shadcn/ui primitives.GET /workspace/:id/mcp-apps/list, which enumerates cold-launchable MCP Apps (tools advertising a standardui://binding, visible to both model and app audiences, not policy-denied) and reports unreachable servers instead of failing.requiresInput(launch tool declares required input) and the picker disables those rows with a "Requires input" badge; tiles also enforce it at execution time (anisErrorlaunch result renders an explanatory state, not a broken tile).mcp-apps/resolvehost path, cold-calls the launch tool with{}viamcp-apps/call(with the same approval flow as chat), and renders through the exact chat renderer pipeline. The chatMcpAppFramewas refactored to extract a reusableMcpAppSandboxView(sandbox + AppBridge + diagnostics) so chat messages and dashboard tiles share one implementation. Tile header has refresh (re-resolve + re-execute) and remove.localStoragekeyed by signed-in Den user id + active org id (local/nonescope when signed out). The dashboard is session/thread-independent.Explicitly out of scope (deferred)
Manual test steps
/dashboardopens with the built-in Hello World tile in a grid.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.dev.Known gaps (why draft)
evals/specse2e 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.tsbefore this is ready.McpAppSandboxView; a dedicated dashboard renderer surface (e.g. non-inline display mode) can replace it later without touching tiles.