Skip to content

feat(library): make MCPs, Skills, and Plugins the primary Library categories - #4902

Merged
reachjalil merged 2 commits into
devfrom
feature/cloud-first-library
Sep 13, 2026
Merged

reachjalil merged 2 commits into
devfrom
feature/cloud-first-library

Conversation

@reachjalil

@reachjalil reachjalil commented Sep 11, 2026 •

Copy link
Copy Markdown
Member

Summary

Make MCPs, Skills, and Plugins the primary Desktop Library categories, with a compact header, truthful readiness states, and recoverable empty states. Workspace MCPs stay visible as Local items; Advanced retains its existing configuration and creation controls.

Current head: eef91a3cf — two signed commits reconstructed on dev@4f4f30e03. Den My Library landed separately in #4929, so this PR now carries only the Desktop app, the desktop external-open witness, and the covering journeys. The unused DenListRow grid extension from the earlier revision is dropped; no ee/ files change.

Review follow-up (carried from the earlier revision)

  • Cloud destination coverage: the discovery journey observes the final desktop external-open boundary and requires exactly one new request to this organization's Den MCP-connections URL; restricted member journeys assert Your Connections and reject the admin route. The recorder is opt-in, development-only, disabled in packaged builds, and writes only within the fixture's userData directory.
  • Live MCP readiness coverage: the fixture writes the enabled mock into opencode.json before opening the workspace (no registration API shortcut), completes a real MCP handshake, and expects the server under Ready with three disabled entries only under Disabled.
  • Admin restoration bug fixed: restored Cloud settings carry a member-role placeholder; the Library now reads the verified identity's organization role before offering administrator setup. Unknown roles remain non-admin.
  • Account labels: describe the signed-in member's own account; GET /v1/mcp-connections is orgMemberRoute()-protected. No public route or real identifier was added.
  • Organization name in captions: organizationName is the signed-in member's own cloudSession.activeOrgName, which dev already passes into these same Library captions (extensions.from_org, extensions.state_needs_signin_caption, extensions.state_needs_admin_setup_caption). This diff only re-indents that prop line and removes one further use; it adds no new identity surface.

UI/UX impact

Intentional Desktop Library redesign.

Surface Change
Categories/defaults MCPs / Skills / Plugins; MCPs → Ready to use → cards by default, preserving an explicit list preference. Connections are included in MCPs.
Header and toolbar Icon-only Add with tooltip and disabled reasons; no intro paragraph or unused right-panel action. MCP status uses warning/info tooltip feedback rather than a standing banner.
Readiness Distinct Ready, sign-in, admin-setup, setup, and Disabled tabs; category-specific empty/search/recovery states.
Local MCPs Cards labeled Local, grouped by real status; detail pages retain sign-in/out, enable/disable, remove, and Technical details. Creation remains only in Advanced.
Advanced Existing Add workspace MCP, From GitHub, scope, and Show in Finder controls preserved; no inventory moved inside.
Cards Neutral connected card shell/icon; green Connected chip only. Partial setup retains amber attention styling.
Built-ins/legacy items App runtimes and internal plumbing are not browsable MCP cards; direct setup links remain. OpenCode Plugins keep their disclosure under Plugins. Hidden items wait under Disabled; commands/agents remain composer capabilities with direct detail links.
Restored administrators Correct Add MCP action and admin creation options after verified role loading. No permission expansion for members.
Den No change in this PR (delivered by #4929).

Verification

Proof verdict: Passed for the covering journeys on the exact head: the PR's automatic journey run on eef91a3cf (critical journeys plus this PR's changed spec files) reports 12/12 tests, 18/18 assertions in the test-evidence comment below. No local rerun was performed on this head; the items under Deferred remain deferred.

