VS Code and GitHub Copilot browser MCP
Give VS Code agents a browser that stays available.
Hronaut is a visible Chromium browser that runs as its own app. Local VS Code agents connect over loopback MCP, while your named workspaces, tabs, sign-ins and storage stay under Hronaut's lifecycle and your control.
Local MCP endpoint
http://127.0.0.1:47812/mcp
VS Code and Hronaut must run on the same computer. The endpoint is deliberately loopback-only; Hronaut does not provide a remote browser endpoint for cloud agents.
Choose the right browser
VS Code's browser or Hronaut?
VS Code already has capable built-in browser tools. They navigate, interact, inspect, take screenshots and run focused Playwright code without an external MCP server. Agent-opened pages use isolated ephemeral sessions, while a tab you share with Share with Agent exposes that tab's cookies, storage and sign-in state. Official built-in browser documentation ↗ Official browser-session modes ↗
Built into VS Code
One task, or one shared tab
Use the integrated browser to test the app the agent is editing within one VS Code session, or deliberately share one existing integrated-browser tab with the current agent.
Separate desktop app
Durable named workspaces
Use Hronaut when the browser should stay visible on its own, survive client reconnects, keep several named profiles and remain available to other MCP clients, with explicit pause and takeover.
Step 1 · Connect
Connect VS Code.
Start Hronaut, then install the Hronaut extension. It adds Hronaut to the editor's MCP servers and reads the MCP token on its own, so there is nothing to paste.
Extension · recommended
Install the Hronaut extension
code --install-extension hronaut.hronautMCP: List Servers then shows Hronaut. Changed Hronaut's MCP port? Set Hronaut: Mcp Port in your user settings. Added Hronaut to mcp.json before? Remove that entry, so the agent does not get its tools twice. Extension source ↗
Or add the server yourself: run MCP: Open User Configuration from the Command Palette and add Hronaut to the servers object. User-profile configuration makes Hronaut available to local agent sessions in every workspace, without committing it to a repository.
Authentication on (default)
Copy the configuration from Hronaut Home
Copy the VS Code/Copilot configuration from Hronaut Home. It adds the authorization header a new Hronaut profile requires. Keep the owner token in local user configuration; do not commit it to .vscode/mcp.json, .mcp.json, screenshots, issues or chat.
VS Code first tries the HTTP Stream transport for type: "http". Official HTTP MCP configuration ↗
Turned authentication off?
Use this only with a profile whose Require MCP authentication is off, such as one from before Hronaut 3.5 that kept that setting. While authentication is on, Hronaut rejects a connection without the token.
The one-click link follows VS Code's official MCP installation URL format ↗ and is only for the default port with authentication disabled. If you change the port or enable authentication, use Hronaut Home to copy the current token-aware setup instead.
Authentication off
User mcp.json
{
"servers": {
"hronaut": {
"type": "http",
"url": "http://127.0.0.1:47812/mcp"
}
}
}Using the Copilot Agent Host?
For Agent Host portability, current VS Code documentation also describes workspace .mcp.json and user ~/.copilot/mcp-config.json. Loopback Hronaut still requires the agent host to share the local machine boundary. Official configuration-location note ↗
Step 2 · Verify
Check that it works.
Use a clean workspace for this check, before the agent goes near a signed-in page.
- 1
VS Code sees Hronaut
Run MCP: List Servers, select hronaut, and check its status or output. VS Code may ask you to trust the server configuration on first start. In the Chat view, open Configure Tools and enable only the Hronaut tools this check needs; a smaller tool set gives the agent a clearer choice.
- 2
Hronaut sees VS Code
Open Hronaut Home. The VS Code client should appear under Connections.
- 3
Run a first browser task
Ask: “Create a Hronaut workspace named first-check, open https://example.com inside it, and tell me the page title and workspace ID. Start with clean scratch storage.”
Expected result: a separate, visible
first-checkHronaut workspace opens Example Domain, and the VS Code agent reports its workspace ID.
Security
Protect your signed-in sessions.
Keep authentication on. A new Hronaut profile requires the owner token for MCP, so other processes running as your user cannot drive the browser. A profile from before Hronaut 3.5 keeps the setting it saved: if Require MCP authentication is off in Settings → MCP security, turn it on before you use valuable sign-ins and copy the token-aware configuration from Hronaut Home.
Treat web pages as untrusted. Websites can contain prompt injection, and a signed-in workspace carries the authority of every site in it. Review surprising tool requests and keep unrelated identities in separate workspaces.
Take over for human-only steps. Pause MCP before you enter passwords, security keys, payment details or other human-only information.
Keep going
Next steps.
Hronaut does not replace VS Code's built-in browser feedback loop; it adds a browser you own across tasks. Give every durable browser job its own named workspace, then learn how to hand off a login safely.
Sources
- VS Code built-in browser tools — capabilities without an external MCP server.
- VS Code browser-session modes — isolated ephemeral sessions and Share with Agent.
- VS Code HTTP MCP configuration —
type: "http"and transport selection. - VS Code MCP installation URL format — the one-click install link.
- Hronaut source — loopback transport, authentication, workspaces and human controls.
Last verified against official VS Code documentation at commit 18c1614 on August 27, 2026. Hronaut is an independent project and is not affiliated with or endorsed by Microsoft or GitHub.