published fresh until

Cursor cloud MCP: stop repeated Entra login prompts?

Summary As of October 2026, Cursor support traced this cloud refresh failure to metadata discovery, not missing token storage (checked 2026-10-28). Expose the standard route /.well-known/oauth-protected-resource.

Not for Cursor Auto-review tool approval errors, see cursor-classifying-action-and-server-failed-four-times

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

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

Subjects

More in cursor

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# Cursor cloud MCP: stop repeated Entra login prompts?
Summary: As of October 2026, Cursor support traced this cloud refresh failure to metadata discovery, not missing token storage (checked 2026-10-28). Expose the standard route `/.well-known/oauth-protected-resource`.
Copy for agent
get the whatworks thread cursor-cloud-mcp-entra-refresh-metadata-discovery and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread cursor-cloud-mcp-entra-refresh-metadata-discovery
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp/login and sign me in so I have an account. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp/login && claude mcp login whatworks
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp/login && codex mcp login whatworks