Passed on eef91a3cf

  • Automatic PR journey run — 12 passed, 0 failed, 0 skipped; evidence published on this PR for this commit.
  • pnpm --filter @openwork/app typecheck — exit 0.
  • apps/app: pnpm exec bun test --isolate over the seven Library test files (extension-taxonomy, extensions-library-state-tabs, library-add-kind-picker, library-destination, open-in-den, desktop-policy-restricted, mcp-oauth-status-synchronization) — 87 passed, 0 failed, 0 skipped.
  • node --test apps/desktop/electron/open-external.test.mjs — 11 passed, 0 failed, 0 skipped, including the packaged-build guard.
  • git diff --check — clean; both commits signed.

Pre-existing, unrelated

  • pnpm --dir evals typecheck reports one error in evals/specs/session-attention-rollup.test.ts, which this PR does not touch. The identical command reproduces the same single error in a clean dev@4f4f30e03 control worktree; it is not addressed here.

Historical (earlier heads of this branch, before the Den split)

  • pnpm evals:e2e library-mcp-servers-from-config --local on 508f9dde9: 1 passed, 0 failed, 0 skipped.
  • pnpm evals:e2e library-add-connector-discovery --local on 19d1ce7e3: 1 passed, 0 failed, 0 skipped, with the exact final-boundary URL assertion.
  • Automatic PR journey runs reported 12/12 tests on those heads.

Deferred

  • Rerunning the covering journeys on this exact head; v2/platform matrices; visual judging.

GitHub merge gates

Ready for review, not draft. Required checks run on the new head. The dev ruleset's approval and review-resolution requirements remain in effect; no merge or rule bypass has been performed.

Risk and rollback

Normal and packaged external navigation are unchanged by the fixture recorder. No database migrations, credentials, or deployment changes are included; revert the two commits to roll back.

@vercel

vercel Bot commented Sep 11, 2026 •

Copy link
Copy Markdown
Contributor

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

Project Deployment Actions Updated
openwork-app Ready Ready Preview Sep 13, 2026 5:59am UTC
openwork-den Ready Ready Preview Sep 13, 2026 5:59am UTC
openwork-diagnostics Ready Ready Preview Sep 13, 2026 5:59am UTC
openwork-landing Ready Ready Preview, v0 Sep 13, 2026 5:59am UTC

@github-actions

github-actions Bot commented Sep 11, 2026 •

Copy link
Copy Markdown
Contributor

Passed · 12/12 tests · 18/18 assertions · 8 images

Commit eef91a3cff9a0ae37866ece95e3c28fdd79dcaa9 · selected evidence

Open review report

@github-actions

github-actions Bot commented Sep 11, 2026 •

Copy link
Copy Markdown
Contributor

Warden review summary — Clear

Native findings: 0. Blocking policy matches before consolidation: 0. Full finding text remains in Warden's native checks and review threads. This comment retains only native IDs, severity, skill attribution, and safe locations. Analysis run

Reported trigger coverage (not proof of complete repository or context coverage): diff-security-review (377616 ms), confidentiality-review (399294 ms), spec-provenance-review (487327 ms), desktop-den-sync-review (842918 ms).

Blockers

  • None.

Advisories

  • None.

Needs recheck

  • None.

Observed review-thread metrics

  • Unique observed run attempts in retained window: 7
  • Distinct heads in retained window: 7
  • Current unresolved Warden threads: 0 of 4 observed
  • Observed resolved/unresolved transitions in retained snapshots: 4 / 0
  • First observed resolved/unresolved (state at first collection, not event time): 0 / 4
  • Precision: unavailable (no adjudications; no TP/FP values are inferred)
  • Observation window: 7/20 run attempts retained; truncated: false
  • Transition snapshot: 4/4 current attributed threads retained (limit 500); truncated: false

Thread states are read-only collection snapshots. These metrics are neither lifetime totals nor exact resolution times, and this summary is not clearance authority.

reachjalil added a commit that referenced this pull request Sep 11, 2026
…l items

Review of #4902 asked for three corrections.

