Repository navigation
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, legacytransport_type, manifesttransport). - 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 --cireports 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.
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
danielmeppiel commentedon Nov 17, 2026
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)
danielmeppiel commentedon Nov 17, 2026
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.
fix(policy): check mcp.transport.allow on the effective MCP transport
fix(policy): check mcp.transport.allow on the effective MCP transport
fix(policy): check mcp.transport.allow on the effective MCP transport
test(policy): pin the transport remedy and audit verdicts for #3764
fix(policy): check mcp.transport.allow on the effective MCP transport
test(policy): pin the transport remedy and audit verdicts for #3764
fix(policy): check mcp.transport.allow on the effective MCP transport
test(policy): pin the transport remedy and audit verdicts for #3764
fix(policy): check mcp.transport.allow on the effective MCP transport (…