github / github/copilot-cli

Incompatible mcp.json schema with VSCode

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

描述

### Describe the bug

"mcpServers" key in mcp.json incompatible with VSCode "servers" key. requires duplicating mcp server declarations in mcp.json.

also the different locations .github and .vscode require a symlink to point VSCode Copilot Chat and copilot CLI to the same file

### Affected version

_No response_

### Steps to reproduce the behavior

1. create .github/mcp.json with "servers" key
2. symlink from .vscode/mcp.json to .github/mcp.json
3. copilot-cli does not find MCP servers, but VS Code Copilot Chat does.
4. rename "servers" key to "mcpServers"
5. VS Code Copilot Chat does not find the MCP servers anymore, but copilot-cli does.

### Expected behavior

one shared key that is read by both VSCode Copilot Chat and copilot-cli to define mcp servers

### Additional context

current Workaround:

duplicate the "servers" object under "mcpServers" in the same file and symlink it or create two files with the same content except for "servers"/"mcpServers".

貢獻指南

開啟貢獻指南

評估

這個 Issue 還沒有評估資料。

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

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