anomalyco / anomalyco/opencode

[BUG] Atlassian MCP OAuth fails after browser approval in 1.18.25

Open
#46,013 1 comment 0 reactions 1 assignee View on GitHub

@nexxeln is already working on this.

Since Aug 28, 2026.

Dominant language
TypeScript
Stars
209k
Forks
27.5k
PR merge metrics
PR metrics pending

Description

Description

On 1.18.25, Atlassian MCP OAuth fails after successful browser authorization. The browser reports success, but opencode mcp auth atlassian ends with:

Authentication failed
SSE error: Non-200 status code (202)

Downgrading to 1.18.24 and repeating the same flow succeeds. The behavior appears to be a regression in 1.18.25.

The authorization URL generated by each version is materially different:

  • 1.18.25 directs the browser to https://mcp.atlassian.com/v1/authorize.
  • 1.18.24 directs the browser to https://auth.atlassian.com/authorize and includes the requested OAuth scopes and resource indicator.

The 1.18.25 browser flow reports authorization success but the CLI then fails with the 202 SSE error. The 1.18.24 flow reports Authentication successful! in the CLI.

Plugins

None

OpenCode version

1.18.25

Steps to reproduce
  1. Configure Atlassian as a remote MCP server:

    {
      "mcp": {
        "atlassian": {
          "type": "remote",
          "url": "https://mcp.atlassian.com/v1/mcp/authv2",
          "enabled": true
        }
      }
    }
    
  2. Run opencode mcp auth atlassian.

  3. Select Yes when asked to re-authenticate.

  4. Complete Atlassian authorization in the browser. The browser displays "Authorization successful!"

  5. Return to the CLI.

Expected behavior

The CLI should report Authentication successful! and connect the Atlassian MCP server.

Actual behavior

The CLI reports Authentication failed with SSE error: Non-200 status code (202).

Additional confirmation

After downgrading with opencode upgrade 1.18.24, running the exact same configuration and authentication flow succeeds.

Screenshot and/or share link

No response

Operating System

Linux 6.6.87.2-microsoft-standard-WSL2

Terminal

Windows Terminal

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.