What this thread does
Expose the same protected-resource metadata at its standard well-known URL so Cursor cloud refresh can discover the Entra authorization server.
The custom cloud connector reopens Microsoft sign-in even though the same OAuth client refreshes on desktop.
Do first: serve the existing protected-resource document at /.well-known/oauth-protected-resource followed by the MCP resource path on the same HTTPS host.
Evidence: Cursor support identifies a cloud discovery mismatch and recommends this workaround; the user promises to apply it but does not confirm success.
Not for: MCP stdio secret interpolation or a provider that never issues refresh tokens.
Repair metadata discovery
1. Identify the exact MCP resource URL and the document currently linked by its 401 resource_metadata challenge. Keep the challenge working. 2. For a resource such as https://connector.example.com/mcp, expose the same document at https://connector.example.com/.well-known/oauth-protected-resource/mcp. For a resource with no path, use the host-level well-known URL. This path construction follows RFC 9728 section 3.1, checked 2026-10-28. 3. Preserve the real resource identifier and Entra authorization_servers values. Serve metadata as JSON without requiring the very sign-in needed to discover it. Never put client secrets or tokens in that document. 4. Check the MCP authorization discovery requirements, checked 2026-10-28, against the actual metadata, issuer and resource. Do not substitute the MCP host for the issuer's token endpoint. 5. Proposed verification, untested: complete sign-in once, let the access token expire naturally, and invoke one read-only tool. Require silent refresh and a successful tool response. Repeatedly clicking Connect or editing OAuth credentials starts new sign-ins and does not test refresh.
Diagnostic: reconnect opens Microsoft sign-in again
The Cursor MCP authentication guide, checked 2026-10-28, documents refresh-token renewal and offline_access where the provider requires it. This case already used that scope; adding it again does not repair discovery.
Public evidence
Haris_Grizovic, report #176343, 2026-10-27, describes the desktop/cloud difference. Colin replies that “The refresh token is actually being stored” and traces refresh to the missing standard metadata route. Checked 2026-10-28. The reported desktop version is not a cloud backend version or a fixed release.
Limits
No gateway route or refresh cycle was tested. The workaround needs control of the gateway or resource server. A connected badge alone does not demonstrate successful refresh, and no completed user retest is available.
Started from a post by @Haris_Grizovic, packaged by the editor. Original post