copilot-cli icon indicating copy to clipboard operation
copilot-cli copied to clipboard

Atlassian MCP server auto-connects without completing OAuth flow (Sign in button disappears)

Open Mov1ngTrg3t opened this issue 4 months ago • 3 comments

Description

The Atlassian MCP server (https://mcp.atlassian.com/v1/mcp) shows a green checkmark (connected) in MCP Settings without completing the OAuth browser flow. No atlassian-* tools are loaded in sessions.

Expected behavior

Clicking 'Sign in' or toggling the server on should open a browser for OAuth authorization (like LeanIX and Lucid do).

Actual behavior

  • The 'Sign in' button flashes briefly and disappears
  • Green checkmark appears immediately without browser redirect
  • No OAuth token is saved (no .tokens.json file in ~/.copilot/mcp-oauth-config/)
  • Sessions do not have access to any Atlassian tools

Steps to reproduce

  1. Add Atlassian MCP to a plugin .mcp.json:
    "atlassian": { "type": "http", "url": "https://mcp.atlassian.com/v1/mcp" }
    
  2. Open MCP Settings
  3. Toggle Atlassian on
  4. Observe: green checkmark appears without browser opening

Root cause hypothesis

Atlassian MCP endpoint responds to discovery/health-check requests with HTTP 200 without requiring authentication. The app interprets this as 'connected' and skips the OAuth flow. Other MCP servers (LeanIX, Lucid) correctly require auth on these requests.

Workaround

Using Atlassian REST API directly with personal API tokens.

Environment

  • Copilot CLI version: 1.0.69
  • OS: Windows 11
  • Plugin: custom plugin with Atlassian MCP config
  • Other MCP servers working correctly: LeanIX, Lucid, QMD (local)

Mov1ngTrg3t avatar Jul 10 '26 12:07 Mov1ngTrg3t

Triage summary

Draft PR 12749 targets bare MCP OAuth 401 responses without WWW-Authenticate, which plausibly matches this report. The complete response headers are unavailable, so the match is unconfirmed.

Please validate the draft with an Atlassian-shaped fixture and bounded retry behavior.

Route: needs-follow-up while work is in progress.

This triage summary was prepared with GitHub Copilot and reviewed before posting.

gokhanarkan avatar Jul 15 '26 10:07 gokhanarkan

@Mov1ngTrg3t since 1.0.69 we've changed how the CLI handles servers that accept an unauthenticated connection but require OAuth for tools, so they now report "needs authentication" instead of looking connected. Could you retry on the latest version (1.0.114+) and tell us whether Atlassian now prompts you to sign in? If it doesn't, please share the relevant ~/.copilot/logs lines.

hstaudacher avatar Nov 18 '26 16:11 hstaudacher

We're closing this because we couldn't make progress without the information requested above. If this still happens on the latest stable release (v1.0.117), please comment here with those answers and we'll reopen it.

hstaudacher avatar Nov 29 '26 10:11 hstaudacher