Enable lazy startup for stdio MCP servers by default (#62366)

## What changed

Mark `mcp_lazy_stdio_startup` stable and enable it by default. When a
tool catalog is already cached, Codex can expose tools from an optional
stdio MCP server and defer starting the server until the first tool
call. Required servers still establish a live connection at startup.

## Testing

Exercise lazy startup with the default configuration in the tool-cache
test and explicitly disable the feature for the eager-start control.
Update the code mode and working-directory tests to proceed without
waiting for an optional server when its catalog is cached.

GitOrigin-RevId: a65d83fd1a4c141dba3c10e68b138539aa0a44f0
This commit is contained in:
Charlie Marsh
2026-11-18 21:30:23 +00:00
committed by copyberry
parent 333ea31947
commit 637c429472
4 changed files with 13 additions and 10 deletions
+2 -2
View File
@@ -1806,8 +1806,8 @@ pub const FEATURES: &[FeatureSpec] = &[
FeatureSpec {
id: Feature::McpLazyStdioStartup,
key: "mcp_lazy_stdio_startup",
stage: Stage::UnderDevelopment,
default_enabled: false,
stage: Stage::Stable,
default_enabled: true,
},
FeatureSpec {
id: Feature::MultiEnvironmentMcp,