Skip to main content

DEFAULT_MCP_IDLE_DISCONNECT_SECS

Constant DEFAULT_MCP_IDLE_DISCONNECT_SECS 

Source
pub const DEFAULT_MCP_IDLE_DISCONNECT_SECS: u64 = 60;
Expand description

Default for how long a per-agent MCP server may sit with zero leasing runs before its connection is torn down. Long enough that back-to-back runs of the same blueprint reuse the warm connection (and never re-trigger an OAuth flow between them); short enough that a one-off run’s servers do not hold child processes and buffers for the daemon’s remaining life.