Skip to content

Edit saved dashboard MCP App inputs - #4297

Closed
reachjalil wants to merge 6 commits into
devfrom
feature/edit-dashboard-mcp-app-inputs
Closed

reachjalil wants to merge 6 commits into
devfrom
feature/edit-dashboard-mcp-app-inputs

Conversation

@reachjalil

@reachjalil reachjalil commented Sep 2, 2026 •

Copy link
Copy Markdown
Member

Summary

  • add an Edit action to saved dashboard MCP App tiles
  • allow admins to update the display name and persisted JSON tool input while preserving the original MCP binding
  • expose optional tool input when adding an MCP App, while opening required input automatically
  • validate tool input as a JSON object and keep the saved value unchanged when validation fails
  • decode string-backed MySQL dashboard element JSON so saved MCP Apps render consistently
  • leave Daytona development preview CORS headers to the preview edge to avoid duplicate browser response headers

Verification

  • Den Web focused tests: 7 passed, 0 failed
  • Den Web TypeScript check: passed
  • Den API focused tests: 7 passed, 0 failed
  • Den API production build: passed
  • E2E implementation-contract mapping tests: 6 passed, 0 failed
  • pnpm evals:e2e org-dashboard-mcp-app-editing --daytona: Passed on exact head 01ee6ec00c74ce89e971045c96867e4f696b3666 (1 passed, 0 failed, 0 skipped)

The browser proof verifies that a saved Budget Allocator tile loads, its Edit dialog opens, non-object JSON is rejected without mutating the saved element, valid Budget input and a renamed title persist, and the MCP connection/tool/resource binding remains unchanged.

@vercel

vercel Bot commented Sep 2, 2026 •

Copy link
Copy Markdown
Contributor

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

4 Skipped Deployments
Project Deployment Actions Updated
openwork-app Skipped Skipped Sep 5, 2026 7:55pm UTC
openwork-den Skipped Skipped Sep 5, 2026 7:55pm UTC
openwork-diagnostics Skipped Skipped Sep 5, 2026 7:55pm UTC
openwork-landing Skipped Skipped Sep 5, 2026 7:55pm UTC

@reachjalil

reachjalil commented Sep 2, 2026 •

Copy link
Copy Markdown
Member Author

Test evidence — an-admin-edits-an-existing-dashboard-mcp-app-and-adds-saved-tool-input — 0/0 screenshots passed · 3 assertions

✅ 0/0 screenshots passed · 3 assertions · 3 expectations passed · 0 failed · 0 pending

screenshots not uploaded (no BLOB_READ_WRITE_TOKEN)

ℹ️ ASSERTION — 1. An organization admin can open an existing MCP App tile for editing

Dashboard dsb_01m1fz1d5re4mtsx181cdha536 opened an Edit app dialog with display name Budget allocator and blank tool input.

  • ✅ PASS An organization admin can open an existing MCP App tile for editing — Dashboard dsb_01m1fz1d5re4mtsx181cdha536 opened an Edit app dialog with display name Budget allocator and blank tool input.

ℹ️ ASSERTION — 2. Invalid non-object tool input cannot replace the saved dashboard element

The UI rejected [] and Den still returned [{"serverName":"openwork-app-host-connect-budgetfixture","connectionId":"emc_01budgetdashboardfixture00000","toolName":"allocate_budget","projectedToolName":"openwork-app-host-connect-budgetfixture_allocate_budget","resourceUri":"ui://budget-allocator/view.html","title":"Budget allocator"}].

  • ✅ PASS Invalid non-object tool input cannot replace the saved dashboard element — The UI rejected [] and Den still returned [{"serverName":"openwork-app-host-connect-budgetfixture","connectionId":"emc_01budgetdashboardfixture00000","toolName":"allocate_budget","projectedToolName":"openwork-app-host-connect-budgetfixture_allocate_budget","resourceUri":"ui://budget-allocator/view.html","title":"Budget allocator"}].