Advanced is the config section it was on dev: Add workspace MCP, From
GitHub, config scope, and Show in Finder. The inventory no longer lives
inside it. Servers written into the workspace's own config appear under
MCPs as local cards ("Local · this workspace" / "Local · this device"),
grouped by their live engine status, searchable, counted in the state
tabs, and opened on a detail page that carries the previous row actions
(sign in / sign out, enable / disable, remove, technical details). A
configured directory entry is represented by its local card, so nothing
shows twice. Adding a local MCP still happens only from Advanced.

A connected card is neutral: the Connected chip is the only green. The
card tint, icon ring, and corner badge are gone; partial setup keeps its
amber attention state.

OpenWork's own runtimes (Computer Use, Browser panel, Ollama, UI control)
and auto-managed plumbing are app functionality, not MCPs to browse, so
they leave the Library list. Their setup pages remain reachable by direct
link, which is how Computer Use enablement already works.

Consequences of keeping Advanced unchanged: OpenCode Plugins return to
their own disclosure, shown under the Plugins category; hidden skills,
plugins, and entries wait under the Disabled tab (their detail page still
offers Show); commands and agents stay composer capabilities with
direct-link detail pages and no Library cards, since engine-native agents
would otherwise fill the Skills category.

Two defects found while verifying in the running app: the MCP status icon
showed the neutral "No MCP servers configured yet." as an amber warning,
so that message is retired (the empty state owns it) and progress or
success notes render as information; and a Claude-style string command
relayed by the OpenWork server crashed Settings because only the desktop
fallback parser folded command and args, so the fold now runs at the
server boundary too.

Tests: local server grouping and cards, hidden-to-Disabled, built-in
exclusion, neutral connected card, status tone, and the boundary fold.
The two covering journeys are re-adapted: servers from config are found
under MCPs → Disabled and opened from there; render stability watches
the Skills cards instead of built-ins.
reachjalil added a commit that referenced this pull request Sep 11, 2026
…l items

Review of #4902 asked for three corrections.

Advanced is the config section it was on dev: Add workspace MCP, From
GitHub, config scope, and Show in Finder. The inventory no longer lives
inside it. Servers written into the workspace's own config appear under
MCPs as local cards ("Local · this workspace" / "Local · this device"),
grouped by their live engine status, searchable, counted in the state
tabs, and opened on a detail page that carries the previous row actions
(sign in / sign out, enable / disable, remove, technical details). A
configured directory entry is represented by its local card, so nothing
shows twice. Adding a local MCP still happens only from Advanced.

A connected card is neutral: the Connected chip is the only green. The
card tint, icon ring, and corner badge are gone; partial setup keeps its
amber attention state.

OpenWork's own runtimes (Computer Use, Browser panel, Ollama, UI control)
and auto-managed plumbing are app functionality, not MCPs to browse, so
they leave the Library list. Their setup pages remain reachable by direct
link, which is how Computer Use enablement already works.

Consequences of keeping Advanced unchanged: OpenCode Plugins return to
their own disclosure, shown under the Plugins category; hidden skills,
plugins, and entries wait under the Disabled tab (their detail page still
offers Show); commands and agents stay composer capabilities with
direct-link detail pages and no Library cards, since engine-native agents
would otherwise fill the Skills category.

Two defects found while verifying in the running app: the MCP status icon
showed the neutral "No MCP servers configured yet." as an amber warning,
so that message is retired (the empty state owns it) and progress or
success notes render as information; and a Claude-style string command
relayed by the OpenWork server crashed Settings because only the desktop
fallback parser folded command and args, so the fold now runs at the
server boundary too.

Tests: local server grouping and cards, hidden-to-Disabled, built-in
exclusion, neutral connected card, status tone, and the boundary fold.
The two covering journeys are re-adapted: servers from config are found
under MCPs → Disabled and opened from there; render stability watches
the Skills cards instead of built-ins.
@reachjalil
reachjalil force-pushed the feature/cloud-first-library branch from 6e0f5c7 to e94fcbd Compare September 11, 2026 20:17
@reachjalil
reachjalil enabled auto-merge (squash) September 11, 2026 20:34
@reachjalil
reachjalil disabled auto-merge September 11, 2026 23:25
@reachjalil
reachjalil enabled auto-merge (squash) September 11, 2026 23:25
reachjalil added a commit that referenced this pull request Sep 12, 2026
…l items

