Architecture guide

The browser should not die with the coding task.

The core distinction

Persistence is storage. Ownership is lifecycle.

A profile can keep cookies, local storage, and cache after a process exits. That does not say who launches the next browser, whether two clients can use the profile at once, who can stop automation, or whether a person can still see the original tabs. Those are process-ownership decisions.

Name every clock

Do not collapse three lifetimes into one.

“Session” is overloaded in browser automation. Modern MCP is stateless at the protocol level, while older revisions can establish a protocol session. Neither model defines the lifetime of a Chromium profile, so name each lifetime explicitly. A fourth one, the human's, matters too.

  • Task lifetime: the unit of intent. A coding task can finish, be interrupted, fork into another thread, or switch clients. The browser does not need to share that lifetime.
  • Transport lifetime: the MCP channel. In the July 2026 protocol, every request carries its own version and capabilities. stdio keeps a client-owned subprocess lifetime; Streamable HTTP has request-scoped responses. Any negotiated legacy session state is still not a Chromium profile or a signed-in tab.
  • Browser lifetime: the process and profile. The browser owns renderers, tabs, cookies, IndexedDB, cache, downloads, and window state. Decide whether it ends with the task, stays with the person, or runs on managed remote infrastructure.
  • Human lifetime: the visible handoff. Login, consent, CAPTCHAs, payments, and visual judgment may need a person. Plan a clear pause, takeover, and resume path instead of treating those moments as failures.

Transport shapes ownership

stdio and Streamable HTTP create different defaults.

The current MCP specification defines both transports and a stateless core. It does not say which component should own a browser. The transport just makes some ownership models easier.

QuestionstdioStreamable HTTP
Who starts the server?The MCP client launches it as a subprocess.The server runs as an independent process at an HTTP endpoint.
What ends the active work?The client cancels a request on the shared channel, or closes input and asks the subprocess to exit.Each request has its own response. Closing an SSE response stream cancels that request; the server process can keep running.
Can clients change?Usually needs another subprocess or an explicitly detached relay.Several client connections can reach the same independent server.
Browser implicationConvenient when the browser and tool server should be task-scoped.Convenient when one desktop or hosted browser service should outlive individual clients.

This is an architectural default, not a guarantee. A stdio server can delegate to a detached browser, and an HTTP server can still create disposable browsers. Check the product's actual process tree and shutdown behavior.

A common surprise

A persistent profile is not a concurrency strategy.

Playwright MCP documents both useful profile persistence and its limit: one persistent profile can be used by only one browser instance at a time. Concurrent clients sharing a workspace need isolated mode or distinct user-data directories.

Persistence answers

Will the data still be there?

  • Will cookies and local storage still exist later?
  • Does the next browser instance reopen the same profile?
  • Can a test begin from known storage state?

Ownership must still answer

Who controls the browser?

  • Which process may open the profile?
  • Do parallel clients share, queue, or isolate work?
  • Who closes the browser, and when?
  • Can a person see and interrupt the active session?

Four valid patterns

Choose the lifetime that matches the job.

Task-owned browser

Start clean, finish clean

Best for CI, regression tests, reproducible automation, and disposable work. The task or MCP server creates and tears down the browser.

Existing human browser

Inspect the exact current tab

Best when the bug, extensions, or app state already exist in everyday Chrome. The trade-off is broad authority over that profile.

Dedicated desktop browser

Keep visible work between clients

Best when signed-in tabs, named workspaces, and debugging context should stay on your machine while coding tasks connect and disconnect.

Hosted browser service

Keep work off the desktop

Best for remote execution, managed capacity, proxies, and unattended jobs. Persisted profile data and live-view access move into the provider's trust boundary.

Failure modes

Lifecycle mistakes look like random browser bugs.

  • Duplicate GUI processes. A public Codex issue documents configured headed MCP servers accumulating as sessions start or resume. They are not necessarily orphaned; each may still belong to a live client session.
  • Profile lock. A second client can connect to MCP and still fail on its first browser action, because another instance owns the persistent profile.
  • Invisible authority. Long-lived cookies can preserve powerful account access. Without a visible owner, a pause control, and workspace policy, persistence just makes delegated authority last longer.
  • Coupled teardown. If tabs, logs, screenshots, and sign-ins disappear with the client, the next task must rebuild the incident before it can keep debugging.

Concrete implementation

How Hronaut separates the lifetimes.

Hronaut is one implementation of the dedicated-desktop pattern, not proof that every workflow needs it.

  1. 1

    The desktop app owns Chromium

    The visible Electron app stays open independently of Codex, Claude Code, Cursor, Copilot, OpenCode, or any other compatible client.

  2. 2

    Persistent partitions own workspace data

    Named workspaces store browser state in durable Electron partitions. Stable workspace IDs stay separate from MCP requests and coding tasks.

  3. 3

    Streamable HTTP accepts changing clients

    The embedded server listens on loopback by default, at a single MCP endpoint, and returns JSON responses. A client can disconnect without ever owning the browser process.

  4. 4

    Workspace access is explicit

    Agents create a workspace or resume it with its private key. A workspace ID alone grants no access. An intentional fork can copy cookies and local storage from another workspace, even when that source has direct agent access turned off.

  5. 5

    Pause, locks, and authentication stay visible

    A person can stop new commands, lock interaction and take over a tab, and a new profile requires a bearer token for MCP access.

Use this pattern when

The browser should outlive tasks

  • the browser should outlive coding tasks
  • the same visible session should work with changing clients
  • parallel jobs need named, durable isolation
  • human login and takeover are part of the workflow

Not a substitute for

Infrastructure it doesn't replace

  • ephemeral multi-browser CI
  • Firefox or WebKit coverage
  • unattended remote browser infrastructure
  • controlling your exact everyday Chrome profile

Hronaut is Chromium-only. Its macOS binaries are signed and notarized by Apple. Browser state remains sensitive local data, the desktop app must keep running, and the public source uses the Hronaut Subscription and Trial License rather than an OSI license.

Architecture checklist

Ask these six questions before choosing a browser MCP.

QuestionWhy it mattersEvidence to request
Who owns the browser process?Defines startup, shutdown, reuse, and failure recovery.The actual process tree and documented teardown behavior.
Where does profile data live?Defines the credential, privacy, backup, and provider boundary.The profile path or hosted-storage policy.
What happens with two clients?Reveals profile locks, queues, tab collisions, and isolation.A real parallel-client test, not just two successful MCP handshakes.
What survives a disconnect?Separates protocol persistence from browser persistence.Reconnecting to the same visible tab and a stable workspace identity.
How does a person stop it?Authenticated browser automation is delegated authority.Pause, lock, permission, and manual takeover controls.
What is deliberately unsupported?Prevents a local desktop tool from being mistaken for CI or cloud infrastructure.Browser engines, platforms, signing, license, and remote-hosting boundaries.

Sources and method

Verify process ownership, not just feature copy.

Transport and Electron claims come from current first-party documentation. The failure examples are public issue reports: treat them as documented field evidence, not universal measurements. Hronaut behavior is grounded in its public source and reference.

All 10 sources

Choose deliberately

Start from browser ownership, then choose the tool.

The comparison guide matches the task-owned, existing-browser, dedicated-desktop, and hosted models to real tools. If the dedicated-browser model fits, the setup guide ends with one observable isolated-workspace check. Running several agents at once? Design parallel workspaces.