Forums

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

"Invalid token format" error

Rohit Agarwal June 26, 2025

Hi,

I am trying to hit https://mcp.atlassian.com/v1/sse endpoint using the API token in Authorization Bearer header. 

I have separate API tokens for Jira & Confluence. 

I keep getting the following "Invalid token format" response error. What is the expected token format?

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

The request payload is as follows

{
  "jsonrpc": "2.0",
  "method": "tools/list",
  "params": {},
  "id": 1
}

I tried using the following headers

  • jira-token
  • jira-username
  • jira-url

The error response has changed to 

{
  "error": "invalid_token",
  "error_description": "Missing or invalid access token"
}

2 answers

0 votes
Michael Norgren
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!
July 21, 2025

Hi, @Rohit Agarwal - Were you able to figure this out? I am running into the same issues

Rohit Agarwal July 21, 2025

Hi @Michael Norgren ,

Unfortunately, there has been no progress made so far.

Rohit Agarwal July 9, 2025

Hi Sam, 

Thanks for your reply. 

The links you mentioned outline integration of remote mcp server with AI desktop tools or development IDEs. I did go through the links before raising this ticket. 

What I am trying to do is to connect to the remote mcp server either using Postman or a simple python code.

Like Toshiro likes this
Toshiro
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!
July 17, 2025

Hi, same issue on Python with Claude :

from anthropic import Anthropic

client = Anthropic(
api_key=ANTHROPIC_API
response = client.beta.messages.create(
model="claude-sonnet-4-20250514",
max_tokens=1000,
messages=[{
"role": "user",
"content": "Create a Jira user story called TEST test related to an epic called TEST EPIC",
},
],
mcp_servers= [
{
"type": "url",
"name": "Atlassian",
"authorization_token": ATLASSIAN_API_TOKEN,
},
],
betas= ["mcp-client-2025-04-04"],
);

print(response)







Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events