We are integrating Atlassian MCP Remote server with an IDE client (VS Code) and accessing it via a reverse proxy (Apigee) for security and logging.
The MCP initialization succeeds, but during the OAuth flow, the callback endpoint fails with an “invalid session” error.
The same setup works correctly when connecting directly to https://mcp.atlassian.com, without the proxy.
Error Details:
URL: mcp.atlassian.com/v1/callback?state=eyJzZXNzaW9uX2lkIjoiNDRlNzRjM2QtZDE1ZS00NWY4LTgxODYtZGUyOGQ0OGM5MjNkIiwib3JpZ2luYWxfcmVkaXJlY3RfdXJpIjoiaHR0cDovLzEyNy4wLjAuMTozMzQxOC8ifQ%3D%3D&code=eyJraWQiOiJBVVRIX...
Response: Invalid session
Thanks @Tomislav Tobijas
I've posted my question there.
Also, I heard that the MCP server does not support registered OAuth2 apps from the developer console; please correct me if that's incorrect.
Discussion regarding this issue is ongoing here: https://community.atlassian.com/forums/Atlassian-Remote-MCP-Server/Invalid-session-error-on-OAuth-callback-when-accessing-Atlassian/td-p/3164038