AI News
All stories
Official

OpenAI's Codex CLI 0.172.0 starts stdio MCP servers on first tool call by default

OpenAI's Codex CLI 0.172.0 release notes say optional stdio MCP servers with cached tool lists now start on their first tool call by default.

Products · · 1 min read

Codex CLI 0.172.0 changes when optional stdio MCP servers start. In this release, an optional server that already has a cached tool list no longer starts at launch. It starts on its first tool call, which is now the default. The release notes list the change under New Features and cite pull request #62366, merged on Nov 18 and titled "Enable lazy startup for stdio MCP servers by default." The 0.172.0 release is dated 24 Nov.

The mechanism depends on the cache. According to the pull request description, the mcp_lazy_stdio_startup setting is marked stable and enabled by default. When a tool catalog is already cached, Codex can expose that server's tools to the agent while leaving the server process unstarted. It defers starting the server until the first tool call that needs it. Servers marked as required still establish a live connection at startup. Under the new default, an optional server's tools can appear in the session before the server is running.

The pull request's testing notes show what the authors checked. They exercised lazy startup under the default configuration in a tool-cache test and explicitly disabled the feature for an eager-start control. They also changed the code mode and working-directory tests so they no longer wait for an optional server when its catalog is cached.

The pull request description does not say what happens on the first run, before any catalog has been cached, since the feature only applies when a cache exists. It also does not describe how the cache is refreshed when a server's tools change.

The same release adds a separate control for approvals. Pull request #62360, "Allow per-tool approval reviewers for Codex apps," lets users set an approval reviewer for individual connected app tools in config.toml. The release notes list this under New Features as well.

What changed

Optional stdio MCP servers that have a cached tool list now start on their first tool call by default instead of at launch, with the mcp_lazy_stdio_startup setting marked stable and enabled by default.

Type: Breaking change · Applies to: Codex CLI 0.172.0, stdio MCP servers, mcp_lazy_stdio_startup

Why it matters

Teams running several MCP servers may see different startup timing and tool initialization order in Codex sessions than before.

What you can do

Test Codex sessions that depend on MCP servers being ready at launch before rolling 0.172.0 out to developers.

Original source

Where we saw it

1 source

Codex CLI releases

AI wrote this summary from the sources listed, and nobody reviewed it individually before publication. Check the original source before you rely on it. How it works