Skip to content

Commit 1fc3e31

Browse files
authored
Use new MCP config path for VS Code 1.102 and later (#1091)
Release 1.102 of VS Code expects MCP configuration to be defined in an mcp.json file instead of the settings.json file. Change the configuration code to use this new file instead. As part of this change, we debated whether we should support the old path as well. We decided not to since: 1. VS Code pushes updates aggressively, so we do not think that old versions will remain in use long term. 2. MCP support in the older releases was in a "preview" mode, so it was not intended to be stable long term.
1 parent ac708bb commit 1fc3e31

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pkg/client/config.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ var supportedClientIntegrations = []mcpClientConfig{
111111
{
112112
ClientType: VSCodeInsider,
113113
Description: "Visual Studio Code Insiders",
114-
SettingsFile: "settings.json",
114+
SettingsFile: "mcp.json",
115115
RelPath: []string{
116116
"Code - Insiders", "User",
117117
},
@@ -120,7 +120,7 @@ var supportedClientIntegrations = []mcpClientConfig{
120120
"darwin": {"Library", "Application Support"},
121121
"windows": {"AppData", "Roaming"},
122122
},
123-
MCPServersPathPrefix: "/mcp/servers",
123+
MCPServersPathPrefix: "/servers",
124124
Extension: JSON,
125125
SupportedTransportTypesMap: map[types.TransportType]string{
126126
types.TransportTypeStdio: "sse",
@@ -132,11 +132,11 @@ var supportedClientIntegrations = []mcpClientConfig{
132132
{
133133
ClientType: VSCode,
134134
Description: "Visual Studio Code",
135-
SettingsFile: "settings.json",
135+
SettingsFile: "mcp.json",
136136
RelPath: []string{
137137
"Code", "User",
138138
},
139-
MCPServersPathPrefix: "/mcp/servers",
139+
MCPServersPathPrefix: "/servers",
140140
PlatformPrefix: map[string][]string{
141141
"linux": {".config"},
142142
"darwin": {"Library", "Application Support"},

0 commit comments

Comments
 (0)