github / github/copilot-cli

`--add-github-mcp-tool=create_pull_request` leaves the configured endpoint readonly

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

描述

### Describe the bug

`--add-github-mcp-tool` argument still makes the `github-mcp-server` pointing to read only endpoint `/mcp/readonly`
Therefore tool is not added.

### Affected version

1.0.39

### Steps to reproduce the behavior

1. Run copilot with --add-github-mcp-tool=create_pull_request
1. Observe in `github-mcp-server` tool is not added
2. Observe URL pointing to read only endpoint `/mcp/readonly`

### Expected behavior

`--add-github-mcp-tool=create_pull_request` or any other write tool changes the endpoint to `/mcp`

### Additional context

_No response_

貢獻指南

開啟貢獻指南

研究方向

先追蹤 --add-github-mcp-tool 引數的處理方式,以及 github-mcp-server 端點的選擇。重現 create_pull_request 情況,然後確認寫入工具使用 /mcp,而唯讀設定則繼續使用 /mcp/readonly。

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

評估

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

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

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