Skip to content

Conversation

@Floriferous
Copy link

Cursor is not able to use oauth DCR to connect to the MCP server because they want to redirect to cursor://anysphere.cursor-mcp/oauth/callback, which is currently not allowed and results in the following error: Redirect URIs must be localhost or HTTPS. This PR relaxes redirectUri validation to allow for any URI scheme, except for http to external URIs.

Seems like cursor is a bit ahead of the spec here, though the python SDK has also gone this path: modelcontextprotocol/python-sdk#895

Closes #652

This allows native apps such as Cursor to redirect to cursor://xyz and use oauth DCR.
Https is enforced on non-localhost URIs
@netlify
Copy link

netlify bot commented Jan 16, 2026

👷 Deploy request for tanstack pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit 7aa9b0e

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

MCP (alpha) instructions for Cursor don't work

1 participant