Expand description
Host-mode dispatch helpers.
Provides run_via_pool and continue_via_pool which orchestrate
worker subprocess spawning, UDS connection, registry persistence, and
response forwarding.
§Crux invariants enforced here
- (MCP thin proxy IPC boundary): all host_mode=true calls reach a worker
subprocess via
PoolClientover a Unix domain socket. The MCP-internal [SessionRegistry] is never touched on this path. - (Registry reconnect across restarts): every successful
run_via_poolcall persists the session entry toregistry.jsonviawith_registry_lockbefore returning. A restarted MCP process can rediscover live workers from that file.
Functions§
- continue_
via_ pool - Reconnect to an existing pool worker via its registry entry and forward a
Continuerequest. - run_
via_ pool - Spawn a worker subprocess, connect via UDS, proxy a
Runrequest, and persist the session entry toregistry.json.