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 摘要。