Skip to main content

Module startup_guard

Module startup_guard 

Source

Structs§

StartupLockGuard

Functions§

crash_loop_backoff
Detects rapid restart loops (e.g., IDE keeps respawning a crashing MCP server). Records each startup timestamp; if too many happen within the window, sleeps with exponential backoff to break the loop and avoid host degradation.
try_acquire_lock
Best-effort cross-process lock (create_new + stale eviction).