Skip to main content

Module mcp

Module mcp 

Source
Expand description

browser-control mcp subcommand entry point.

Functions§

acquire_bidi_lock_if_needed
Acquire the Firefox BiDi single-session lock if resolved is a registered browser on the BiDi engine. Returns None for external URL endpoints (the lock is per-registered-name) and for CDP engines. Wait bound: 30 s; on timeout, returns the typed BidiLockBusy error.
resolve_browser
Resolution order: positional arg / BROWSER_CONTROL env (arg wins, env is the fallback — both are merged by clap into browser_arg) > persisted default (browser-control set default ...) > most recent live browser > start the default installed browser.
run_cli
Entry point for browser-control mcp.
start_and_resolve