# Extension management

How an owner manages the three extension types in the Web UI. Outside this design: Programs, agent allowlists, third-party marketplace governance, new package formats.

## Shared task model

| Task | Plugins | Skills | MCP servers |
| --- | --- | --- | --- |
| Installed | Installed packages | Local and bundled `SKILL.md` entries | Configured servers |
| Discover | Marketplace indexes | Configured skill catalogs | Curated and custom MCP catalogs |
| Add | Install package or local path | Install from catalog or create locally | Install catalog entry or configure manually |
| Availability | Enabled + loaded | Enabled | Enabled + ready |
| Diagnose | Validation and load error | Parse or load error | Connection error and tools |
| Remove | Uninstall | Delete owned skill | Delete configuration |

## Page structure

| Part | Contains |
| --- | --- |
| Top toolbar | Abilities tabs (Plugins, Skills, MCP), search and refresh only |
| Secondary tabs | Installed, Discover, and Issues where a type has it. Own the body, quieter than the top tabs, hold the single Add action. Counts say installed, available or issue. |
| Installed entry | `ManageRow`, one anatomy for all three |
| Discover entry | `ManageCatalogCard`, one anatomy for all three |
| MCP details | Standard detail dialog |
| Page background | Open, no decorative outer frame, as elsewhere in OpenProgram |

## Every action

1. **Action** add, enable, refresh, test, update, remove; busy, keeps its name
2. **Typed request** parses error and FastAPI detail, keeps status and code, one error type
3. **Result** success: refresh collection; failure: visible near it, says how to recover

## Boundaries

| Aspect | Rule |
| --- | --- |
| Reused | `ManagePageHeader`, `ManageSubnav`, existing dialogs and routes, native fetch; each subsystem's backend and security boundary |
| Standardized | Task vocabulary, summary placement, loading and error feedback, request error parsing |
| Not used | Outer body frame, MCP-only split page, duplicated Discover action, Discover modal, universal extension backend, merged persisted schema, new state library |
| Unchanged | URLs, API payloads, store data, secret masking, catalog provenance, Skill hierarchy, plugin trust confirmation, MCP restart and selection |
| Security | No stored secret is retrieved or echoed. Remote catalog policy stays server-side. UI errors add no credentials or raw secrets. |
| Excluded | Programs, agent allowlists, backend schema consolidation, Windows work, keyrings, new marketplaces, plugin runtime isolation |
| Code | `apps/web/components/capabilities/`, `plugins/`, `skills/`, `mcp/`, `apps/web/components/ui/manage-page*`, `apps/web/lib/net/fetch-client.ts` |
| Sources | [Skills and plugins](https://fzkuji.github.io/OpenProgram/docs/reference/design/integrations/extensions/skills-and-plugins.html), [MCP client](https://fzkuji.github.io/OpenProgram/docs/reference/design/integrations/extensions/mcp-integration.html), public routes `/plugins`, `/skills`, `/mcp` |

**Other products**

Claude Code's plugin manager has installed, discover and error tasks but no OpenProgram Skills or MCP runtime readiness. opencode's MCP and plugin surfaces have no cross-type model. Hermes groups skills without the three-type availability summary. Hence the shared task vocabulary, with OpenProgram's live MCP state and Skill hierarchy kept.

## Implementation status

| State | Scope |
| --- | --- |
| Implemented | The structure above, with tab and panel, Switch and folder-button semantics, in-dialog MCP errors and loading states for Plugins and Skills. Executable checks cover vocabulary and status summaries, a visible path for non-2xx requests, shared item and card contracts, owner authentication and secret non-retrieval. |
| Not reverified | Visible desktop and narrow-width acceptance on the App is left to direct user inspection. |
