github / github/copilot-cli

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

Offen
#4,429 0 Kommentare 3 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

triage
Vorherrschende Sprache
Shell
Sterne
11.2k
Forks
1.9k
Ø Merge
14 Std. 16 Min.
Gemergte PRs (30 T.)
6

Beschreibung

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)

Beitragsleitfaden

Beitragsleitfaden öffnen

Erste Schritte

  1. Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
  3. Forke das Repository und arbeite in einem Branch.
  4. Öffne einen Pull Request, der die Issue-Nummer nennt.

Rechercherichtung

Vergleiche die Schemas und Speicherorte in .vscode/mcp.json, dem benutzerebenen mcp.json, ~/.copilot/mcp-config.json, .mcp.json und .github/mcp.json. Beginne damit nachzuverfolgen, wie jede Konfiguration entdeckt und validiert wird; abgeschlossen ist die Aufgabe, wenn ein gemeinsames mcp.json sowohl in VS Code als auch in der Copilot CLI ohne manuelle Konvertierung funktioniert, einschließlich der angeforderten Behandlung von Schlüsselaliasen und Typen.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
vscode
Bereich
cli, tooling
Issue-Typ
Feature
Schwierigkeit
5/5
Geschätzter Aufwand
Über eine Woche
Aktivitätsstatus
Ruhig
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
38/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.