@@ -226,7 +226,7 @@ Configure Visual Studio Code to connect to your MCP server. Open VS Code and
226226access your user settings:
227227
2282281 . Open the command palette (Cmd/Ctrl+Shift+P)
229- 2 . Type "Preferences: Open User Settings (JSON) " and select it
229+ 2 . Type "MCP: Add Server... " and select it
230230
231231<ThemedImage
232232 alt = ' VS Code user settings in command palette'
@@ -239,26 +239,31 @@ access your user settings:
239239 className = ' screenshot'
240240/>
241241
242- Add the MCP server configuration to your ` settings.json ` file. If you have
243- existing settings, merge the following configuration into it:
244-
245- ``` json
246- {
247- // Other existing settings...
248-
249- "mcp" : {
250- "servers" : {
251- "fetch" : {
252- "url" : " http://localhost:8080/sse#fetch" ,
253- "type" : " sse"
254- }
255- }
256- }
257- }
258- ```
242+ 3 . Select "HTTP" as the server type
243+
244+ 4 . Enter the server URL: ` http://localhost:8080/mcp ` and press Enter
245+
246+ 5 . Enter a name for the server (e.g., "fetch") and press Enter
247+
248+ 6 . Choose "Global" to add the server to your global settings
249+
250+ 7 . VS Code adds the server and opens the MCP settings file. It should look like
251+ this:
252+
253+ ``` json
254+ {
255+ "servers" : {
256+ "fetch" : {
257+ "url" : " http://localhost:8080/mcp" ,
258+ "type" : " http"
259+ }
260+ },
261+ "inputs" : []
262+ }
263+ ```
259264
260- Save the file and click ** Start** to initiate the connection . The indicator
261- should change to "Running" and show "1 tools".
265+ To verify the connection, click ** Start** . The indicator should change to
266+ "Running" and show "1 tools".
262267
263268<ThemedImage
264269 alt = ' VS Code MCP settings'
@@ -315,7 +320,7 @@ retrieve the content and provide a summary.
315320You're manually configuring VS Code to connect to your MCP server running in
316321Kubernetes. The port-forward creates a tunnel from your local machine
317322(port 8080) to the Kubernetes service, allowing GitHub Copilot to communicate
318- with the server using the SSE (server-sent events) protocol.
323+ with the server using the Streamable HTTP protocol.
319324
320325:::
321326
0 commit comments