github / github/copilot-cli

Support a single unified mcp.json for both VS Code and Copilot CLI for maintainability purpose

Đang mở
#4,429 0 bình luận 3 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

triage
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.json or user-level mcp.json): uses a top-level servers key, and type is optional.
  • Copilot CLI (~/.copilot/mcp-config.json, .mcp.json, .github/mcp.json): uses a top-level mcpServers key, and type is 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 servers key as an alias for mcpServers (or vice versa), and
  • Make the type field optional/inferable (e.g. default to stdio/local when command is present, or http when url is 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

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. 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

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.