Connect Visual Studio to Guard.ch
Let Visual Studio open and interact with websites in an isolated cloud browser. Watch live or hand over a running session.
Connect Visual Studio
Use Visual Studio 2026 or Visual Studio 2022 version 17.14 or later with GitHub Copilot.
1. Add the connection
Add this to .mcp.json in your user folder (%USERPROFILE%\.mcp.json) and save. If the file already lists servers, add only the guardch entry.
%USERPROFILE%\.mcp.json
Add the entry below. Keep any other servers already in the file.
{ "servers": { "guardch": { "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
In the file, click Authentication Required in the CodeLens above guardch, choose Authenticate and sign in on the Guard.ch page that opens.
Authentication Required
3. Try it in a new chat
In the Copilot Chat pane, switch to Agent mode, open Tools and turn on the guardch tools, which start disabled. Then send the task below and allow the tools when asked.
GitHub Copilot Chat > Agent
Open example.com in a Guard.ch browser and tell me what the page says.
0 of 3 steps marked done
Need help?
If no CodeLens appears, turn it on under Tools › Options › Text Editor › CodeLens. If Visual Studio says the server is not allowed, your organisation's MCP allow list blocks it.
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.