github / github/copilot-cli

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

未關閉
#4,086 1 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
area:authentication area:mcp triaged
主要語言
Shell
星號
11.2k
分支
1.9k
平均合併
14 小時 16 分鐘
30 天內合併 PR
6

描述

## 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)

貢獻指南

開啟貢獻指南

研究方向

先從 MCP Settings 流程和 plugin .mcp.json 設定開始,接著重現 issue 中描述的 Atlassian 端點行為。將其探索機制和驗證處理與 LeanIX 及 Lucid 進行比較;當 Sign in 開啟 OAuth 瀏覽器流程、儲存 token,且 Atlassian 工具在工作階段中載入時,即表示完成。

由索引模型根據 Issue 內容生成。

評估

領域
authentication, cli
Issue 類型
缺陷
難度
4/5
預估耗時
3-5 天
活躍度
冷清
描述清晰度
基本清楚
新手友好度
55/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。