Review of #4902 asked for three corrections.

Advanced is the config section it was on dev: Add workspace MCP, From
GitHub, config scope, and Show in Finder. The inventory no longer lives
inside it. Servers written into the workspace's own config appear under
MCPs as local cards ("Local · this workspace" / "Local · this device"),
grouped by their live engine status, searchable, counted in the state
tabs, and opened on a detail page that carries the previous row actions
(sign in / sign out, enable / disable, remove, technical details). A
configured directory entry is represented by its local card, so nothing
shows twice. Adding a local MCP still happens only from Advanced.

A connected card is neutral: the Connected chip is the only green. The
card tint, icon ring, and corner badge are gone; partial setup keeps its
amber attention state.

OpenWork's own runtimes (Computer Use, Browser panel, Ollama, UI control)
and auto-managed plumbing are app functionality, not MCPs to browse, so
they leave the Library list. Their setup pages remain reachable by direct
link, which is how Computer Use enablement already works.

Consequences of keeping Advanced unchanged: OpenCode Plugins return to
their own disclosure, shown under the Plugins category; hidden skills,
plugins, and entries wait under the Disabled tab (their detail page still
offers Show); commands and agents stay composer capabilities with
direct-link detail pages and no Library cards, since engine-native agents
would otherwise fill the Skills category.

Two defects found while verifying in the running app: the MCP status icon
showed the neutral "No MCP servers configured yet." as an amber warning,
so that message is retired (the empty state owns it) and progress or
success notes render as information; and a Claude-style string command
relayed by the OpenWork server crashed Settings because only the desktop
fallback parser folded command and args, so the fold now runs at the
server boundary too.

Tests: local server grouping and cards, hidden-to-Disabled, built-in
exclusion, neutral connected card, status tone, and the boundary fold.
The two covering journeys are re-adapted: servers from config are found
under MCPs → Disabled and opened from there; render stability watches
the Skills cards instead of built-ins.
@reachjalil
reachjalil force-pushed the feature/cloud-first-library branch from 1d2e807 to 19d1ce7 Compare September 12, 2026 00:34
@reachjalil

Copy link
Copy Markdown
Member Author

Updated at 19d1ce7e3 and rebased onto current dev.

  • Cloud Add now has a fixture-owned final-boundary URL witness; assertions require exactly one new request and the correct admin/member destination (4ET-PT2).
  • Live MCP grouping now uses an enabled mock with a real successful handshake, engine-reported connected state, and positive/negative Ready/Disabled assertions (6QX-JFJ).
  • The stronger discovery test exposed a real restored-admin-role bug. Library now uses the verified organization role rather than the persisted member placeholder.
  • The account-label finding is not a public exposure: the route requires organization membership and returns the caller’s own account keyed by organization/member/provider. Existing account-disambiguation labels remain. Both inline review threads are resolved.

Final-head local checks: library-mcp-servers-from-config and library-add-connector-discovery each passed 1/1 with no skips. Evals typecheck passed. Full restricted-policy reruns and visual judging are deferred. Combined evidence publication could not proceed because OPENWORK_REVIEW_URL is missing from the publishing environment, so overall proof remains Incomplete.

UI/UX impact: restored administrators receive the intended Add MCP setup action; no additional visual redesign or packaged navigation change. An independent approving review is still required before GitHub will allow merging.

reachjalil added a commit that referenced this pull request Sep 12, 2026
…l items

Review of #4902 asked for three corrections.

Advanced is the config section it was on dev: Add workspace MCP, From
GitHub, config scope, and Show in Finder. The inventory no longer lives
inside it. Servers written into the workspace's own config appear under
MCPs as local cards ("Local · this workspace" / "Local · this device"),
grouped by their live engine status, searchable, counted in the state
tabs, and opened on a detail page that carries the previous row actions
(sign in / sign out, enable / disable, remove, technical details). A
configured directory entry is represented by its local card, so nothing
shows twice. Adding a local MCP still happens only from Advanced.

A connected card is neutral: the Connected chip is the only green. The
card tint, icon ring, and corner badge are gone; partial setup keeps its
amber attention state.

OpenWork's own runtimes (Computer Use, Browser panel, Ollama, UI control)
and auto-managed plumbing are app functionality, not MCPs to browse, so
they leave the Library list. Their setup pages remain reachable by direct
link, which is how Computer Use enablement already works.

Consequences of keeping Advanced unchanged: OpenCode Plugins return to
their own disclosure, shown under the Plugins category; hidden skills,
plugins, and entries wait under the Disabled tab (their detail page still
offers Show); commands and agents stay composer capabilities with
direct-link detail pages and no Library cards, since engine-native agents
would otherwise fill the Skills category.

Two defects found while verifying in the running app: the MCP status icon
showed the neutral "No MCP servers configured yet." as an amber warning,
so that message is retired (the empty state owns it) and progress or
success notes render as information; and a Claude-style string command
relayed by the OpenWork server crashed Settings because only the desktop
fallback parser folded command and args, so the fold now runs at the
server boundary too.

Tests: local server grouping and cards, hidden-to-Disabled, built-in
exclusion, neutral connected card, status tone, and the boundary fold.
The two covering journeys are re-adapted: servers from config are found
under MCPs → Disabled and opened from there; render stability watches
the Skills cards instead of built-ins.
@reachjalil
reachjalil force-pushed the feature/cloud-first-library branch from 19d1ce7 to 508f9dd Compare September 12, 2026 01:39
@reachjalil

Copy link
Copy Markdown
Member Author

Latest review follow-up is in 508f9dde9, rebased onto dev@d6c62b136 without conflicts.

  • WSS-UEQ: replied in the thread with the actual /v1/me/library authentication and caller-grant predicates, then resolved it as a false positive. My Library is an authenticated member surface; person/team/organization provenance is retained.
  • H4P-MLP: removed the fixture’s MCP registration API shortcut. It now writes the enabled mock into opencode.json before opening the workspace, then requires configuration visibility, a real handshake, engine-connected status, and positive/negative Ready/Disabled assertions.
  • pnpm evals:e2e library-mcp-servers-from-config --local passed on this exact head: 1 passed, 0 failed, 0 skipped (67.4s). Evals typecheck passed for 428 files. Other journey receipts remain historical after this rebase; full proof is still Incomplete.

UI/UX impact: None in this follow-up — the reviewed Library UI is preserved. No public provenance-removal change or permission relaxation was introduced. CI is rerunning; no merge was performed.

reachjalil added a commit that referenced this pull request Sep 13, 2026
…l items

Review of #4902 asked for three corrections.

Advanced is the config section it was on dev: Add workspace MCP, From
GitHub, config scope, and Show in Finder. The inventory no longer lives
inside it. Servers written into the workspace's own config appear under
MCPs as local cards ("Local · this workspace" / "Local · this device"),
grouped by their live engine status, searchable, counted in the state
tabs, and opened on a detail page that carries the previous row actions
(sign in / sign out, enable / disable, remove, technical details). A
configured directory entry is represented by its local card, so nothing
shows twice. Adding a local MCP still happens only from Advanced.

A connected card is neutral: the Connected chip is the only green. The
card tint, icon ring, and corner badge are gone; partial setup keeps its
amber attention state.

OpenWork's own runtimes (Computer Use, Browser panel, Ollama, UI control)
and auto-managed plumbing are app functionality, not MCPs to browse, so
they leave the Library list. Their setup pages remain reachable by direct
link, which is how Computer Use enablement already works.

Consequences of keeping Advanced unchanged: OpenCode Plugins return to
their own disclosure, shown under the Plugins category; hidden skills,
plugins, and entries wait under the Disabled tab (their detail page still
offers Show); commands and agents stay composer capabilities with
direct-link detail pages and no Library cards, since engine-native agents
would otherwise fill the Skills category.

Two defects found while verifying in the running app: the MCP status icon
showed the neutral "No MCP servers configured yet." as an amber warning,
so that message is retired (the empty state owns it) and progress or
success notes render as information; and a Claude-style string command
relayed by the OpenWork server crashed Settings because only the desktop
fallback parser folded command and args, so the fold now runs at the
server boundary too.

Tests: local server grouping and cards, hidden-to-Disabled, built-in
exclusion, neutral connected card, status tone, and the boundary fold.
The two covering journeys are re-adapted: servers from config are found
under MCPs → Disabled and opened from there; render stability watches
the Skills cards instead of built-ins.
@reachjalil
reachjalil force-pushed the feature/cloud-first-library branch from 508f9dd to d85d336 Compare September 13, 2026 05:23
…egories

The Desktop Library mixed seven filter chips, an All state tab, a Show
hidden toggle, a standing MCP-status banner, and a long description into
one page. Members looking for a cloud MCP had to understand Connections,
Apps, Commands, and Agents first.

- Filters are MCPs, Skills, and Plugins; connections sit under MCPs and
  the page opens on MCPs with the Ready to use tab and card layout. A saved
  list preference is still honored.
- The Add action is an icon-only header button with a tooltip. Members see
  "View available MCPs"; admins get connector setup; skill creation starts
  a new bundle. Sign-in, organization, and Cloud-unavailable reasons
  disable the button instead of hiding it. Restored Cloud settings carry a
  member-role placeholder, so the Library reads the verified identity's
  organization role before offering administrator setup.
- State tabs are Ready to use, Needs your sign-in, Needs admin setup, Ready
  to set up, and Disabled; live MCP status decides the group for Connect
  and directory entries. Hidden skills, plugins, and entries wait under
  Disabled.
- Servers written into the workspace's own config appear under MCPs as
  local cards grouped by live engine status, with a detail page carrying
  sign in / sign out, enable / disable, remove, and technical details.
  Adding a local MCP still happens only from Advanced, which keeps its
  existing Add workspace MCP, From GitHub, scope, and Show in Finder
  controls.
- A connected card is neutral: the Connected chip is the only green.
  OpenWork's own runtimes and auto-managed plumbing are app functionality,
  not MCPs to browse; their setup pages remain reachable by direct link.
  Commands and agents stay composer capabilities with direct-link detail
  pages. Legacy /extensions/* routes still resolve to a primary category.
- The MCP status banner becomes a warning or information icon whose
  tooltip carries the same message; each category has its own empty state
  with a recovery path. A Claude-style string command relayed by the
  OpenWork server is folded at the server boundary so Settings no longer
  crashes on it.

The organization name shown in provenance and sign-in captions is the
signed-in member's own active organization, as on dev; Den My Library
landed separately in #4929.

Tests: focused Desktop Library tests updated; library-add-kind-picker and
state-tab coverage added.
Adapt the covering Library journeys to the new controls and open the main
Library from the app navigation. The discovery journey observes the final
desktop external-open boundary and requires exactly one new request to the
organization's Den MCP-connections URL; restricted member journeys assert
Your Connections and reject the admin route. The recorder is opt-in,
development-only, disabled in packaged builds, and writes only within the
fixture's userData directory.

The readiness journey writes an enabled mock MCP into opencode.json before
opening the workspace, completes a real handshake, and expects the server
under Ready while three disabled entries appear only under Disabled. The
library-add-connector-discovery raw-escape allowance drops from 13 to 1.

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

@reachjalil
reachjalil merged commit 9543801 into dev Sep 13, 2026
28 checks passed

This branch was successfully deployed

4 active deployments
Preview – openwork-landing — eef91a3c Deployed Sep 13, 2026 by vercel[bot]
Preview – openwork-den — eef91a3c Deployed Sep 13, 2026 by vercel[bot]
Preview – openwork-app — eef91a3c Deployed Sep 13, 2026 by vercel[bot]
Preview – openwork-diagnostics — eef91a3c Deployed Sep 13, 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