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

  1. Open Claude Code CLI
  2. Run /mcp and select Sunsama
  3. Attempt to authenticate
  4. Browser opens and shows the redirect_uri not allowed for this client error

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).

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