Skip to content

feat(den): enable Code Mode and MCP Apps by default, retiring their rollout flags - #4053

Merged
reachjalil merged 2 commits into
devfrom
feature/enable-code-mode-mcp-apps-default
Aug 25, 2026
Merged

reachjalil merged 2 commits into
devfrom
feature/enable-code-mode-mcp-apps-default

Conversation

@reachjalil

Copy link
Copy Markdown
Member

What

Code Mode (Workflows) and MCP Apps have been stable behind their rollout flags, so this enables both by default for every deployment and organization and removes the flags end to end:

  • Code Mode / Workflows
    • Removed the workflows / legacy codemodeScripts organization capability and workflow-rollout.ts.
    • execute_capability_script, Workflow marketplace capabilities, Workflow library items, artifact tools (render_workflow_artifact, render_dynamic_artifact), and Code Mode scriptPath decoration are now unconditional in the agent MCP surface, org routes, plugin library, and the cloud workflow executor.
    • /v1/organization keeps returning capabilities.workflows: true for published clients that still read it.
  • Remote MCP Apps
    • Removed the DEN_REMOTE_MCP_APPS_ENABLED deployment gate (env, helm chart) and the remoteMcpApps organization capability.
    • MCP App classification and launch metadata (kind: mcp_app, ui:// bindings, openwork/mcpApp meta) are always published; the per-connection provider proxy no longer has a disabled fallback surface.
    • The client-advertised App-host capability header still gates native App metadata, so older Desktop clients keep the bounded search/execute compatibility surface.
  • Cleanup
    • Admin capabilities PUT no longer accepts the retired keys; stale stored overrides are ignored and dropped on the next capabilities write.
    • Den admin panel drops the "Codemode scripts (alpha)" and "Native MCP Apps (preview)" toggles.
    • Feature docs, demo runbook, OpenAPI snapshot, eval presets, and eval specs updated (the remote-mcp-apps spec no longer flips the org gate; the workflows spec asserts execute_capability_script registers for a brand-new org).

Verification

  • tsc --noEmit for den-api and den-web: clean.
  • den-api bun suites covering the changed surfaces (organization-capabilities, admin-organization-capabilities, capability-parity, agent-codemode-script, marketplace-codemode-scripts, marketplace-capabilities, native-capabilities, grant-native-capabilities, plugin-system-member-create, external-connection-proxy, external-capabilities-search-divergence, codemode/artifact suites): green at the PR head, except one pre-existing failure ("JSON-RPC initialize errors are not mislabeled as OAuth refresh failures") that reproduces identically with the same command in a clean dev control worktree.
  • den-web tests (program-plugin-marketplace, org-dashboard-sidebar-ia): green.
  • pnpm evals:pr at the PR head (post-rebase): 40 passed, 2 environment-conditional skips (skill-grant-access, kube-egress-allowlist).
  • pnpm evals:e2e remote-mcp-apps --local: fails at the Desktop Cloud-MCP reconcile phase with invalid_mcp_token / SSE 401. The identical command fails with the identical signature on unmodified dev (5c74c2530) in a clean control worktree, so this is a pre-existing local-environment failure, not introduced here; the earlier phases (bounded gateway surface, App-host catalog, search/execute, App render) pass before that phase.
  • pnpm evals:e2e workflows --local: skipped by needs() — requires OPENWORK_EVAL_MODEL, which is unavailable in this environment. The default-on registration claim it opens with is covered by the green agent-codemode-script unit suite.

Compatibility notes

  • Organizations that previously had these capabilities explicitly disabled will now have both features available; the stored overrides are treated as retired and removed on the next admin capabilities write.
  • DEN_REMOTE_MCP_APPS_ENABLED in existing deployment configs becomes inert and can be deleted.

…ollout flags

Workflows/Code Mode and Remote MCP Apps are stable, so the deployment gate
(DEN_REMOTE_MCP_APPS_ENABLED) and the per-organization workflows/codemodeScripts
and remoteMcpApps capabilities are removed. execute_capability_script, Workflow
capabilities, artifact tools, script paths, and MCP App launch metadata are now
always available; stale stored capability overrides are ignored and dropped on
the next admin capabilities write. The client-advertised App-host capability
header still gates native App metadata for older Desktop clients.
@mintlify

mintlify Bot commented Aug 24, 2026 •

Copy link
Copy Markdown
Contributor

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated (UTC)
differentai 🟢 Ready View Preview Aug 24, 2026, 11:35 PM

💡 Tip: Enable Workflows to automatically generate PRs for you.

@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 25, 2026 12:10am
openwork-den Ready Ready Preview Aug 25, 2026 12:10am
openwork-den-worker-proxy Ready Ready Preview Aug 25, 2026 12:10am
openwork-diagnostics Ready Ready Preview Aug 25, 2026 12:10am
openwork-landing Ready Ready Preview, v0 Aug 25, 2026 12:10am

diff-warden[bot]
diff-warden Bot previously approved these changes Aug 24, 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 (cb8ba8e82e5c199a8fa8250c8ccfa1b1c057164f). 1 advisory desktop↔den sync note(s) were posted as review comments; they do not affect clearance. Automated clearance satisfies the required-review gate only — a human still reviews and merges. Analysis run

…ct the App-metadata gating claim

DEN_REMOTE_MCP_APPS_ENABLED was removed from EnvSchema and the helm chart,
so the .env.example entry was inert and misleading for operators. The
remote-mcp-apps README now states what the code does: App launch metadata is
published unconditionally as an opaque binding, while the App-host index and
provider proxy stay gated on the client capability header.

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

@reachjalil
reachjalil merged commit 00f4eed into dev Aug 25, 2026
28 checks passed
reachjalil added a commit that referenced this pull request Aug 25, 2026
… mcp-apps endpoint

dev retired DEN_REMOTE_MCP_APPS_ENABLED and the per-org remoteMcpApps
capability (#4053), so the new /v1/mcp-connections/:id/mcp-apps route is
now available whenever the caller is an org admin, matching the rest of
the MCP Apps surface.
reachjalil added a commit that referenced this pull request Aug 25, 2026
… mcp-apps endpoint

dev retired DEN_REMOTE_MCP_APPS_ENABLED and the per-org remoteMcpApps
capability (#4053), so the new /v1/mcp-connections/:id/mcp-apps route is
now available whenever the caller is an org admin, matching the rest of
the MCP Apps surface.
reachjalil added a commit that referenced this pull request Aug 25, 2026
… mcp-apps endpoint

dev retired DEN_REMOTE_MCP_APPS_ENABLED and the per-org remoteMcpApps
capability (#4053), so the new /v1/mcp-connections/:id/mcp-apps route is
now available whenever the caller is an org admin, matching the rest of
the MCP Apps surface.
reachjalil added a commit that referenced this pull request Aug 25, 2026
…shboards (#4056)

* Org-managed Dashboards: Den entity + grants, Manage UI, desktop granted tiles

* Scope granted-dashboard query cache to the signed-in Den user

* Merge dev; drop the retired MCP Apps rollout gate from the connection mcp-apps endpoint

dev retired DEN_REMOTE_MCP_APPS_ENABLED and the per-org remoteMcpApps
capability (#4053), so the new /v1/mcp-connections/:id/mcp-apps route is
now available whenever the caller is an org admin, matching the rest of
the MCP Apps surface.

* Invalidate granted-tile consent when an admin changes what a launch invokes

The consent id for a granted dashboard element now fingerprints every
material launch field (connection, tool, projected tool, resource URI,
launch arguments), so editing any of them discards the member's stored
approval and auto-launch and the changed app must be run manually again.

* Renumber dashboards migration to 0078 after dev's 0077_drop_memory_bank

Regenerated with db:generate against dev's 0077 snapshot; the SQL is
byte-identical to the previous 0077_warm_carlie_cooper migration and a
rerun reports no schema changes.

* Make granted-tile consent identity lossless and include requiresApproval

Replace the 32-bit fingerprint with the URI-encoded canonical encoding of
the element's launch-material fields, so no crafted element edit can
collide with a previously approved identity, and fold requiresApproval in
so an approval-policy change also resets stored consent.

* fix(dashboards): negotiate Den support before loading grants

* fix(dashboards): stage Den rollout before desktop consumption
reachjalil added a commit that referenced this pull request Oct 5, 2026
Retire the per-organization appMcpServers capability. Apps built in
OpenWork now need only DEN_APP_MCP_SERVERS_ENABLED (default true, still
the deployment kill switch) and the organization's member-facing MCP
connections, so every organization gets the App builder, App servers and
dashboard Apps without a platform admin turning them on.

Like the capabilities #4053 retired, stored appMcpServers overrides are
ignored and dropped on the next admin capabilities write; the key leaves
the capability list, the admin API and the /admin panel. GET /v1/org still
reports the effective value. Regenerate OpenAPI and the SDK.

Eval Dens default DEN_APP_MCP_SERVERS_ENABLED to false so older
Workflow-bound view journeys keep testing that mode; the App journeys set
it to true and now prove a new organization offers the builder with no
/admin change. Also drop a stale /admin help line for the MCP Apps switch
reachjalil added a commit that referenced this pull request Oct 6, 2026
Retire the per-organization appMcpServers capability. Apps built in
OpenWork now need only DEN_APP_MCP_SERVERS_ENABLED (default true, still
the deployment kill switch) and the organization's member-facing MCP
connections, so every organization gets the App builder, App servers and
dashboard Apps without a platform admin turning them on.

Like the capabilities #4053 retired, stored appMcpServers overrides are
ignored and dropped on the next admin capabilities write; the key leaves
the capability list, the admin API and the /admin panel. GET /v1/org still
reports the effective value. Regenerate OpenAPI and the SDK.

Eval Dens default DEN_APP_MCP_SERVERS_ENABLED to false so older
Workflow-bound view journeys keep testing that mode; the App journeys set
it to true and now prove a new organization offers the builder with no
/admin change. Also drop a stale /admin help line for the MCP Apps switch
benjaminshafii pushed a commit that referenced this pull request Oct 6, 2026
* feat(mcp): build Apps in every organization by default

Retire the per-organization appMcpServers capability. Apps built in
OpenWork now need only DEN_APP_MCP_SERVERS_ENABLED (default true, still
the deployment kill switch) and the organization's member-facing MCP
connections, so every organization gets the App builder, App servers and
dashboard Apps without a platform admin turning them on.

Like the capabilities #4053 retired, stored appMcpServers overrides are
ignored and dropped on the next admin capabilities write; the key leaves
the capability list, the admin API and the /admin panel. GET /v1/org still
reports the effective value. Regenerate OpenAPI and the SDK.

Eval Dens default DEN_APP_MCP_SERVERS_ENABLED to false so older
Workflow-bound view journeys keep testing that mode; the App journeys set
it to true and now prove a new organization offers the builder with no
/admin change. Also drop a stale /admin help line for the MCP Apps switch

* test(apps): update the App journeys for the current creation row and dashboard

The App chat and creation journeys still expected the four-stage creation
card and "app" dashboard labels. #5547 replaced the card with one row
("Writing artifact", "Couldn't create artifact"), and #5560/#5561 renamed
the dashboard controls to artifacts and made compact tile menus appear only
on hover. They failed the same way on dev.

Match the row by its data-app-creation-stage, use the artifact labels,
hover the App inside a tile before opening its menu, and in the chat
journey add a removed tile back from the picker instead of reopening its
menu after Undo, which the creation journeys already cover.

This branch was successfully deployed

6 active (1 outdated) deployments
Preview – openwork-den-worker-proxy — 4556c11c Deployed Aug 25, 2026 by vercel[bot]
Preview – openwork-landing — 4556c11c Deployed Aug 25, 2026 by vercel[bot]
Preview – openwork-den — 4556c11c Deployed Aug 25, 2026 by vercel[bot]
Preview – openwork-app — 4556c11c Deployed Aug 25, 2026 by vercel[bot]
Preview – openwork-diagnostics — 4556c11c Deployed Aug 25, 2026 by vercel[bot]
staging - packages/docs — cb8ba8e8 Deployed Aug 24, 2026 by mintlify[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