# Codex 0.172 Can List an MCP Tool Before Starting Its Server

Tell cached tool discovery apart from a live stdio MCP connection, and update your Codex CLI startup smoke checks.

By Paras Madan | 2026-11-24


Your local MCP tool is visible in Codex, but its server process is nowhere to be found. In Codex CLI 0.172.0, that can be normal. The [November 24 stable release](https://github.com/openai/codex/releases/tag/rust-v0.172.0) makes lazy startup the default for optional stdio servers whose tool lists are already cached. A new thread can use the saved tool definitions and wait until the first call to start the server.

This matters if your startup smoke test checks whether a local process exists or assumes a listed tool proves that the connection works. Those two observations now answer different questions.

## Start by checking which server you have

A stdio MCP server is configured with a local command; a Streamable HTTP server is configured with a URL. This startup change applies to eligible stdio servers, so don't use it to explain a remote HTTP endpoint. For stdio, check whether the server is optional and whether the current environment has a usable cached tool catalog. No usable catalog means Codex starts the server when the thread starts. [Codex MCP configuration guide](https://learn.chatgpt.com/docs/extend/mcp?surface=cli)

A catalog is a list of tools and the information needed to describe them to the client. Its presence tells you that Codex knows what it can try to call. It does not tell you that the process can start now, initialize successfully, or answer that call.

## Split your smoke test in two

Use an approved local test server with a harmless read-only tool, such as one that returns a fixed version string. First, run a new thread after a successful connection has populated the catalog. Give it a task that doesn't call the tool. An idle server process is no longer a failure in this warm-cache case. Then make one read-only call to the test tool, verify its fixed response, and record the time from the call to the response separately from thread startup.

If you own the fixture, use an isolated test environment without a cached catalog to cover the cold case as well. Avoid clearing a shared cache for this check. The [tagged regression test](https://github.com/openai/codex/blob/rust-v0.172.0/codex-rs/core/tests/suite/mcp_tool_cache.rs) checks that an unused optional server can report `NotStarted` in a new thread, and that the process launches when a real tool call arrives. The test also includes an eager-start control.

## Keep critical integrations on live readiness

If a workflow cannot do its job without one server, decide whether the runner should fail at startup when that server isn't available. `required = true` with the default `startup_readiness = "connection"` calls for a live connection. If you explicitly use `startup_readiness = "catalog"`, a valid cached catalog can satisfy startup readiness, but the first tool call still needs a live server. The [configuration reference](https://learn.chatgpt.com/docs/config-file/config-reference) describes both modes.

You can use `features.mcp_lazy_stdio_startup = false` as a comparison in an isolated run if you need to verify that an observed delay has moved from thread startup to first use. Keep the server configuration, tool permissions, and approved test input the same. If the same read-only call fails in both modes, capture the initialization or tool error and diagnose it directly rather than broadening permissions.

For a rollout, log three observations separately: whether the tool was listed, whether the connection was live, and whether the first call succeeded. That makes a dormant optional process easy to distinguish from an integration your workflow actually cannot use.

I'm Paras Madan. I help AI and developer-tool teams write practical release guides and explain what changes for their users. [Book a 30-minute call](https://cal.com/paras-madan/30min).
