Support a single unified mcp.json for both VS Code and Copilot CLI for maintainability purpose
Dieses Issue hat noch niemand übernommen.
- 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.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)
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Ö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