Where does the bug appear (feature/product)?
Cloud Agent (GitHub, Slack, Web, Linear)
Describe the Bug
When a cloud agent connects to a remote MCP server using a pre-registered OAuth client, the token exchange fails with invalid_client if the client secret contains a + character. The problem appears to be that Cursor does not correctly URL-encode the client secret when it builds the token request, so the + is interpreted as a space.
This was specifically observed connecting Cursor to a Snowflake managed MCP server.
Steps to Reproduce
- Configure a Snowflake-managed MCP server with a static auth block (CLIENT_ID and CLIENT_SECRET), using a secret that contains a +.
- Start the OAuth flow from a cloud agent. The authorization step succeeds and redirects to
https://www.cursor.com/agents/mcp/oauth/callbackwith a valid code. - The token exchange then fails with invalid_client.
Expected Behavior
Secrets containing standard base64 characters (+, / and =) should work.
Operating System
Other
Version Information
Cursor Web in Safari Version 27.0 (21625.1.29.18.28)
Does this stop you from using Cursor
No - Cursor works, but with this issue