Support a single unified mcp.json for both VS Code and Copilot CLI for maintainability purpose
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ả
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)
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
So sánh các schema và vị trí trong .vscode/mcp.json, mcp.json cấp người dùng, ~/.copilot/mcp-config.json, .mcp.json và .github/mcp.json. Bắt đầu bằng cách lần theo cách mỗi cấu hình được phát hiện và xác thực; hoàn thành có nghĩa là một mcp.json dùng chung hoạt động trong cả VS Code và Copilot CLI mà không cần chuyển đổi thủ công, bao gồm việc xử lý bí danh khóa và kiểu được yêu cầu.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- vscode
- Lĩnh vực
- cli, tooling
- Loại issue
- Tính năng
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức độ hoạt động
- Ít trao đổi
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 38/100