Add Windows support: Named Pipe bridge, devcontainer helper, updated docs - #2
Open
DavidSchmidt00 wants to merge 1 commit into
Open
Conversation
…docs On Windows, Claude Code uses a Named Pipe instead of a Unix socket for Chrome IPC. This PR adds a PowerShell 7 bridge and a self-contained devcontainer helper script so the feature works from VS Code Dev Containers on Windows without Node.js. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
On Windows, Claude Code uses a Named Pipe (
\\.\pipe\claude-mcp-browser-bridge-<user>) instead of a Unix socket for Chrome IPC. The existingbridge-host.jslooks for.sockfiles and connects viaAF_UNIX, so it silently fails on Windows with no error — the pipe simply never gets found.This PR adds full Windows / VS Code Dev Containers support with two new files and updated docs.
Changes
bridge-host.ps1(new)bridge-host.json Windows — no Node.js required\\.\pipe\claude-mcp-browser-bridge-<user>viaSystem.IO.Pipes.NamedPipeClientStreamRunspacePoolfor concurrent connection handling (equivalent to Node's event loop)CopyToAsynclistener.Pending()instead of blocking onAcceptTcpClient()so Ctrl+C works cleanlywinget install Microsoft.PowerShell)bridge-devcontainer.sh(new)socatif missing, creates the requiredchrome-native-hoststub, cleans stale sockets, verifies host reachability, and starts the socat bridgeREADME.md(updated)-BridgeHost '::'requirement for WSL2 (Dev Containers resolvehost.docker.internalas IPv6)claude --chromeon Windows must run first to keep the Named Pipe alivebash bridge-devcontainer.shcommandHow it was discovered
Tested on Windows 11 with a VS Code Dev Container (WSL2 backend). Inspecting
[System.IO.Directory]::GetFiles('\\.\pipe\')revealed the pipe at\\.\pipe\claude-mcp-browser-bridge-<user>— no.sockfiles exist anywhere on the Windows filesystem when Claude Code is running.Test plan
claude --chromeon Windows to create the Named Pipebridge-host.ps1 -BridgeHost '::'— should logPipe found -- readybash bridge-devcontainer.shinside Dev Container — should complete without errorsclaude --chromeinside Dev Container — extension should be detected and browser tools should workbridge-host.ps1cleanly