Hacktoberfest 2026:維護者為十月標記出來的 issue,仍然開放、適合新手。 瀏覽 Hacktoberfest issue

Atlassian MCP OAuth fails: callback URL mismatch (random port vs registered 33418)

未關閉
#4,795 3 則留言 4 個 reaction 已指派 0 人 在 GitHub 檢視

維護者通常 1 天內回覆

還沒有人認領這個 Issue。

評估

難度
3/5
預估耗時
1-2 天
新手友好度
64/100
Issue 類型
缺陷
描述清晰度
基本清楚
活躍度
活躍
技術堆疊
github, shell

研究方向

首先,在 WSL Ubuntu 中使用 Atlassian MCP server 重現 OAuth 失敗,並將觀察到的隨機回呼連接埠與 client-metadata.json 進行比較。接著檢查 Copilot CLI 在哪裡選擇 OAuth 重新導向連接埠。當使用已註冊的 33418 回呼或明確受支援的可設定替代方案成功完成驗證時,即視為完成。

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

描述

triage

Version: Copilot CLI 1.0.84-3 (tested on 1.0.83 and 1.0.84-3)
Environment: WSL Ubuntu 24.04
MCP Server: Atlassian (https://mcp.atlassian.com/v1/mcp/authv2)

Issue:
When connecting to the Atlassian MCP server via Copilot CLI, OAuth always fails with:
"The app's callback URL is invalid. Contact the app developer to fix the redirect URL in the app's settings."

Root Cause:
Copilot CLI generates a random localhost port for OAuth redirect on each auth attempt, but the GitHub Copilot CLI client metadata at https://github.com/copilot/cli/client-metadata.json only registers:

  • http://127.0.0.1:33418/ (only valid callback)

Observed redirect attempts: 55096, 64611, 50069, etc.
Atlassian OAuth validation rejects these mismatched ports.

Workaround Needed:

  • Either hardcode Copilot CLI to always use port 33418
  • Or expose a configurable --redirect-port flag
  • Or update client metadata to accept random ports within a range

Error ID: c66b2f8a-87f3-404d-9e60-41b4d023c67c

主要語言
Shell
星號
11.2k
分支
1.9k
平均合併
14 小時 16 分鐘
30 天內合併 PR
6

環境準備

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

github/copilot-cli 的其他 Issue

查看 github/copilot-cli 的全部 Issue

相似的 Issue

更多 Shell/Bash Issue

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

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