Repository navigation
[3544 by Claude Opus 5.5] Plugins: apply declarative contributions (managed MCP servers, local package servers, skills, templates) and OAuth connections - #3565
Conversation
…d skill to the extension library as managed items, and its template to the template catalog. Its OAuth connection signs in through the extension OAuth module. Runs pick these items up through the normal library resolution.
Tests: I ran the new Core test (5 cases), the updated plugin store and plugin API route tests, and the extension, OAuth, automation, MCP, OpenAPI and settings-UI suites that touch this code; all pass. `gen:openapi:check`, `plugins:check`, the typechecks and zero-warning lint for core and api also pass. I didn't run the full repository suite. Most suites need `PROPR_DEMO_MODE=true` locally. `extensionServerMount`, `mcpObservableSurface` and `mcpOperatorSurface` fail under that setting and pass with a placeholder GitHub relay configured.
How it works
- Managed items: library items carry a `managedBy` marker (plugin id, manifest name, `active`). An item applies to runs only while its plugin is enabled and nothing awaits an acknowledgement. They default to automatic apply on, limited to the plugin's repository limit.
- Edit guard: a library save may change only enabled, the repository and agent limits, and automatic apply on a managed item. Changing anything else, removing it, adding a forged one or replacing its credential is refused. For a package server that covers package, version, integrity value, arguments and variables.
- Sync: every plugin change brings the library in line inside the same database transaction (new code in `packages/core/src/plugins/pluginContributions.ts`). Credentials come from the plugin's connections; nothing is written when nothing changed.
- Disabling deactivates the items and keeps their settings and connections, so re-enabling restores them.
- Uninstalling removes the items. It is refused while an automation adds one of them explicitly, and the message names the automation.
- A name clash with an existing library item gets the `<plugin id>-<name>` prefix.
- Package servers: they use the existing install path. The version and integrity value come from the manifest, the package is installed once without lifecycle scripts, verified at launch, mounted read-only and run through the stdio bridge. With its secret missing the server is skipped with `secret_not_configured` and the run continues. Without a current acknowledgement it is never installed or launched.
- OAuth: three new routes start, complete and disconnect an OAuth connection: `POST /api/instance/plugins/v1/<id>/connections/<name>/oauth/{start,complete,disconnect}`. The extension callback also completes the sign-in. A plugin read now reports `connected`, `not_connected` or `needs_sign_in`.
- Templates: `GET /api/automation-definitions/templates` and the `list_automation_templates` MCP tool include enabled plugins' templates, each with a `plugin` field naming it.
- Read model: a plugin read now includes `contributions`, which links each server and skill to its library item. The OpenAPI spec and client types are regenerated.
- UI: managed rows in Settings show a "Plugin: <id>" badge and an "Inactive" badge when they don't apply, and have no Remove button.
- Docs: `plugins.md` has a new "What an enabled plugin adds" section, and `agent-extensions.md` and `docs/mcp.md` are updated.
Choices the issue left open
- Created at install: managed items exist from install, inactive, so the OAuth connection can be signed in before enabling. They still apply only while the plugin is enabled.
- Repository limit: changing the plugin's limit resets its managed items' limit to it, overriding per-item edits.
- Shared OAuth connection: when several servers use one connection, it shows connected only when all of them are signed in.
- Changed skill files: after an upgrade, a changed skill becomes a new bundle. An automation that added the old bundle then reports it as not found.
- Template ids: a template keeps its id unless a shipped template or another plugin uses it; then it gets the `<plugin id>-` prefix.
Decision for you: the new-automation form in the web UI still uses the template list built into the app, so plugin templates show up only through the API and MCP. Making them appear in the form means having the UI fetch the catalog; I left that out to keep this change focused.
Two preview images of the Settings extension list with managed items are attached; they use mocked API data.
|
/ultrafix goal=8 max=10 |
|
🔄 Ultrafix loop started (goal: 8/10, max cycles: 10) First action:
|
|
✅ AI Code Review Complete requested by @propr-ultrafix Posted 1 review: |
🔍 AI Code Review — codex:gpt-6-astraOverall EvaluationThis PR integrates plugin contributions into the existing extension library, OAuth flow, and template catalog. It needs changes before merge because disabling can fail after an upgrade, skill upgrades break explicit automation references, and OAuth registration restrictions are lost. ✅ Managed-item protection — Library saves reject forged managed items, definition changes, removals, and credential replacements. ✅ Runtime reuse — Managed contributions use existing extension resolution and package verification, with tests covering activation, missing credentials, and secret redaction. This review used static tracing only; no commands were run. The supplied current checks show 29 passed, five pending, and no failures. Merge blockersEvery finding below was introduced by this PR and must be resolved before merging. F1: 🔴 Manifest updates can prevent disabling
F2: 🔴 Skill upgrades orphan automation references
F3: 🔴 OAuth registration restrictions are discarded
SuggestionsThese are optional follow-ups and are not sent to S1: 🟢 Update the introductory status noteThe opening work-in-progress note in ScoreThe implementation has useful integration coverage and reuses established runtime protections, but the lifecycle and OAuth contract defects require correction. Pending checks do not independently lower the score. Score: 6/10 🤖 Review Details
Copy and edit to choose records from this review: 🤖 Review by ProPR |
|
✅ Applied the requested follow-up changes in commit 09f03e2
Summary of ChangesI've fixed all three findings, and each has a regression test in F1: Disabling no longer depends on applying an upgrade.
F2: A changed skill no longer silently breaks an automation that adds it.
F3: OAuth sign-in only uses the registration methods the plugin allows.
I also updated the docs ( Two things I noticed but didn't change:
There's no visual change, so I made no previews. 🤖 Implementation Details
💡 ProPR Slash Commands
🤖 Generated by ProPR |
…st in `packages/core/test/pluginContributions.test.ts`. I ran the new tests against the old code: all three fail there, and so does the first existing test, because I updated its assertion for the new marker field. With the fix, all 8 tests in that file pass. The OAuth, plugin store, extension library usage, OAuth route and plugin route suites also pass (31 tests). The core and shared typechecks, zero-warning lint on the changed source, and `gen:openapi:check` all pass. I've fixed all three findings, and each has a regression test in `packages/core/test/pluginContributions.test.ts`. I ran the new tests against the old code: all three fail there, and so does the first existing test, because I updated its assertion for the new marker field. With the fix, all 8 tests in that file pass. The OAuth, plugin store, extension library usage, OAuth route and plugin route suites also pass (31 tests). The core and shared typechecks, zero-warning lint on the changed source, and `gen:openapi:check` all pass. **F1: Disabling no longer depends on applying an upgrade.** - A disable now only sets the plugin's existing managed items to inactive. It doesn't apply the new manifest, read skill files, or add or remove anything. The change is in `pluginContributions.ts` `sync` and `pluginStore.ts` `setEnabled`. - Other plugin changes still apply the upgrade with its checks. Changing settings, enabling, setting repositories or approving still fails on missing skill files or on a removed item that an automation adds. - Test: an upgrade drops a server an automation adds, and the skill files can't be read. The disable succeeds, the items stay as they were but inactive, and runs get none of them. A settings change is refused with each error in turn, then goes through once the automation no longer adds the server. **F2: A changed skill no longer silently breaks an automation that adds it.** - Automations refer to skills by bundle ID, so the removal check now compares bundle IDs instead of manifest names. If an upgrade changes a skill's files while an automation adds the old bundle, the plugin change is refused with the automation's name, and the new bundle isn't stored. - Test: with automatic apply off, the change is refused and the automation's run keeps the skill. Disabling still works. Once the automation stops adding the skill, re-enabling stores the new bundle. - This means an administrator can't apply such an upgrade until they remove the skill from the automation. Afterwards they have to add the new bundle themselves. **F3: OAuth sign-in only uses the registration methods the plugin allows.** - A managed OAuth server now carries the connection's allowed methods on its plugin marker (`managedBy.registrations`). An administrator can't change or remove it through the library. - Sign-in tries only those methods, in the listed order, and is refused with HTTP 409 when the provider supports none of them. This check lives in `startSignIn`, so it applies to both the plugin sign-in route and the ordinary extension route. - Servers that aren't managed by a plugin choose a method exactly as before. - Test: the plugin allows only `metadata_document` and the provider offers only dynamic registration. Both routes refuse, no client is registered and no sign-in record is left behind. When the provider supports metadata documents, sign-in uses one. I also updated the docs (`plugins.md`, `agent-extensions.md`) and the OpenAPI description, and regenerated the spec and client types. Two things I noticed but didn't change: - If an upgrade narrows a plugin's allowed methods, an existing connection signed in with a method no longer allowed stays connected and keeps refreshing. The restriction only applies to new sign-ins. - If an upgrade lands while a sign-in is already in progress, the sign-in completes with the method chosen when it started. There's no visual change, so I made no previews. PR: #3565 Comment by: @propr-ultrafix (ID: 0) Model: Claude Opus 5.5
|
⏳ Ultrafix is waiting for CI before the next These blocking checks on
Checks matching this repository's non-blocking checks never gate Ultrafix. The loop continues automatically once the blocking checks pass; if they have not settled within 2 hours, Ultrafix stops. |
|
✅ AI Code Review Complete requested by @propr-ultrafix Posted 1 review: |
🔍 AI Code Review — codex:gpt-6-astraOverall EvaluationThe PR integrates plugin contributions into the existing extension library, OAuth flow, and template catalog. It needs changes before merge to address three reachable correctness failures. ✅ Transactional contributions — Plugin mutations and library synchronization share a database transaction, including refusal of referenced-item removal. ✅ Managed-item protection — Library saves reject definition changes, forged ownership markers, removal, and credential replacement. ✅ Runtime coverage — Added tests exercise package installation, missing credentials, OAuth, disabling, and referenced skill upgrades. This is a static review of the supplied code; no commands were run. Current checks show 29 passed, five pending, and no failures. Merge blockersEvery finding below was introduced by this PR and must be resolved before merging. F4: 🔴 Disabling depends on decrypting credentials
F5: 🔴 Pre-registered OAuth cannot be configured
F6: 🔴 Template prefixes can create duplicate IDs
SuggestionsThese are optional follow-ups and are not sent to S2: 🟢 Refresh the introductory status noteThe existing “Work in progress” note in ScoreThe implementation has useful integration coverage and reuses established runtime protections, but credential recovery, pre-registered OAuth, and template identity need localized corrections. Pending checks have not been treated as failures. Score: 6/10 🤖 Review Details
Copy and edit to choose records from this review: 🤖 Review by ProPR |
|
✅ Applied the requested follow-up changes in commit d05386b
Summary of ChangesI fixed all three findings, and each has a regression test in F4: disabling no longer decrypts anything
F5: a pre-registered OAuth client can now be configured
F6: template IDs are now unique
One related problem I left alone: uninstalling still needs to decrypt the library credentials, because it deletes the plugin's credentials. So an uninstall under a mismatched encryption root still fails, but a disable now works there. That's outside these three findings. There's no preview: none of these changes shows up in the UI. 🤖 Implementation Details
💡 ProPR Slash Commands
🤖 Generated by ProPR |
…in `packages/core/test/pluginContributions.test.ts`. I ran the three new tests against the previous code and all three fail there. With the fix, all 11 tests in that file pass. The plugin routes, plugin store, extension OAuth, database export, OpenAPI coverage and conformance, route authorization and template catalog suites also pass (167 tests). Typecheck, zero-warning lint on the changed files and `gen:openapi:check` pass for core, shared and api.
I fixed all three findings, and each has a regression test in `packages/core/test/pluginContributions.test.ts`. I ran the three new tests against the previous code and all three fail there. With the fix, all 11 tests in that file pass. The plugin routes, plugin store, extension OAuth, database export, OpenAPI coverage and conformance, route authorization and template catalog suites also pass (167 tests). Typecheck, zero-warning lint on the changed files and `gen:openapi:check` pass for core, shared and api.
**F4: disabling no longer decrypts anything**
- A disable now skips unsealing the plugin's connections in `pluginStore.ts`, and the sync no longer unseals the library credentials. It writes the next revision with the library's existing "credentials unchanged" option, so the sealed bytes carry over as they are. I had to export that option (`UNCHANGED_CREDENTIALS`) from `extensionProfileStore.ts`.
- Same defect, same fix: an installed plugin that an upgrade removed from the registry also only keeps its items as they are, so it now takes this path too.
- Test: enable, sign in, then disable through a store using a different encryption root. All managed items become inactive and the credential statuses are kept. The new revision holds the previous sealed bytes, carried over without being decrypted. Re-enabling under the original root brings the token and the OAuth connection back.
**F5: a pre-registered OAuth client can now be configured**
- New route `PUT /api/instance/plugins/v1/<id>/connections/<name>/oauth/client`, with `{ "client": { "clientId", "clientSecret"? } }` to set it or `{ "client": null }` to clear it.
- The client is sealed in `plugin_secrets` under the connection's name and is never returned. A plugin read shows who configured it in `setBy`/`setAt`.
- It is only accepted when the connection's `registrations` include `preregistered`; otherwise the route returns 409.
- The sync puts the client id on the managed server's `clientId` and the secret into the library's sealed client secret. The library still can't replace that secret, and changing or clearing the client drops the existing sign-in.
- Two new audit actions: `set_oauth_client` and `clear_oauth_client`. The OpenAPI spec and client types are regenerated.
- Test: a provider that offers only pre-registration, against a connection limited to `preregistered`. Sign-in returns 409 until a client is configured, then connects using it. The secret appears in no response, revision or audit row. Clearing the client removes it and drops the connection.
**F6: template IDs are now unique**
- Every original template ID, shipped or from a plugin, is reserved first. A prefixed ID that is already taken by an original or by an earlier prefixed ID gets `-2`, `-3`, and so on, in registry order.
- Template views in the plugin read use the same mapping.
- Test: several overlapping collisions, including the one in the finding, and a check that the result is the same on every call.
`plugins.md` documents all three changes.
**One related problem I left alone:** uninstalling still needs to decrypt the library credentials, because it deletes the plugin's credentials. So an uninstall under a mismatched encryption root still fails, but a disable now works there. That's outside these three findings.
There's no preview: none of these changes shows up in the UI.
PR: #3565
Comment by: @propr-ultrafix (ID: 0)
Model: Claude Opus 5.5
|
✅ AI Code Review Complete requested by @propr-ultrafix Posted 1 review: |
🔍 AI Code Review — codex:gpt-6-astraOverall EvaluationThe PR integrates plugin contributions into the existing extension library, OAuth flow, and template catalog. It needs changes before merge: configured OAuth clients can select an incompatible registration method, and plugin repository limits exceed the library contract they now feed. ✅ Transactional synchronization — Plugin mutations and managed library revisions share a transaction, including refusal of referenced-item removal. ✅ Managed-item protection — Library saves reject definition changes, forged ownership markers, removal, and credential replacement while allowing documented item settings. ✅ Lifecycle coverage — Added tests cover disable/re-enable, missing credentials, acknowledgement changes, referenced skill upgrades, and credential secrecy. This review uses static tracing only. The supplied current checks report no failures, with five checks pending. Merge blockersEvery finding below was introduced by this PR and must be resolved before merging. F7: 🔴 Configured OAuth clients can never connect
F8: 🔴 Valid repository limits become unsavable
SuggestionsThese are optional follow-ups and are not sent to S3: 🟢 Refresh the introductory documentationThe work-in-progress notice in ScoreThe implementation has substantial lifecycle coverage and useful reuse of existing safeguards, but two reachable contract failures remain. Current checks show no failures, although five are pending. Score: 6/10 🤖 Review Details
Copy and edit to choose records from this review: 🤖 Review by ProPR |
|
✅ Applied the requested follow-up changes in commit 86d46ef
Summary of ChangesI fixed both findings, and each now has regression tests. The three new tests in F7: a configured OAuth client can now connect. Before, a plugin connection that lists
F8: repository limits up to 256 can be saved again. The library's per-item repository limit is now the plugin limit of 256 (
Verification: these suites also pass:
Typecheck passes for shared, core and api. Lint with zero warnings passes on the changed core files; eslint skips the shared file, as it isn't covered by a lint config. No preview images this time, since neither fix changes anything on screen. 🤖 Implementation Details
💡 ProPR Slash Commands
🤖 Generated by ProPR |
…he three new tests in `packages/core/test/pluginContributions.test.ts` all fail against the previous code, and with the fix all 14 tests in that file pass. I fixed both findings, and each now has regression tests. The three new tests in `packages/core/test/pluginContributions.test.ts` all fail against the previous code, and with the fix all 14 tests in that file pass. **F7: a configured OAuth client can now connect.** Before, a plugin connection that lists `metadata_document`, `dynamic`, `preregistered` (the default order) would pick an automatic method when the provider offered one. That happened even with a client configured, and the resulting connection could never count as the server's. Now `chooseRegistration` (`packages/core/src/extensions/extensionOAuth.ts`) always uses pre-registration when a client ID is configured. If the plugin's allowed methods don't include pre-registration, it returns nothing rather than a method that can't work. This matches the existing ownership check, `connectionBelongsTo`. - **Callers checked:** the plugin sign-in, the extension library sign-in and the library probe all go through this one function, so one fix covers them. - **New tests:** the full flow uses the default order against a provider offering both automatic methods. It checks that sign-in stores `preregistered` with the configured client, registers nothing dynamically, reads back as connected, includes the server in runs, and that a library sign-in also uses the configured client. A unit test covers the selection rules. - **Docs:** `plugins.md` now says a configured client always takes precedence. **F8: repository limits up to 256 can be saved again.** The library's per-item repository limit is now the plugin limit of 256 (`PLUGIN_REPOSITORY_LIMIT`) instead of 64, so a plugin's limit copies onto its managed items without being cut short. - **Error messages:** limits over 256 are still refused by the plugin's own check, with "up to 256 owner/repo names". If the library rejects a plugin's items for an item-level reason, the error now names the field that failed rather than always claiming the library is full (`pluginContributions.ts`, `libraryProblem`). - **New test:** 65 repositories copy onto all three managed items, the library can still be saved and edited, and the edited limit applies to runs. 256 works, and 257 is refused with the library left unchanged. - **Knock-on updates:** the OpenAPI spec (regenerated, `maxItems` 64 → 256), `agent-extensions.md`, and the legacy-profile migration test. That test exceeded the old limit with 80 repositories, so it now uses seven profiles of 40 (280) and expects "at most 256". **Verification:** these suites also pass: - core: extension library migration, extension OAuth, plugin store, extension library usage - API: plugin routes, extension OAuth routes, extension profile routes - the Settings extensions UI tests Typecheck passes for shared, core and api. Lint with zero warnings passes on the changed core files; eslint skips the shared file, as it isn't covered by a lint config. `gen:openapi:check` passes. No preview images this time, since neither fix changes anything on screen. PR: #3565 Comment by: @propr-ultrafix (ID: 0) Model: Claude Opus 5.5
|
✅ AI Code Review Complete requested by @propr-ultrafix Posted 1 review: |
🔍 AI Code Review — codex:gpt-6-astraOverall EvaluationThe PR integrates plugin contributions with the existing extension library and OAuth infrastructure, with substantial lifecycle coverage. It needs a localized correction before merge. ✅ Transactional synchronization — Plugin mutations and managed library revisions share a transaction, including refusal of removals referenced by automations. ✅ Managed-item protection — Library saves reject definition changes, forged managed items and credential replacement while allowing the documented item settings. ✅ Runtime coverage — Added tests exercise package installation, missing credentials, disabled contributions, OAuth registration restrictions and skill upgrades. The supplied current-head status has no failed checks, with four checks pending. This review used static analysis only; no commands were run. Merge blockersEvery finding below was introduced by this PR and must be resolved before merging. F9: 🔴 OAuth secret rotation preserves the old connection
SuggestionsThese are optional follow-ups and are not sent to S4: 🟢 Refresh the introductory documentationThe opening “Work in progress” note in S5: 🟢 Fetch templates in the automation formThe acknowledged static template list in the web UI prevents users from selecting plugin templates through the normal creation form. A follow-up that fetches the catalog would complete that experience. The API and MCP catalog integration can stand independently within this PR’s stated scope. ScoreThe implementation has strong integration and lifecycle tests, but OAuth client replacement leaves stale credential state in place. A focused invalidation fix and regression test should resolve the verified blocker; the remaining checks are pending. Score: 6/10 🤖 Review Details
Copy and edit to choose records from this review: 🤖 Review by ProPR |
|
✅ Applied the requested follow-up changes in commit 78d2773
Summary of ChangesI fixed F9. When an administrator replaces a plugin's OAuth client secret but keeps the same client ID, the old OAuth connection and any sign-ins still in progress are now discarded. What changed
Regression test
The test fails against the previous Separate issue, not fixed: the extension library has the same gap for servers an administrator added directly. Replacing only the client secret of a pre-registered OAuth server through The change has no visible effect in the UI, so I didn't make a preview. 🤖 Implementation Details
💡 ProPR Slash Commands
🤖 Generated by ProPR |
… client secret but keeps the same client ID, the old OAuth connection and any sign-ins still in progress are now discarded. I fixed F9. When an administrator replaces a plugin's OAuth client secret but keeps the same client ID, the old OAuth connection and any sign-ins still in progress are now discarded. **What changed** - **`setOAuthClient`** (`packages/core/src/plugins/pluginStore.ts`) now compares the new client with the stored one, ID and secret both, inside the configuration transaction. If they differ, it discards the OAuth connections and pending sign-ins of every managed server that uses that plugin connection. Setting the exact same client again changes nothing. A stored client that can't be decrypted counts as changed. A client stored on a connection that no longer permits pre-registration is never used by the servers, so clearing it discards nothing. - **New helper `discardOAuthConnectionsOf`** (`packages/core/src/extensions/extensionOAuthState.ts`) does the deleting and records a `discarded` audit entry for each removed connection. It deletes pending sign-ins first, then connections: - A sign-in that is still exchanging its code under the old secret finds its pending record gone and is refused. - A sign-in that already finished has its new connection deleted by the second step. A sign-in that starts while the change is being saved and finishes after it uses the new secret, so it needs no handling. - **Docs:** `docs/docs/features/plugins.md` now says that replacing only the secret also discards the connection and any sign-in in progress. **Regression test** I added a test to `packages/core/test/pluginContributions.test.ts` that: 1. configures a client, signs in, and leaves a second sign-in pending. 2. sets the identical client and checks that nothing changes. 3. rotates only the secret, keeping the same client ID, and checks that the connection and pending sign-in are gone, reads report `not_connected`, the audit entry is written and runs no longer include the server. 4. checks that the old pending sign-in can no longer complete. 5. restores the original client and checks that signing in works again. The test fails against the previous `pluginStore.ts`. With the fix, all 15 tests in that file pass. The plugin store, extension OAuth, plugin route and extension OAuth route suites also pass (30 tests). The core typecheck and zero-warning lint on the changed source files pass. **Separate issue, not fixed:** the extension library has the same gap for servers an administrator added directly. Replacing only the client secret of a pre-registered OAuth server through `replaceSecret` or a library save keeps its existing connection. This is already the case on `main` and isn't part of the plugin code this PR changes, so I left it alone. The change has no visible effect in the UI, so I didn't make a preview. PR: #3565 Comment by: @propr-ultrafix (ID: 0) Model: Claude Opus 5.5
|
✅ AI Code Review Complete requested by @propr-ultrafix Posted 1 review: |
🔍 AI Code Review — codex:gpt-6-astraOverall EvaluationThe PR integrates plugin contributions with the existing extension library and OAuth flows, with substantial coverage of lifecycle and credential handling. No merge-blocking defect was verified in the supplied code. Merge readiness is conditional on the remaining checks completing successfully. ✅ Transactional synchronization — Plugin mutations synchronize managed items within the same database transaction, including refusal of removals referenced by automations. ✅ Managed-item protection — Library saves reject definition changes, forged managed items, removals and credential replacements while preserving editable limits. ✅ Lifecycle coverage — Added tests cover activation, disabling, upgrades, missing secrets, OAuth registration restrictions and client-secret rotation. This review used static tracing of the supplied diff and context; no commands or tests were run. Current checks report 30 passed, four pending and no failures. Merge blockersNo merge blockers. SuggestionsThese are optional follow-ups and are not sent to S6: 🟢 Update the introductory status noteThe “Work in progress” note in S7: 🟢 Expose templates in the UIAs acknowledged in the PR description, the new-automation form still uses the built-in template list. Fetching the catalog would make enabled plugins’ templates discoverable through the normal creation flow. This is an optional follow-up because the implemented API and MCP catalog surfaces satisfy the stated scope. ScoreThe implementation has strong lifecycle coverage and reuses existing execution boundaries. Static review found no verified blocker; remaining CI checks are pending. Score: 8/10 🤖 Review Details
Copy and edit to choose records from this review: 🤖 Review by ProPR |
|
ℹ️ GitHub auto-merge is turned off for this repository, so ProPR merges this PR itself once it is ready (checks passed or no CI configured, and the review goal met). To let GitHub merge it the moment required checks pass, enable Settings → General → Pull Requests → Allow auto-merge. |
AI Implementation Summary
Closes #3544
Branch:
3544/claude-opus-5-5-plugins-apply-declarative-20261114-0605-5taCommits: ✅ Changes committed (7d4d979)
AI Processing Completed
Execution Details:
Summary:
I've implemented #3544. An enabled plugin now adds its MCP servers and skill to the extension library as managed items, and its template to the template catalog. Its OAuth connection signs in through the extension OAuth module. Runs pick these items up through the normal library resolution.
Tests: I ran the new Core test (5 cases), the updated plugin store and plugin API route tests, and the extension, OAuth, automation, MCP, OpenAPI and settings-UI suites that touch this code; all pass.
gen:openapi:check,plugins:check, the typechecks and zero-warning lint for core and api also pass. I didn't run the full repository suite. Most suites needPROPR_DEMO_MODE=truelocally.extensionServerMount,mcpObservableSurfaceandmcpOperatorSurfacefail under that setting and pass with a placeholder GitHub relay configured.How it works
managedBymarker (plugin id, manifest name,active). An item applies to runs only while its plugin is enabled and nothing awaits an acknowledgement. They default to automatic apply on, limited to the plugin's repository limit.packages/core/src/plugins/pluginContributions.ts). Credentials come from the plugin's connections; nothing is written when nothing changed.<plugin id>-<name>prefix.secret_not_configuredand the run continues. Without a current acknowledgement it is never installed or launched.POST /api/instance/plugins/v1/<id>/connections/<name>/oauth/{start,complete,disconnect}. The extension callback also completes the sign-in. A plugin read now reportsconnected,not_connectedorneeds_sign_in.GET /api/automation-definitions/templatesand thelist_automation_templatesMCP tool include enabled plugins' templates, each with apluginfield naming it.contributions, which links each server and skill to its library item. The OpenAPI spec and client types are regenerated.plugins.mdhas a new "What an enabled plugin adds" section, andagent-extensions.mdanddocs/mcp.mdare updated.Choices the issue left open
<plugin id>-prefix.Decision for you: the new-automation form in the web UI still uses the template list built into the app, so plugin templates show up only through the API and MCP. Making them appear in the form means having the UI fetch the catalog; I left that out to keep this change focused.
Two preview images of the Settings extension list with managed items are attached; they use mocked API data.
Detailed Logs:
39309e10-eba5-40f4-8144-d81cc2c5544dLog files stored at:
/usr/src/app/logs/executions/issue-3544-2026-11-14T06-37-04-087Z-conversation.json/usr/src/app/logs/executions/issue-3544-2026-11-14T06-37-04-087Z-output.txtLatest Conversation Messages
This PR was created automatically by ProPR after processing issue #3544.
💡 Need changes?
Comment on this PR to request refinements — the AI agent monitors comments and will update the implementation based on your feedback. Keep iterating until you're satisfied!
Visual preview
Managed MCP servers in the extension library
Settings → Skills & MCP servers with the example plugin enabled: its remote OAuth server and local package server carry a 'Plugin: example-pack' badge and have no Remove button; the administrator's own server is unchanged. Mocked API data.
Connect sign-in required. Original retained until 2027-02-12T06:37:08.481Z.
View the full-resolution original in ProPR Connect
Managed skill, inactive
A plugin skill whose plugin is disabled: Plugin badge, Inactive badge and the 'Skill from a plugin' source label. Mocked API data.
Connect sign-in required. Original retained until 2027-02-12T06:37:09.692Z.
View the full-resolution original in ProPR Connect