Connect VS Code to Guard.ch
Let VS Code open and use websites in a Guard.ch cloud browser. Watch live or hand over a running session.
Connect VS Code
Set up GitHub Copilot Chat in VS Code and use Agent mode.
1. Add the connection
Install it with the one-click VS Code link, or run MCP: Open User Configuration in the Command Palette and add this. If the file already lists servers, add only the guardch entry.
Command Palette > MCP: Open User Configuration
Add the entry below. Keep any other servers already in the file.
{ "servers": { "guardch": { "type": "http", "url": "https://api.guard.ch/mcp" } } }Show screenshot

Official example. Use your values above; the example may show a different server or interface version. Screenshot source 2. Sign in and allow access
When guardch starts, VS Code asks you to trust the server and then to sign in. Allow it and sign in on the Guard.ch page that opens.
Start > Trust
3. Try it in a new chat
Run MCP: List Servers and start guardch if it is not running. Switch Chat to Agent mode, check under Configure Tools that the guardch tools are on, then send the task below.
Chat > Agent > Configure Tools
Open example.com in a Guard.ch browser and tell me what the page says.
0 of 3 steps marked done
Need help?
If guardch fails, run MCP: List Servers, choose guardch and open Show Output. If the tools are missing, check whether your organisation permits MCP servers in its Copilot policy.
Hand over a running session
Choose “Hand off to an agent” in the Guard.ch viewer and paste the prepared prompt into your assistant’s chat. The session ID in that prompt lets the assistant continue in the same browser. Sign your assistant in with the same Guard.ch account.