Sunsama MCP authentication fails in Claude Code CLI - redirect_uri not allowed
Resolved 💬 3 comments Opened Mar 21, 2026 by holger539 Closed Mar 25, 2026
Description
Sunsama MCP authentication fails in Claude Code CLI with the following error in the browser:
{"error":"invalid_request","error_description":"redirect_uri not allowed for this client"}
Steps to reproduce
- Open Claude Code CLI
- Run
/mcpand select Sunsama - Attempt to authenticate
- Browser opens and shows the
redirect_uri not allowed for this clienterror
Expected behavior
Authentication should complete successfully, as it does in other Claude products.
Working environments
- claude.ai Chat: ✅ works
- claude.ai Cowork: ✅ works
- Claude Mac App: ✅ works
- Claude Code CLI: ❌ fails
Likely cause
Sunsama has whitelisted the redirect URIs for claude.ai and the Mac App, but not the redirect URI used by Claude Code CLI (likely a localhost-based callback).
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