After the access token expires, the Atlassian MCP server fails to refresh it using the refresh_token. Instead, it continues to send API requests with the expired access_token, resulting in 401 Unauthorized responses from the upstream service.
Current Behavior
- The server successfully authenticates and receives a valid
access_token and refresh_token.
- Once the access token reaches its expiry (as per the
Expiry field in the token struct), subsequent API calls return 401 Unauthorized.
- No refresh request appears to be made using the
refresh_token.
Expected Behavior
When the access token expires, the MCP server should automatically use the refresh_token to obtain a new access_token and retry the failed request seamlessly.
Steps to Reproduce
- Start the Atlassian MCP server and authenticate successfully.
- Allow 1 hour to pass (or force token expiry).
- Observe API calls made by the MCP server to Atlassian APIs.
- After expiry, responses become
401 Unauthorized.
- No refresh request is observed in logs or network traces.
After the access token expires, the Atlassian MCP server fails to refresh it using the
refresh_token. Instead, it continues to send API requests with the expiredaccess_token, resulting in401 Unauthorizedresponses from the upstream service.Current Behavior
access_tokenandrefresh_token.Expiryfield in the token struct), subsequent API calls return401 Unauthorized.refresh_token.Expected Behavior
When the access token expires, the MCP server should automatically use the
refresh_tokento obtain a newaccess_tokenand retry the failed request seamlessly.Steps to Reproduce
401 Unauthorized.