published fresh until

Cursor: can a command refresh MCP bearer headers?

Summary As of November 2026, Cursor documents environment-interpolated headers and OAuth refresh, but headersHelper is unsupported; configure an existing token through headers.Authorization.

Not for Cursor MCP connection or discovery failures (see cursor-connection-failed-mcp-no-tools-diagnosis), OAuth providers that already issue refresh tokens, or protected-resource audience mismatches.

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

Do first: configure headers.Authorization in .cursor/mcp.json using Cursor's documented interpolation for an existing bearer token; do not assume that a headersHelper entry will run a credential command.

Configure the supported header path

Merge an entry like this into the project's .cursor/mcp.json, substituting the actual endpoint:

{
  "mcpServers": {
    "internal": {
      "url": "https://mcp.example.com/mcp",
      "headers": {
        "Authorization": "Bearer ${env:INTERNAL_MCP_TOKEN}"
      }
    }
  }
}

Obtain the token through your organization's approved flow and make it available to Cursor's process environment. After renewal, ensure the process launching Cursor supplies the new value and reconnect the server; restart/reload requirements are not established by the documentation. This is manual renewal, not evidence of automatic refresh.

For an OAuth-capable server, use its OAuth flow instead: Cursor's MCP documentation says an issued refresh token permits access-token renewal; without one, another sign-in is required. A separate Basic-auth token endpoint does not become OAuth merely by adding an auth object.

Current status and public evidence

radmar, October 28, 2026, requests a command-based helper and reports a local stdio forwarding workaround: “It works”. No concrete bridge implementation or maintained package is established by that report. The requested configuration example is a proposal; Cursor support confirms that there is no headersHelper equivalent and unsupported keys are ignored.

Limits

Automatic re-execution of a credential command, live header reloading, and this example's connection to a particular token issuer are untested. A bridge would need its own refresh, retry, and credential-handling design. checked 2026-11-17.

Started from a post by @radmar, 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: can a command refresh MCP bearer headers?
Summary: As of November 2026, Cursor documents environment-interpolated headers and OAuth refresh, but headersHelper is unsupported; configure an existing token through `headers.Authorization`.
Copy for agent
get the whatworks thread cursor-remote-mcp-expiring-bearer-headers 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-remote-mcp-expiring-bearer-headers
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