TrueFoundryChangelog
Announcements
Breaking changeMCPAnnounced Jun 11, 2026

MCP DCR client_id & Redirect URL Validation

MCP OAuth now validates client_id and redirect URLs on every request. Clients caching credentials must re-register after the v0.148 upgrade.

Who's affected
Anyone signing in again to MCP servers they added to Cursor, Claude Desktop, Claude Code, or OpenCode before this change. Connected servers keep working.
What to do
Clear the saved MCP login in each affected app and reconnect. Teams that host their own AI Gateway must also move it to the V2 sign-in flow.
On-prem versions
Starts in 0.148.0Compare them with the control plane version you run.

What Is Changing

MCP OAuth Dynamic Client Registration (DCR) now enforces strict validation of the client_id and redirect URL on every authorization request. Previously, a client_id obtained during an earlier registration could be reused across sessions without re-validation.

Starting with v0.148, the control plane will reject any authorization request that presents:

  • A client_id that does not match an active, in-scope registration, or
  • A redirect URL that was not registered as part of the original DCR flow.

Why This Change

MCP OAuth now applies stricter security validation of the client_id and redirect URL on every authorization request, instead of trusting a previously issued client_id indefinitely. This closes credential-reuse gaps and keeps each authorization tightly scoped.

The trade-off is that credentials cached before the upgrade are no longer valid and must be re-registered through a fresh DCR handshake.

Who Is Affected

Some MCP clients may not work after upgrading — specifically those that cache the client_id from a previous session and reuse it for subsequent authorizations. This includes:

  • Cursor (IDE)
  • Claude Desktop
  • Claude Code (CLI)
  • Any other OAuth 2.0 client that persists DCR credentials locally

Typical error symptoms after upgrading. The primary symptom is a stale client_id failing validation at GET /:tenant/:server/authorize:

{ "statusCode": 400, "message": "Invalid client_id" }

A redirect URL that was not registered during the original DCR flow returns:

{ "statusCode": 400, "message": "redirect_uri '<uri>' is not registered for this client" }

What You Need to Do

1. Make sure the AI Gateway is using the V2 OAuth flow

The strict client_id and redirect validation is enforced by the control plane (v0.148+). The gateway plane is what selects whether MCP clients use the older V1 flow or the new V2 flow. The two are versioned and shipped separately.

This is the root of the broken connections: once the control plane is on v0.148 or later, the old V1 OAuth flow no longer works — so the AI Gateway must be switched to the V2 flow. V2 is the default in gateway v0.148.2+, and can be enabled on earlier gateways via an env var. What you need to do depends on your deployment model:

TrueFoundry hosts both the control plane and the AI Gateway.

No action needed — TrueFoundry keeps the control plane on v0.148+ and the AI Gateway on the V2 flow.

2. Reset cached credentials on each client

This step applies to every affected user across all deployment models, regardless of how the new flow was enabled.

After upgrading, every client must drop the client_id it cached before the upgrade and re-register. The exact steps differ by client — for some, a restart is not enough.

  1. Open the Command Palette (Cmd+Shift+P / Ctrl+Shift+P) and run MCP: Clear All MCP Tokens to remove the cached OAuth credentials.
  2. Quit Cursor completely and relaunch it (tokens are cached at runtime, so a restart is required for the clear to take effect).
  3. Re-initiate the MCP connection so the client performs a fresh DCR handshake.

If you continue to experience issues after following the steps for your client, reach out and we'll be happy to assist.

Questions about this change? Email [email protected].