Description: I am encountering an issue while trying to connect to the Atlassian MCP server using the mcp-remote
tool. The server is returning the following error:
Steps to Reproduce:
I configured the mcp-remote
tool with the following settings:
npx
I ran the following command to test the connection:
I also tested the endpoint directly using curl
:
Findings:
{"error":"invalid_token","error_description":"Invalid token format"}
.Debug Logs: I have attached the debug logs generated using the --debug
flag for your reference.
Request: Could you please help me understand why the token is being rejected and provide guidance on the correct token format or any additional requirements for accessing the endpoint?
Thank you for your assistance.
Hi @Kishan Gupta ,
Try removing the --header "Authorization: Bearer ${Token}" and run the command without providing the header. The mcp-remote tool automatically creates a .mcp-auth folder where it stores credentials after the OAuth flow is completed.
On the first run, mcp-remote will open a browser for authentication. Once you complete the authentication and close the browser, it stores all necessary data in that folder. After that, you don’t need to manually provide authorization — it will automatically refresh the access token using the refresh token.
Hmm @Kishan Gupta ,
This kind of error usually points to an issue with the token type, format, or maybe endpoint...
As this is a bit far from my domain, I'm going to move this to the appropriate app/forum group so maybe some other experts could chime in.
As this is a relatively new platform, have you maybe tried reaching out to Atlassian Support directly to see what their team has to say about it?
Cheers,
Tobi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.