Bridge Session Model

The bridge has two different responsibilities:

That is why bridge.window.* and bridge.session.* both exist.

Lifecycle States

Important session concepts:

Auth-Sensitive Sites

For sites such as X and Google, the bridge can run in bootstrap_then_attach mode:

  1. open a normal headed browser for manual sign-in
  2. reuse the same profile
  3. attach over CDP for automation

Bootstrap is always headed.

When Only bridge.* Tools Are Visible

If <site>-webmcp-cli -h only lists bridge.*, the bridge is alive but page tools are not ready yet.

Use this order:

<site>-webmcp-cli bridge.session.status

Then choose one of these:

<site>-webmcp-cli bridge.session.bootstrap
<site>-webmcp-cli bridge.session.attach
<site>-webmcp-cli bridge.session.mode.set '{"mode":"headed"}'
<site>-webmcp-cli bridge.open

Only call site operations after help output shows site tools again.

Managed vs External

Managed sessions:

External attach sessions:

Recommended Habit

Do not assume the command name implies the current runtime state.

Always verify with:

<site>-webmcp-cli bridge.session.status