Repository navigation
Open
Labels
AIAI-doneauto-mergebase-3542-epic-plugin-system-xu8Base branch label for Epic: Plugin system: manifest, handlers, commands and official pluginsllm-claude-opus55propr-planned
Description
Goal
Make an enabled plugin actually add things: its MCP servers and skills become managed items in the extension library, its automation templates appear in the template catalog, and its oauth connections use the extension OAuth sign-in.
Behaviour
When a plugin is enabled:
- Its MCP servers and skills appear in the extension library as managed items tagged with the plugin id. Their definition is read-only (it comes from the manifest); the administrator can still use the item's enabled checkbox, repository limit, agent limit and automatic-apply switch. Managed items default to automatic apply on, limited to the plugin's repository limit.
- Remote servers: a managed server's credential comes from the plugin connection it references; an
oauthserver is left out of runs until connected, exactly like any other OAuth library server. - Package servers: a managed package server is installed and launched through the existing package path (pinned version and integrity value from the manifest, installed once without lifecycle scripts, verified at launch, run through the stdio bridge in the task container). Its
secretEnvvalues come from the plugin'stokenconnections; a missing secret skips the server for that run with a recorded reason. The acknowledgement recorded at install (previous issue) is what satisfies the library's acknowledgement requirement; without it the item stays inactive. - Its automation templates appear in the template catalog, marked with the plugin name.
- Disabling the plugin deactivates its managed items and hides its templates; automations already created from a template are ordinary automations and are not touched. Uninstalling removes the managed items (refused, naming the automations, while an automation still adds one of them explicitly).
- A name collision between a managed item and an existing library item is resolved by prefixing the managed item with the plugin id.
- OAuth connections: start, complete and disconnect an
oauthconnection of a plugin through the extension OAuth module and its callback; the connection state is reported on the plugin. ProPR identifies as itself, as it does for library servers.
API
Add to /api/instance/plugins/v1: start/complete/disconnect an OAuth connection; the plugin read model lists its contributions with links to the managed items.
Acceptance criteria
- Installing and enabling the example plugin creates its managed library items (one remote, one package, one skill) and exposes its template; a run in a matching repository gets the managed remote server, the package server and the skill through the normal library resolution; disabling removes them from runs; re-enabling restores them with settings and connections intact; uninstalling removes them.
- The package server of the example plugin is installed once, verified, mounted read-only and launched through the stdio bridge; with its secret missing it is skipped and the run proceeds; without the recorded acknowledgement it is never launched.
- Managed items cannot be edited except for enabled, limits and automatic apply; attempts are refused. A managed package server's package, version, integrity value, arguments and variables cannot be changed through the library API.
- A managed OAuth server is left out of runs until its plugin connection is connected; disconnecting removes it from later runs.
- Uninstall is refused while an automation explicitly adds a managed item, naming the automation.
- Secrets never appear in responses, task events or logs (sentinel test).
docs/docs/features/plugins.md(managed items, local servers contributed by plugins) anddocs/docs/features/agent-extensions.md(managed items).
Implementation
- Core:
packages/core/src/plugins/pluginContributions.tssyncing managed items through the extension library store (packages/core/src/extensions/extensionProfileStore.ts), including package servers viaextensionPackageLibrary.ts,packageCache.tsandpackageLaunch.ts; amanagedBymarker on library items and the edit guard. - Credentials: resolve a managed item's credential or secret variables from the plugin's connections (
packages/core/src/extensions/extensionCredentials.ts). - Templates: add plugin templates to the template catalog source with the plugin name.
- OAuth: reuse the extension OAuth module for plugin connections.
- API additions in
pluginRoutes.ts; OpenAPI regeneration. - Tests in
packages/core/testandpackages/api/testwith the example plugin.
Notes
Depends on the installation state issue. Do not weaken any rule of the extension library for managed items: pinned version with integrity value, no lifecycle scripts, write-capability servers need explicit write authorization for the specific run. ProPR runs on SQLite only.
Metadata
Metadata
Assignees
Labels
AIAI-doneauto-mergebase-3542-epic-plugin-system-xu8Base branch label for Epic: Plugin system: manifest, handlers, commands and official pluginsllm-claude-opus55propr-planned
Activity
propr-dev commentedon Nov 14, 2026
🤖 AI processing has started for this issue using claude agent with claude-opus-5-5 model.
I'll analyze the problem and work on a solution. This may take a few minutes.
Processing Details:
claudeclaude-opus-5-53544/claude-opus-5-5-plugins-apply-declarative-20261114-0605-5ta3542-epic-plugin-system-xu8issue-3544-20261114-0605-claude-opus-5-5-5ta🔍 Track Task Execution
I've implemented #3544. An enabled plugin now adds its MCP servers an…
I've implemented #3544. An enabled plugin now adds its MCP servers an…