claude-code icon indicating copy to clipboard operation
claude-code copied to clipboard

[BUG] Atlassian MCP Sign In does not work

Open prodigy opened this issue 8 months ago • 1 comments

Environment

  • Platform (select one):
    • [x] Anthropic API
  • Claude CLI version: 1.0.33 (Claude Code)
  • Operating System: Windows, WSL Ubuntu 24.04.2 LTS
  • Terminal: Bash in VS Code connected to WSL

Bug Description

Authentication with Atlassian fails when clicking the link to sign in with this message:

The redirect URI is not allowed, the URL is not part of Atlassian whitelisted domains for registered MCP Clients. Redirect URI

Steps to Reproduce

  1. claude mcp add --transport sse atlassian https://mcp.atlassian.com/v1/sse
  2. claude
  3. /mcp
  4. Select atlassian, hit enter
  5. Click link to open browser: https://mcp.atlassian.com/v1/authorize?response_type=code&client_id=1ecEWU0Qn6LC8mAO&code_challenge=REDACTED&code_challenge_method=S256&redirect_uri=http%3A%2F%2Flocalhost%3A60953%2Fcallback&state=REDACTED
  6. Blank website states:

    The redirect URI is not allowed, the URL is not part of Atlassian whitelisted domains for registered MCP Clients. Redirect URI

Expected Behavior

Authentication works

Actual Behavior

Authentication fails

prodigy avatar Jun 24 '25 09:06 prodigy

Okay I figured out the issue. The problem is, when clicking the link, it only opens a partial link without the redirect uri in the browser. When copy pasting the link it works just fine. Seems to be an issue with the windows console window / terminal I guess, as the link is printed over multiple lines.

prodigy avatar Jun 27 '25 10:06 prodigy

Where do you got the link from 🤔

For me it shows in Claude Code and logs only https://mcp.atlassian.com/v1/sse and the site does not redirect to an auth flow.

secustor avatar Jul 01 '25 23:07 secustor

You do claude mcp add --transport sse atlassian https://mcp.atlassian.com/v1/sse. Then after launching claude, type /mcp. Then hit enter on atlassian. Then there is a link to sign in. 😊

prodigy avatar Jul 04 '25 15:07 prodigy

Thanks!
I have been doing this, but it seems to have been an issue with Claude Code and HTTPS_PROXY variables. After upgrading CC showed me the URL as you describe, but the login works as expected.

secustor avatar Jul 10 '25 22:07 secustor

on 1.0.112 and I'm not seeing the browser window being opened

maxres-ch avatar Sep 12 '25 17:09 maxres-ch

on 1.0.112 and I'm not seeing the browser window being opened

Same for me on 1.0.115 :(

Edit: Actually just figured out it's because of WARP by Cloudflare

btruhand avatar Sep 16 '25 19:09 btruhand

On the latest version 1.0.128 (Claude Code), the issue remains.

When connecting to MCP servers that require authentication, Claude Code attempts to automatically open a browser for auth flow. The following page is shown:

Image

Browser should open automatically, OR If auto-open fails, the authentication URL should be displayed in the terminal for manual copy/paste

But browser opening fails in both WSL2 and PowerShell environments. And no fallback URL is provided when auto-open fails, preventing users from manually copying and pasting the URL into a browser.

LunaTravel avatar Sep 29 '25 06:09 LunaTravel

I suggest you to update your node version. By default, apt installs v18. Update it to the latest. It helped me.

epam-avramenko avatar Oct 21 '25 15:10 epam-avramenko