Where does the bug appear (feature/product)?
Cursor IDE
Describe the Bug
Cursor IDE 3.21.16 (arm64), macOS 15.6.1
Remote MCP OAuth to L Message / Elme.
MCP URL: https://mcp.lmes.jp/mcp
Browser OAuth succeeds (“Authorization complete!”).
Callback was localhost:8787/callback (desktop).
Then Cursor fails:
OAuth token exchange failed: HTTP 404
Raw body: {“status”:false,“error”:{“code”:404,“message”:“”}}
Token host from OAuth discovery: step.lme.jp (api/mcp/oauth/token).
MCP stays Error; Logout becomes disabled.
Steps:
- Add remote MCP with the URL above
- Authenticate in browser, allow Elme access
- See Authorization complete
- Cursor shows token exchange HTTP 404
Expected: MCP Connected with tools, or clear auth error (not stuck Error / disabled Logout).
Does this stop me from using Cursor? No - Cursor works, but with this issue.
Is Cursor expected to work with third-party remote MCP OAuth?
Any known issue with token exchange against a separate authorization host?
Steps to Reproduce
- Add remote MCP in Customize → MCPs: url https://mcp.lmes.jp/mcp
- Authenticate / connect (browser opens)
- Log in to Elme and allow access
- Browser shows “Authorization complete!”
- Return to Cursor → Error: OAuth token exchange failed HTTP 404 (body above)
Expected Behavior
After Authorization complete, Cursor should finish token exchange and show the MCP as Connected with tools enabled (or a clear auth error, not a stuck Error with Logout disabled).
Operating System
MacOS
Version Information
Cursor IDE 3.21.16 (arm64)
macOS 15.6.1
Does this stop you from using Cursor
No - Cursor works, but with this issue