@@ -54,51 +54,37 @@ in your VS Code user settings file.
54
54
55
55
:::note
56
56
57
- VS Code version 1.102 moved the MCP settings to a new location. Servers are now
58
- configured in a dedicated ` mcp.json ` file in the user settings directory.
57
+ VS Code versions prior to v1.102 stored MCP server settings in the main
58
+ ` settings.json ` file. As of v1.102, this has moved to a dedicated ` mcp.json `
59
+ file.
59
60
60
- ToolHive currently only supports the previous location (` settings.json ` ). When
61
- ToolHive adds a new MCP server, VS Code prompts you to move it to the new
62
- location.
61
+ ToolHive v0.2.0 and works with VS Code 1.102+ and updates the ` mcp.json ` file
62
+ when you run an MCP server.
63
63
64
- <img
65
- src = ' /img/toolhive/vscode-config-update.webp'
66
- alt = ' Screenshot of the VS Code MCP move prompt'
67
- width = { 440 }
68
- />
69
-
70
- This works, but ToolHive will not automatically update the new ` mcp.json ` file
71
- in the same location as the ` settings.json ` file referenced below. You can still
72
- use the MCP servers, but you will need to manually update the ` mcp.json ` file if
73
- you stop or remove the server.
74
-
75
- Subscribe to [ this issue] ( https://github.com/stacklok/toolhive/issues/1037 ) for
76
- updates on ToolHive's support for the new MCP configuration location.
64
+ If you're using an older version of either ToolHive or VS Code, automatic client
65
+ configuration will not work as expected and you will need to manually update
66
+ your configurations. We recommend upgrading both for the best experience.
77
67
78
68
:::
79
69
80
70
** Standard version** :
81
71
82
- - ** macOS** : ` ~/Library/Application Support/Code/User/settings .json `
83
- - ** Linux** : ` ~/.config/Code/User/settings .json `
72
+ - ** macOS** : ` ~/Library/Application Support/Code/User/mcp .json `
73
+ - ** Linux** : ` ~/.config/Code/User/mcp .json `
84
74
85
75
** Insiders edition** :
86
76
87
- - ** macOS** : ` ~/Library/Application Support/Code - Insiders/User/settings .json `
88
- - ** Linux** : ` ~/.config/Code - Insiders/User/settings .json `
77
+ - ** macOS** : ` ~/Library/Application Support/Code - Insiders/User/mcp .json `
78
+ - ** Linux** : ` ~/.config/Code - Insiders/User/mcp .json `
89
79
90
80
Example configuration:
91
81
92
82
``` json
93
83
{
94
- // Other VS Code settings...
95
-
96
- "mcp" : {
97
- "servers" : {
98
- "github" : { "url" : " http://localhost:19046/sse#github" , "type" : " sse" },
99
- "fetch" : { "url" : " http://localhost:43832/sse#fetch" , "type" : " sse" },
100
- "osv" : { "url" : " http://localhost:51712/mcp" , "type" : " http" }
101
- }
84
+ "servers" : {
85
+ "github" : { "url" : " http://localhost:19046/sse#github" , "type" : " sse" },
86
+ "fetch" : { "url" : " http://localhost:43832/sse#fetch" , "type" : " sse" },
87
+ "osv" : { "url" : " http://localhost:51712/mcp" , "type" : " http" }
102
88
}
103
89
}
104
90
```
0 commit comments