github / github/copilot-cli

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

オープン
#4,429 コメント 0 件 リアクション 3 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

triage
主要言語
Shell
スター
11.2k
フォーク
1.9k
平均マージ
14時間 16分
マージ済み PR(30日)
6

説明

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)

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

.vscode/mcp.json、ユーザーレベルの mcp.json、~/.copilot/mcp-config.json、.mcp.json、.github/mcp.json におけるスキーマと場所を比較します。まず各設定がどのように検出され、検証されるかを追跡します。完了条件は、要求されたキーエイリアスと型の処理を含め、手動変換なしで同じ mcp.json が VS Code と Copilot CLI の両方で機能することです。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
vscode
領域
cli, tooling
issue の種類
機能追加
難易度
5/5
見積もり時間
1週間以上
活発さ
静か
明瞭さ
おおむね明確
初心者へのやさしさ
38/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。