Support a single unified mcp.json for both VS Code and Copilot CLI for maintainability purpose
还没有人认领这个 Issue。
- 主要语言
- Shell
- 星标
- 11.2k
- 派生
- 1.9k
- 平均合并
- 14 小时 16 分钟
- 30 天内合并 PR
- 6
描述
Description
Currently, VS Code and GitHub Copilot CLI use two different MCP configuration schemas:
- VS Code (
.vscode/mcp.jsonor user-levelmcp.json): uses a top-levelserverskey, andtypeis optional. - Copilot CLI (
~/.copilot/mcp-config.json,.mcp.json,.github/mcp.json): uses a top-levelmcpServerskey, andtypeis required for each server entry.
This forces users who work with both VS Code and Copilot CLI to maintain two near-duplicate JSON files and manually keep them in sync whenever a server is added, removed, or updated — which is error-prone and adds unnecessary maintenance overhead.
Feature Request
Please support a single, unified mcp.json file/schema that can be used by both VS Code and Copilot CLI without conversion. For example:
- Accept the
serverskey as an alias formcpServers(or vice versa), and - Make the
typefield optional/inferable (e.g. default tostdio/localwhencommandis present, orhttpwhenurlis present) so existing VS Code configs work as-is.
This would let a single mcp.json (whether at the user/global level or per-repository) be shared across both tools, eliminating duplicate configuration and reducing drift between environments.
Related issues
- #3835 (Incompatible mcp.json schema with VSCode)
- #146 (Respect VS Code User Settings for Copilot CLI Configuration)
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
比较 .vscode/mcp.json、用户级 mcp.json、~/.copilot/mcp-config.json、.mcp.json 和 .github/mcp.json 中的 schema 和位置。首先跟踪每个配置的发现和验证方式;完成的标准是,同一个 mcp.json 无需手动转换即可在 VS Code 和 Copilot CLI 中都正常工作,包括所请求的键别名和类型处理。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- vscode
- 领域
- cli, tooling
- Issue 类型
- 功能
- 难度
- 5/5
- 预计耗时
- 一周以上
- 活跃度
- 冷清
- 描述清晰度
- 基本清楚
- 新手友好度
- 38/100