MCP OAuth: 'needs authentication' link never launches any visible auth flow (Atlassian/Jira, macOS, CLI 1.0.83)
还没有人认领这个 Issue。
- 主要语言
- Shell
- 星标
- 11.2k
- 派生
- 1.9k
- 平均合并
- 14 小时 16 分钟
- 30 天内合并 PR
- 6
描述
Describe the bug
The Atlassian (Rovo) MCP server repeatedly shows a "Jira MCP needs authentication" prompt, but clicking the provided authentication link — or attempting to authenticate manually — never launches any visible auth flow. No browser window/tab opens, no OAuth consent page appears, and nothing surfaces in the UI. The prompt simply reappears, so the server can never be authenticated and its tools are never usable.
This is the browser-launch / auth-hand-off side of MCP OAuth, not the token-bridging bug in #4096 (which is fixed on my version). It looks related to #4400 (browser login URL wrapping/fallback) and #3130 (unable to open browser for auth).
Affected version
GitHub Copilot CLI 1.0.83 (bundled engine used by the Copilot desktop app "agents" window).
Environment
- macOS (Apple Silicon)
- The failing flow is in the app / agents window, which manages its own MCP configuration.
- The standalone terminal CLI has no MCP servers configured (
~/.copilot/mcp-config.json={"mcpServers":{}},copilot mcp list= "No MCP servers configured", and~/.copilot/mcp-oauth-config/does not exist). So the Atlassian server exists only on the app side, and it is the app-side "authenticate" link that dead-ends.
Steps to reproduce the behavior
- In the Copilot app (agents window), add/enable the Atlassian Remote MCP server (
https://mcp.atlassian.com/v1/mcp). - When prompted with "Jira MCP needs authentication", click the provided authentication link (or choose to authenticate manually).
- Observe: no browser opens, no OAuth consent page appears, nothing visible happens.
- The "needs authentication" prompt returns; the server never becomes authenticated and no
atlassian-*tools are exposed.
Expected behavior
Clicking the authentication link should open the system default browser to the OAuth consent URL (or, if the browser cannot be launched, print/copy the raw URL so it can be opened manually) and complete the callback so the server authenticates.
Additional notes
- This consistently blocks my workflow — the Atlassian/Jira MCP tools are never available because auth can never be completed.
- A raw-URL fallback (print the login URL to stdout / provide a copyable link) would at minimum unblock manual authentication when auto-launch fails.
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
在启用 https://mcp.atlassian.com/v1/mcp 的情况下,复现 Copilot 应用 agents 窗口中的流程,然后将其与 ~/.copilot/mcp-config.json、copilot mcp list 和 ~/.copilot/mcp-oauth-config/ 所描述的独立 CLI 状态进行比较。跟踪身份验证链接的交接过程和浏览器启动入口;完成标准是链接能够打开系统浏览器或显示可复制的原始 URL,并且 Atlassian 工具在 callback 后变得可用。
由索引模型根据 Issue 内容生成。
评估
- 领域
- api, authentication, cli
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 活跃
- 描述清晰度
- 基本清楚
- 新手友好度
- 45/100