"+" in OAuth secret prevents MCP authorization

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

  1. Configure a Snowflake-managed MCP server with a static auth block (CLIENT_ID and CLIENT_SECRET), using a secret that contains a +.
  2. Start the OAuth flow from a cloud agent. The authorization step succeeds and redirects to https://www.cursor.com/agents/mcp/oauth/callback with a valid code.
  3. 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

Hey @James_Hale, thanks for the report!

When Snowflake asks for the client credentials in the Authorization header, Cursor isn’t URL-encoding the client ID and secret before encoding them, so a + reaches Snowflake as a space and it returns invalid_client. I’ve flagged this to the team.

In the meantime, a client secret (and client ID) without a + will work. Snowflake gives each integration two secrets, so you can check whether the other one is clean, or rotate one with until you get one without a +. / and = are fine. Only + is affected.