You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On Windows, fileURLToPath returns a POSIX-style path /C:/Users/.../browser-mcp.js instead of C:\Users\...\browser-mcp.js. When this is passed as a CLI argument to node.exe, Windows interprets /C:/... relative to the current drive root, producing C:\C:\....
.pathname gives the raw URL path component — on Windows that's /C:/Users/..., not a valid Windows file path. Passing it to node.exe makes Windows resolve it as C:\C:\....
Activity
jiaweing commentedon Apr 22, 2026
Root cause identified
The bug is in
apps/cli/src/index.tsxline 254:.pathnamegives the raw URL path component — on Windows that's/C:/Users/..., not a valid Windows file path. Passing it tonode.exemakes Windows resolve it asC:\C:\....One-line fix
fileURLToPathis the standard Node.js way to convertimport.meta.urlto a file path — it correctly handles the Windows drive letter.I tried opening a PR but the repo is set to
collaborators_onlyfor PRs. Fork with the fix is at: https://github.com/jiaweing/expect/tree/fix/windows-mcp-path