Closed
Description
Hi there,
My setup is as follows, I'm on Windows with MS edge, using Playwright with VSCode dev containers..
- Login to a website xyz, any can be used
- Start Playwright with
npx @playwright/mcp@latest --port 8931 --browser msedge
- Open VSCode, create and start a VSCode dev container
- Install MCP server in VSCode with user settings:
"mcp": {
"servers": {
"playwright-host": {
"url": "http://localhost:8931/sse"
}
}
}
- Open CoPilot in agent mode and add all Playwright tools
- Prompt CoPilot with a simple instruction, e.g. open website xyz
Expected:
Playwright opens a browser window on the host with site xyz, and it is logged in
Actual:
Playwright opens a browser window on the host with site xyz, but it is not logged in.
So it works, except for being logged in. Some kind of problem with cookies or sessions not being propagated, or did I do something wrong with my setup steps?
Note: I'm connecting to the Playwright MCP server using HTTP instead of a Playwright node module installed in the container, because I am issuing my CoPilot prompts from dev containers but I want to communicate with my host browser rather than some headless browser installed in the container.
Thanks 🙏
Metadata
Metadata
Assignees
Labels
No labels