Skip to main content

Module daemon

Module daemon 

Source
Expand description

Single-instance daemon for sharing a hyperd process across MCP clients.

Modules§

discovery
Discovery file management for the single-instance daemon.
health
TCP health listener for the daemon.
run
Daemon main loop: spawns hyperd, runs health listener, monitors idle timeout and hyperd liveness, restarts hyperd if it dies.
spawn
Spawn the daemon as a detached background process.

Constants§

DEFAULT_DAEMON_PORT
Default TCP port the daemon binds for health checks and single-instance locking.
DEFAULT_IDLE_TIMEOUT_SECS
Default idle timeout in seconds before the daemon shuts down.
ENV_DAEMON_PORT
Environment variable to override the daemon port.
ENV_IDLE_TIMEOUT
Environment variable to override the idle timeout (seconds).