Repository navigation
Description
Bug Description
When connecting to an MCP server that uses OAuth (RFC 9728), Warp appends a ?server_id=... query parameter to the redirect_uri in the authorization request. This breaks OAuth servers that use exact string matching on redirect URIs, which is the recommended behavior per RFC 6749 §3.1.2.2.
Steps to Reproduce
- Configure an MCP server with OAuth in Warp Settings → MCP:
{"serverUrl": "https://example.com/mcp"} - The MCP server's
/oauth/registerendpoint returns:{"redirect_uris": ["warp://mcp/oauth2callback"]} - Warp constructs the authorize URL with:
redirect_uri=warp%3A%2F%2Fmcp%2Foauth2callback%3Fserver_id%3D65aebdca-613a-4b60-97d3-92548673bd03 - The OAuth server rejects with
unknown_redirect_uribecausewarp://mcp/oauth2callback?server_id=....doesn't exactly match the registeredwarp://mcp/oauth2callback.
Expected Behavior
Warp should use the redirect_uri exactly as returned by the registration endpoint, without appending query parameters. Per RFC 6749 §3.1.2.2:
The authorization server MUST compare the two URIs using simple string comparison.
Dynamic client-specific data (like server_id) should be passed via the state parameter instead, as recommended by the RFC.
Actual Behavior
Warp appends ?server_id={uuid} to the redirect_uri, causing OAuth servers with strict redirect URI validation to reject the request.
Environment
- Warp version: latest stable (macOS)
- MCP server: custom server with Hydra (ORY) as OAuth provider
- OAuth flow: RFC 9728 (MCP OAuth) + RFC 7591 (Dynamic Client Registration)
Impact
This prevents Warp from connecting to any MCP server whose OAuth provider does exact redirect URI matching (which is the RFC-recommended default). Workaround: use mcp-remote via Claude Desktop instead, which correctly uses localhost callbacks without appending query params.
Activity
dannyneira commentedon Apr 16, 2026
Thanks for submitting this. It's on our radar to fix. You may be able to workaround this by connecting to the mcp with an npx proxy.
For example:
vkodithala commentedon Apr 20, 2026
Hey @therealinvoker, thanks so much for flagging this issue! Fixed this last week, we should now be using a clean
redirect_urischeme. Will be out in the next Warp update!