MCP OAuth: 'needs authentication' link never launches any visible auth flow (Atlassian/Jira, macOS, CLI 1.0.83)
Chưa có ai nhận issue này.
- Ngôn ngữ chính
- Shell
- Star
- 11.2k
- Fork
- 1.9k
- Merge trung bình
- 14 giờ 16 phút
- Pull request đã merge (30 ngày)
- 6
Mô tả
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.
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Hướng nghiên cứu
Tái hiện luồng trong cửa sổ agents của ứng dụng Copilot với https://mcp.atlassian.com/v1/mcp được bật, sau đó so sánh với trạng thái CLI độc lập được mô tả bởi ~/.copilot/mcp-config.json, copilot mcp list và ~/.copilot/mcp-oauth-config/. Truy vết quá trình bàn giao liên kết xác thực và điểm bắt đầu khởi chạy trình duyệt; hoàn tất khi liên kết mở trình duyệt hệ thống hoặc hiển thị một URL thô có thể sao chép, và các công cụ Atlassian khả dụng sau callback.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Lĩnh vực
- api, authentication, cli
- Loại issue
- Lỗi
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức độ hoạt động
- Sôi nổi
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 45/100