ℹ️ ASSERTION — 3. Editing a dashboard MCP App persists its display name and launch input without changing its binding

Den returned one element after save: {"serverName":"openwork-app-host-connect-budgetfixture","connectionId":"emc_01budgetdashboardfixture00000","toolName":"allocate_budget","projectedToolName":"openwork-app-host-connect-budgetfixture_allocate_budget","resourceUri":"ui://budget-allocator/view.html","title":"Quarterly budget planner 1788315891583","launchArguments":{"budget":250000,"currency":"USD","priorities":["reliability","growth"]}}.

  • ✅ PASS Editing a dashboard MCP App persists its display name and launch input without changing its binding — Den returned one element after save: {"serverName":"openwork-app-host-connect-budgetfixture","connectionId":"emc_01budgetdashboardfixture00000","toolName":"allocate_budget","projectedToolName":"openwork-app-host-connect-budgetfixture_allocate_budget","resourceUri":"ui://budget-allocator/view.html","title":"Quarterly budget planner 1788315891583","launchArguments":{"budget":250000,"currency":"USD","priorities":["reliability","growth"]}}.

Test run created 2026-09-02T02:24:51.563Z · Source: evals/results/test-runs/2026-09-02T02-24-51-562Z-an-admin-edits-an-existing-dashboard-mcp-app-and-adds-saved-tool-input/test-run.json · Repro: pnpm --dir evals artifacts:publish -- --pr 4297 --test-run 2026-09-02T02-24-51-562Z-an-admin-edits-an-existing-dashboard-mcp-app-and-adds-saved-tool-input

Comment thread ee/apps/den-api/src/app.ts Resolved
diff-warden[bot]
diff-warden Bot previously approved these changes Sep 2, 2026

@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 (6caa20b6876703e4a80da44fe1b4a24f01ed8752). Automated clearance satisfies the required-review gate only — a human still reviews and merges. Analysis run

diff-warden[bot]
diff-warden Bot previously approved these changes Sep 3, 2026

@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 (8d6102091604f800f63f0ecad4b58c3394ccd6c0). Automated clearance satisfies the required-review gate only — a human still reviews and merges. Analysis run

…ventory

The enabled E2E set must equal the evidence-backed inventory in
spec-quarantine.test.ts, so the journey this change adds is registered
there alongside its contract mapping.

@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 (e772dac069e0fc4e7210a77e2a3b211a705c719b). Automated clearance satisfies the required-review gate only — a human still reviews and merges. Analysis run

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Sep 5, 2026 •

Copy link
Copy Markdown

Deploying openwork with  Cloudflare Pages  Cloudflare Pages

Latest commit: 1e77fc9
Status: ✅  Deploy successful!
Preview URL: https://fcafbe63.openwork.pages.dev
Branch Preview URL: https://feature-edit-dashboard-mcp-a.openwork.pages.dev

View logs

@vercel
vercel Bot temporarily deployed to Preview – openwork-den September 5, 2026 19:55 Inactive
@vercel
vercel Bot temporarily deployed to Preview – openwork-diagnostics September 5, 2026 19:55 Inactive
@vercel
vercel Bot temporarily deployed to Preview – openwork-landing September 5, 2026 19:55 Inactive
@vercel
vercel Bot temporarily deployed to Preview – openwork-app September 5, 2026 19:55 Inactive
@reachjalil reachjalil closed this Sep 18, 2026

This branch was previously deployed

4 inactive deployments
Preview – openwork-app — 1e77fc99 Deployed Sep 5, 2026 by vercel[bot]
Preview – openwork-landing — 1e77fc99 Deployed Sep 5, 2026 by vercel[bot]
Preview – openwork-den — 1e77fc99 Deployed Sep 5, 2026 by vercel[bot]
Preview – openwork-diagnostics — 1e77fc99 Deployed Sep 5, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants