Skip to content

[FEATURE] Evaluate mcp.transport.allow on the effective MCP transport #3764

Closed

Description

Proposals are welcome before implementation. For substantive changes, wait
for a responsible human maintainer to approve the scope and identify a review
contact. An automated recommendation, label alone, or silence is not approval.
See Contributing.

Is your feature request related to a problem? Please describe.
Org policy mcp.transport.allow is evaluated against the transport written in the consumer's apm.yml only. When the transport comes from registry metadata (no declared transport), it is outside the check, so the policy and the written MCP config can disagree. Spellings are also compared raw (http vs streamable-http).

Describe the solution you'd like

  • The policy check evaluates the EFFECTIVE transport APM will write: canonical stdio / streamable-http / sse from the single MCP transport normalization owner (registry type, legacy transport_type, manifest transport).
  • Policy values are canonicalized once at parse (http == streamable-http), like the compilation-target projection.
  • The check runs before any MCP config write; a blocked transport writes nothing. apm audit --ci reports the same verdict as install.
  • Static guard: the transport policy check takes canonical values only. Docs: policy reference.

Describe alternatives you've considered
Keep checking only the declared transport (leaves registry remotes ungoverned).

Additional context
Design: 0.36.1 T3 harness brief, finding F28 and decision H1 (defer to 0.37), approved 2026-11-17. This can newly block installs that pass today; release note required.

Activity

  1. added
    area/mcp-config
    area/audit-policy
    type/enhancement
    on Nov 17, 2026
  2. danielmeppiel commented on Nov 17, 2026

    @danielmeppiel
    CollaboratorAuthor

    Decision: approve
    Area: project
    Scope: Evaluate org policy mcp.transport.allow on the effective canonical MCP transport (stdio, streamable-http, sse) produced by the single MCP transport normalization owner, including registry-sourced remotes, with policy values canonicalized once at parse, in install before any MCP write and in audit.
    Done when: A registry remote whose effective transport is not allowed is blocked before any write in install and reported by audit --ci; http and streamable-http compare equal on both sides; declared-transport behavior is unchanged for compliant manifests; a static guard keeps the check on canonical values; hermetic and lifecycle tests cover these; policy docs and release note updated.
    Out of scope: New policy keys; changing harness config shapes; transports other than stdio, streamable-http and sse.
    Review contact: Daniel Meppiel (@danielmeppiel)

  3. danielmeppiel commented on Nov 17, 2026

    @danielmeppiel
    CollaboratorAuthor

    Context: this scope is decision H1 from the 0.36.1 harness design (finding F28), deferred to 0.37 and approved by Daniel Meppiel (@danielmeppiel) on 2026-11-17. It builds on the 0.36.1 MCP transport normalization owner. PRs are held until v0.36.1 is tagged.

  4. added
    status/accepted
    on Nov 17, 2026
  5. added 8 commits that reference this issue on Nov 17, 2026
    5654564
    e3f3fd3
    cfbf905
    0fa0ca7
    30b63f5
    4162d6b
    5f080d1
    dcd3dda
  6. added a commit that references this issue on Nov 18, 2026
    79f3cae
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

    area/audit-policyarea/mcp-configstatus/acceptedtype/enhancement

    Type

    No type

    Projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions