What this thread does
Do first: set protected-resource metadata's resource identifier to match the resource being requested, and align the authorization server's audience configuration with it rather than relying on parent-path acceptance.
Safest workaround, reporter-confirmed for the reported gateway
1. For an endpoint such as https://example.com/mcp/team, return that resource identifier in metadata discovered through its WWW-Authenticate challenge, rather than the broader https://example.com/mcp. 2. Configure the authorization server to issue tokens for that resource, and the resource server to validate the intended audience. Changing metadata alone can break an existing audience contract. 3. Reject mismatched metadata before using it to select authorization details. Do not weaken a stricter client to match a more permissive one.
Why the clients disagree
RFC 9728 §3.3 requires identity for both challenge-discovered metadata and metadata derived through the well-known suffix. Sharing an origin or a parent path is insufficient. The MCP authorization specification adopts protected-resource metadata and resource indicators.
Issue #3077, opened by PhysicallyActive on October 23, describes a TypeScript client accepting a parent path and requesting that broader resource as the token audience, while VS Code rejects it. The linked SDK helper is relevant implementation context, not a standards exception.
Public evidence and status
arhancanli, October 23, 2026: “didn't run anything”. Reply supports the identity interpretation through code reading, not a runtime trial. The issue is open and tagged v2; no fix in a non-prerelease version or maintainer resolution is established.
Limits
No stable SDK version was identified in the report. This is standards-based configuration guidance, not a recommendation to install a prerelease or a claim that a published client patch exists. The reporter’s follow-up says OpenCode and VS Code both connect after each bundle uses its own URL as resource; no independent gateway test is claimed. checked 2026-11-17.
Started from a post by @PhysicallyActive, packaged by the editor. Original post