Skip to content

Extensions: one runtime capability map for extension and ProPR MCP gating, with a visible note for unsupported agents #3841

Done

Description

@integry

Today EXTENSION_RUNTIMES and AGENT_TYPES_SUPPORTING_PROPR_MCP (packages/shared) are ['claude','codex'], and the same list is hard-coded in extensionProfileStore.ts (~325, ~345), taskSubmissionRoutes.ts (~71, ~364), agentRunTrigger.ts (~301, ~316), src/jobs/agentRuns/agentTaskOptions.ts (~70) and automationDefinitions.ts (~237). For other agents:

  • auto-applied items are skipped silently with reason runtime;
  • the New Task extensions panel disappears (TaskExtensionsOptions returns null when qualified is false);
  • explicit additions get a 400: "Extensions require Claude or Codex task execution".

Acceptance:

  • Capability map: one map in @propr/shared gives, per agent type, { extensions: boolean, proprMcp: boolean, skills: 'native'|'prompt' }, with an optional CLI-version predicate (OpenCode 1.x unsupported; 2.x supported). Every gate above reads it. The map keeps Claude and Codex as today; each other runtime is turned on only by its own issue in this epic.
  • Unsupported runtimes: the New Task form shows a short "Extensions aren't available for " note instead of hiding the panel. Auto-applied items skipped for runtime are recorded visibly in the task's extension resolution event.
  • Builder contract: move per-runtime MCP rendering out of agentToolPolicy.ts into one builder per agent type, with this shared contract:
    • mcpServers (gateway URL <gateway>/api/extensions/mcp/<name> plus bearer env PROPR_EXTENSION_MCP_<i>_TOKEN);
    • localMcpServers (node /opt/propr/extension-stdio-bridge.mjs <base64 cfg> plus PROPR_EXTENSION_STDIO_* env);
    • exclusiveMcp (no ambient servers or skills).
      Claude and Codex behaviour must not change.
  • Skills contract: unchanged. Bundles are staged read-only at /opt/propr/extensions/<id>/SKILL.md, with the prompt pointer; a runtime may also register them natively.
  • Agent definitions and automations: proprMcpAgentTypes derives from the same map.
  • Docs: an extension-library page with a runtime support table, and a CHANGELOG entry.
  • Tests: one parametrized test across agent types showing the map drives every gate; the UI note renders for an unsupported runtime; Claude and Codex extension tests are unchanged.

Implementation

Pure refactor plus UI note; no new runtime is enabled here. Keep the Claude and Codex launch paths (executeWithExtensions, extensionAgentLaunch) intact and reusable by the per-agent issues.

Notes

ProPR runs on SQLite only: do not add code or tests for other databases. Goal mode keeps refusing extensions (unchanged).

Activity

  1. propr-dev commented on Nov 27, 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: 3841/claude-opus-5-5-extensions-one-runtime-ca-20261127-1517-5c5
    • Base Branch: 3841-epic-extension-library-r77
    • Worktree: issue-3841-20261127-1517-claude-opus-5-5-5c5

    🔍 Track Task Execution

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions