Skip to content

Instance-admin agent extension profiles for MCP servers and skills #3077

Closed

Description

@integry

Outcome

Add instance-admin managed coding-agent extension profiles to ProPR itself, for hosted and self-hosted deployments. A profile lets an instance administrator configure reusable MCP servers and skill bundles for selected coding-agent/Agent-definition runs without editing host files. This is a native Core capability; Connect may later provide a remote management surface but must not become the source of instance authority.

Reuse the existing Agents v1 definitions, per-run toolPolicy, Claude/Codex MCP launch support, administrative secret redaction, and instance.manage_settings authorization. Do not create a second execution engine or weaken task/container isolation.

Contract and authority

  • Publish one shared, versioned extension-profile contract consumed by API, core, UI and launchers. Include immutable profile ID/revision, name, enabled state, optional agent/repository scope, MCP descriptors, skill bundle descriptors, timestamps and audit actor. Running tasks use an immutable revision snapshot; edits affect only later runs.
  • Creation, read, update, delete, validation and secret replacement require a current durable instance administrator with instance.manage_settings. Ordinary assigned users and repository access alone are denied. Preserve self-hosted/no-Connect positive behavior.
  • Keep definitions tenant/instance-local. Never accept a host path, Docker socket, arbitrary bind mount, generic shell command, or another tenant's profile ID. Cross-owner/profile/revision substitutions fail closed.

MCP servers

  • Support remote HTTPS MCP endpoints as typed descriptors: stable name, URL, enabled tools/capability policy and a write-only authentication secret reference. Reject URL credentials, fragments, redirects, non-HTTPS endpoints, loopback/link-local/private/metadata destinations and DNS rebinding unless an operator-installed local catalog entry explicitly authorizes a fixed internal endpoint.
  • Do not allow customer-supplied stdio commands. Local stdio MCP servers are operator-installed catalog entries identified by immutable ID/digest and constrained arguments.
  • Store secret values through the existing encrypted/private configuration boundary. Create/replace is write-only; list/read/export/log/audit returns only configured field names and presence markers—never value, prefix, length, hash or reversible encoding. Reuse the existing launcher env-var indirection so tokens never enter process arguments or task logs.
  • Revalidate profile revision, instance-admin authority and endpoint policy immediately before launch. Bound connection/tool counts, timeouts, response sizes and per-run egress; redact bearer/header values and synthetic sentinel secrets from every output path.

Skills

  • Support immutable skill bundles sourced from an uploaded bounded archive or an authorized GitHub repository at an exact commit plus relative directory. Materialize a content digest and preserve source provenance. Mutable branch/tag input may resolve during import but the saved revision must pin the exact commit/digest.
  • Validate archives against traversal, absolute paths, links/devices, duplicate/case-colliding paths, decompression bombs and excessive files/bytes. Require a valid SKILL.md; treat scripts/assets as untrusted task input.
  • Mount only the selected validated bundle revision read-only inside the task container's extension directory. Never install into the executor host/user home or share writable extension state across tasks/tenants. Task containers retain their existing sandbox, network/tool policy and repository isolation.
  • Skills cannot silently add MCP endpoints, credentials or capabilities. Their declared requirements are displayed and must be separately authorized by the profile/tool policy.

Product behavior

  • Add an Instance Settings → Agent extensions UI with profile list/editor, explicit security/capability summary, MCP connectivity validation that discloses no response content, skill provenance/digest, revision history and disable/delete controls.
  • Agent definitions and ordinary coding runs can select zero or one profile initially. Show unsupported runtime/tool states truthfully; Claude and Codex are the qualified enforcement targets unless another runtime receives equivalent hard enforcement.
  • Deleting/disabling a profile prevents new launches but does not mutate an already running snapshot. Secret rotation advances revision and immediately prevents launches from an older revision.
  • Include extension configuration and encrypted secret custody in the existing database/config export semantics, while normal API/export projections remain secret-free. Full instance reset removes profiles and secret material. Document backup/restore behavior explicitly.

Tests and boundaries

  • Deterministic tests for native instance-admin success, non-admin denial, self-hosted operation, revision races, disable/delete/secret-rotation during launch, cross-profile/tenant substitution, CSRF, URL/DNS rebinding/redirect/private-network rejection, secret redaction, archive attacks, immutable Git pinning, read-only per-run mounting, capability non-escalation and cleanup after task completion.
  • Integration tests must prove a synthetic skill is visible only in the selected run and a synthetic HTTPS MCP server is callable only with the selected profile, while unmistakable sentinel secrets never appear in args, logs, JSON, UI serialization, exports or retained workspaces.

Code/docs/tests only. Do not deploy, publish, change provider/Cloudflare/GitHub permissions, store a real credential, enable Hosted controls, or mutate live instances.

Activity

  1. propr-dev commented on Oct 13, 2026

    @propr-dev
    Contributor

    🤖 AI processing has started for this issue using codex agent with gpt-6.1-sol model.

    I'll analyze the problem and work on a solution. This may take a few minutes.

    Processing Details:

    • Agent: codex
    • Model: gpt-6.1-sol
    • Branch: 3077/gpt-6.1-sol-instance-admin-agent-exte-20261013-2021-9wh
    • Base Branch: main
    • Worktree: issue-3077-20261013-2021-gpt-6.1-sol-9wh

    🔍 Track Task Execution

  2. added a commit that references this issue on Oct 13, 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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions