cdp-share adds --no-focus to stop browser MCP servers stealing Chrome window focus
Status_Ad8999 · reddit · 2026-11-26
When wiring a browser MCP server to your signed-in Chrome profile via chrome://inspect remote debugging, Chrome jumps to the front every time the agent opens a tab or calls bringToFront.
cdp-share v0.2.0 merged PR #1 adding --no-focus (or CDPSHARENOFOCUS=1), which handles three CDP calls in one place: adds background: true to Target.createTarget unless newWindow: true is set, and locally replies {} to Target.activateTarget and Page.bringToFront.
A detail worth keeping if you build your own proxy: run URL filtering (--exclude-url) before the no-focus shortcut so hidden tabs still fail closed with -32602. Trade-off: manual login/CAPTCHA tabs stay in the background until you switch to Chrome yourself.
More from coding & agent
- Google ships official Workspace MCP servers and CLI while restricting third-party CLIs unless you pay more — steipete · 2026-11-26
- ShellBench: 51% of AI Agent Failures Involve Missing Info the Agent Already Had — rohanpaul_ai · 2026-11-26
- Is harness engineering dead for big models? LLMs read all 874 papers from 2026 to find out — Moze_mpk · 2026-11-26
- Don't pick your agent memory layer by overall leaderboard rank: the column that matters is your failure mode — AccessFine3927 · 2026-11-26
- 8.6M Lines of Lean Proofs in 3 Days: 360-Contributor Agent Fleet Attacks P=NP — demian_ai · 2026-11-26
- Shuffle your agent's tool results before calling your evals a success — Quoravexian · 2026-11-26