Skip to main content

Module spawn

Module spawn 

Source
Expand description

Spawn the daemon as a detached background process.

When an MCP client starts and no daemon is running, it spawns one using the current binary with the daemon subcommand. The spawned process is fully detached so it outlives the parent MCP session.

Functions§

ensure_daemon
Ensure a daemon is running and return its info. If no daemon is detected, spawn one and wait for it to become ready.