pub async fn run(browser: &ResolvedBrowser) -> Result<i32>Expand description
Spawn the official Playwright MCP server and forward stdio bidirectionally.
Resolves the CDP endpoint URL from browser.endpoint. Tries npx -y @playwright/mcp@latest,
falling back to bunx if npx is not on PATH. Injects --cdp-endpoint <url> as a CLI arg.
Forwards our process’s stdin → child stdin, child stdout → our stdout, child stderr → our stderr. Returns the child’s exit code.