Repository navigation
feat(den): enable Code Mode and MCP Apps by default, retiring their rollout flags - #4053
Conversation
…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.
|
Preview deployment for your docs. Learn more about Mintlify Previews.
💡 Tip: Enable Workflows to automatically generate PRs for you. |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
… 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.
… 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.
… 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.
…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
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
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
* 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.
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:
workflows/ legacycodemodeScriptsorganization capability andworkflow-rollout.ts.execute_capability_script, Workflow marketplace capabilities, Workflow library items, artifact tools (render_workflow_artifact,render_dynamic_artifact), and Code ModescriptPathdecoration are now unconditional in the agent MCP surface, org routes, plugin library, and the cloud workflow executor./v1/organizationkeeps returningcapabilities.workflows: truefor published clients that still read it.DEN_REMOTE_MCP_APPS_ENABLEDdeployment gate (env, helm chart) and theremoteMcpAppsorganization capability.kind: mcp_app,ui://bindings,openwork/mcpAppmeta) are always published; the per-connection provider proxy no longer has a disabled fallback surface.execute_capability_scriptregisters for a brand-new org).Verification
tsc --noEmitfor den-api and den-web: clean.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 cleandevcontrol worktree.program-plugin-marketplace,org-dashboard-sidebar-ia): green.pnpm evals:prat 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 withinvalid_mcp_token/ SSE 401. The identical command fails with the identical signature on unmodifieddev(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 byneeds()— requiresOPENWORK_EVAL_MODEL, which is unavailable in this environment. The default-on registration claim it opens with is covered by the greenagent-codemode-scriptunit suite.Compatibility notes
DEN_REMOTE_MCP_APPS_ENABLEDin existing deployment configs becomes inert and can be deleted.