Environment Details:
Issue Summary: I am trying to configure the Atlassian Rovo MCP server to integrate Jira and Confluence into my local AI assistant environment. However, the OAuth authentication flow consistently fails during the token exchange phase with an invalid_grant error specifically complaining about the code_verifier.
Steps to Reproduce:
mcp_config.json).Expected Behavior: The PKCE token exchange should complete successfully, returning the access tokens and establishing the connection to the Atlassian MCP server for tool execution.
Actual Behavior: The authentication fails immediately after the callback with the following error logged in the server output:
Authorization error: InvalidGrantError: Failed to verify code verifier at parseErrorResponseTroubleshooting Performed:
code_verifier in the local session state doesn't expire./sse endpoint, but the primary issue seems tied to how the dynamic client registration and PKCE validation are handled on Atlassian's end for this specific client implementation.Impact: This issue completely blocks the initialization of the Atlassian MCP server, preventing access to any Jira, Confluence, or Compass tools.
Could you please help if there are known compatibility issues with certain MCP clients dropping or mismatching the code_verifier during your specific DCR/JIT OAuth flow? Any guidance or workarounds would be greatly appreciated.
I've done a bit of searching as it sounds like a more general error message to me. I've found this question in the 0Auth forum: “Failed to verify code verifier” Error after Users Authenticates - Auth0 Community
They said that the generated code_challenge for PKCE was the culprit. Can you double check if their answer helps you as well?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.