Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Issue with Invalid Token Format for MCP Endpoint

Kishan Gupta
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 5, 2025

 

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:

{"error":"invalid_token","error_description":"Invalid token format"}

Steps to Reproduce:

  1. I configured the mcp-remote tool with the following settings:

  2. I ran the following command to test the connection:

    npx -y mcp-remote https://mcp.atlassian.com/v1/sse --header "Authorization: Bearer ${Token}"
  3. I also tested the endpoint directly using curl:

    curl -X GET https://mcp.atlassian.com/v1/sse -H "Authorization: Bearer ${Token}"

Findings:

  • The token is valid and includes both an access token and a refresh token. It is not expired and has a remaining lifespan of 3300 seconds.
  • The client information was successfully retrieved.
  • Despite this, the server returns the error {"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.

1 answer

0 votes
Tomislav Tobijas
Community Champion
August 8, 2025

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

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events