The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
docs(mcp): clarify transport keepalive defaults
fangliquanflqb632f2048422
diff --git a/cli-config.yaml.example b/cli-config.yaml.exampleindex 76e42166631..f48c109c773 100644--- a/cli-config.yaml.example+++ b/cli-config.yaml.example@@ -1467,10 +1467,12 @@ platform_toolsets:# Optional per-server settings:# timeout: tool call timeout in seconds (default: 120)# connect_timeout: initial connection timeout (default: 60)-# keepalive_interval: liveness ping cadence in seconds (default: 180).-# Lower it below the server's session TTL for servers that expire idle-# sessions quickly (e.g. Unreal Engine editor MCP, ~15s), otherwise idle-# tool calls hit an expired session and pay a slow reconnect. Floored at 5s.+# keepalive_interval: liveness ping cadence in seconds (floored at 5s).+# HTTP servers default to 180s; lower it below the server's session TTL for+# servers that expire idle sessions quickly (e.g. Unreal Engine editor MCP,+# ~15s), otherwise idle tool calls hit an expired session and pay a slow+# reconnect. Stdio servers disable keepalive by default; set this explicitly+# to opt a stdio server in.# lazy: register the server's tools from the on-disk schema cache at startup# and only spawn/connect it on the first tool call (default: false). Saves# one child process per server in processes that rarely call tools. Needsdiff --git a/website/docs/reference/mcp-config-reference.md b/website/docs/reference/mcp-config-reference.mdindex 5b9e2e5bfa8..ad3339e3d24 100644--- a/website/docs/reference/mcp-config-reference.md+++ b/website/docs/reference/mcp-config-reference.md@@ -60,7 +60,7 @@ mcp_servers:| `supports_parallel_tool_calls` | bool | both | Allow tools from this server to run concurrently || `skip_preflight` | bool | HTTP | Bypass the fail-fast content-type probe for valid Streamable HTTP endpoints whose HEAD/GET answers a non-MCP content type (default: `false`) || `transport` | string | HTTP | Set to `sse` to use the SSE transport instead of Streamable HTTP |-| `keepalive_interval` | number | both | Liveness ping cadence in seconds (default: `180`, floored at 5s). Set below the server's session TTL for servers that GC idle sessions quickly |+| `keepalive_interval` | number | both | Liveness ping cadence in seconds (floored at 5s). HTTP defaults to `180`; set it below the server's session TTL when the server GC's idle sessions quickly. Stdio disables keepalive when omitted; set a value to opt in explicitly || `lazy` | bool | both | Register the server's tools from the on-disk schema cache at startup and only spawn/connect it on the first tool call (default: `false`). Needs one prior live connect to fill the cache; a missing or stale entry falls back to the normal eager connect. Status surfaces show the server as `lazy` with its cached tool count until first use || `idle_timeout_seconds` | number | stdio | Optional stdio server recycle after idle time (`0` disables). May also live under a `lifecycle:` mapping || `max_lifetime_seconds` | number | stdio | Optional stdio server recycle after age (`0` disables). May also live under a `lifecycle:` mapping |