Skip to content

Plugins: apply declarative contributions (managed MCP servers, local package servers, skills, templates) and OAuth connections #3544

Open

Description

@integry

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 oauth server 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 secretEnv values come from the plugin's token connections; 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 oauth connection 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) and docs/docs/features/agent-extensions.md (managed items).

Implementation

  1. Core: packages/core/src/plugins/pluginContributions.ts syncing managed items through the extension library store (packages/core/src/extensions/extensionProfileStore.ts), including package servers via extensionPackageLibrary.ts, packageCache.ts and packageLaunch.ts; a managedBy marker on library items and the edit guard.
  2. Credentials: resolve a managed item's credential or secret variables from the plugin's connections (packages/core/src/extensions/extensionCredentials.ts).
  3. Templates: add plugin templates to the template catalog source with the plugin name.
  4. OAuth: reuse the extension OAuth module for plugin connections.
  5. API additions in pluginRoutes.ts; OpenAPI regeneration.
  6. Tests in packages/core/test and packages/api/test with 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.

Activity

  1. added
    base-3542-epic-plugin-system-xu8
    on Nov 14, 2026
  2. propr-dev commented on Nov 14, 2026

    @propr-dev
    Contributor

    🤖 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:

    • Agent: claude
    • Model: claude-opus-5-5
    • Branch: 3544/claude-opus-5-5-plugins-apply-declarative-20261114-0605-5ta
    • Base Branch: 3542-epic-plugin-system-xu8
    • Worktree: issue-3544-20261114-0605-claude-opus-5-5-5ta

    🔍 Track Task Execution

  3. added a commit that references this issue on Nov 14, 2026
  4. added a commit that references this issue on Nov 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    AIAI-doneauto-mergebase-3542-epic-plugin-system-xu8llm-claude-opus55propr-planned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions