Codex CLI · 4 min read

Optional stdio MCP servers now start on their first tool call

Codex CLI 0.172.0 starts optional stdio MCP servers with cached tool lists lazily, adds a per-tool approval reviewer for connected apps in config.toml, and brings Tab completion for slash command arguments.

Key takeaways 5
  • Optional stdio MCP servers with cached tool lists now start on their first tool call by default, and their cached tools stay available without a launch.
  • You can set an approval reviewer for individual connected app tools in config.toml.
  • Tab completes arguments for supported slash commands, and Shift+Up and Shift+Down jump between task groups in the agent command center.
  • codex exec resume restores saved sandbox permissions, working directory, and workspace roots unless you override them.
  • Code Mode now uses gRPC for all host connections, so the code_mode_host_grpc setting is deprecated.

Every MCP server you configure is a process that may start before you need it, and every connected app tool raises the question of who approves its calls. Version 0.172.0 trims the first problem by starting optional stdio MCP servers lazily, and it eases the second by letting you pick an approval reviewer per tool.

This update covers November 24, 2026 (week 48) and a single release, 0.172.0, with 14 changelog entries. Two of them are headline features. The rest are terminal conveniences, session fixes and a deprecation.


Optional MCP servers wait until you call them

What changes. Optional stdio MCP servers that have cached tool lists now start on their first tool call by default. Until then the server does not need to be launched up front. Its cached tools remain available, so the model still sees them and can call them.

Why it matters in practice. If your config lists several MCP servers that you use only now and then, a session no longer has to pay for all of them at startup. The server launches when a tool call needs it. The cached tool list is what makes this possible, which is why the behavior depends on it.

Conditions.

  • The server has to be an optional stdio MCP server.
  • It needs a cached tool list. Without one, the lazy start does not apply.
  • Lazy start is the default in 0.172.0, so you do not have to switch anything on.

What is not spelled out. The changelog entry does not name a setting for opting out or for marking a server as optional. Check the Codex documentation on MCP configuration before you assume anything. One thing to expect: the first call to a lazily started server includes the server’s startup time (a delay you may notice on a slow server).


Changes for everyday work

Per-tool approval reviewer. You can now set an approval reviewer for individual connected app tools in config.toml. Approval handling can follow the tool instead of one global choice. A read-only lookup tool and a tool that writes to an external system rarely deserve the same treatment, so this fits how most setups look. The entry does not list the key names, so read the configuration reference for the exact syntax.

Tab completion for slash command arguments. Press Tab to complete arguments for supported slash commands. The example from the changelog: /mcp lo completes to /mcp login. Only supported commands complete, so try it on the ones you use most.

Navigation between threads. Thread links in search results and transcripts now open saved conversations and nested agents in the terminal. Following a reference back to the session it came from is now one step.

Task groups in the agent command center. Shift+Up and Shift+Down jump between task groups. If you run many agents at once, this saves scrolling.


Technical notes

Sessions and exec.

  • codex exec resume restores saved sandbox permissions, working directory, and workspace roots unless you explicitly override them. A resumed run should land in the same environment as the original. If a script relied on resume picking up the current directory, check it.
  • Interrupting a parent turn now preserves queued replies from child agents for the next turn. Earlier, an interrupt could be a reason to worry about losing those replies. Now they carry over.

Errors. Provider errors are reported as soon as they arrive in a response stream. The message also identifies which API spend limit was reached, so you know which limit to raise or wait out.

Integrations. App-server clients can select Amazon Bedrock Runtime during setup or sign-in.

Code Mode. Code Mode now uses gRPC for all host connections. The code_mode_host_grpc setting is deprecated, so look for it in your configs and remove it at your convenience.


What to take away

If you work mostly in the terminal. Try Tab on slash command arguments, starting with /mcp lo. If you resume codex exec runs, confirm that the restored sandbox permissions, working directory and workspace roots match what you expect, and pass explicit overrides where they do not.

If you run parallel sessions. Use Shift+Up and Shift+Down in the agent command center to move between task groups, and follow thread links to reach nested agents. You can also interrupt a parent turn without losing queued child replies, which makes steering a running group less risky.

If you administer integrations or company deployments. Review three things:

  • Your MCP servers: find which are optional stdio servers with cached tool lists, and expect them to start on the first call.
  • Your approval setup: decide whether individual connected app tools should get their own reviewer in config.toml.
  • Your configs: remove the deprecated code_mode_host_grpc setting. If you build on app-server clients, note that Amazon Bedrock Runtime can now be selected during setup or sign-in.

Sources: the Codex CLI changelog, version 0.172.0 (November 24, 2026), and the Codex documentation. Details such as the exact configuration keys for the approval reviewer and for optional MCP servers are best confirmed in the documentation, since the changelog entries are brief.

Patrick Zandl trains teams in Claude Code and agentic software development in Prague and writes about what actually works in real-world AI-assisted projects. Follow on LinkedIn

Read next

Get the next one by email

Every Tuesday: what changed in Claude Code, Codex and other coding agents, plus new articles. No spam.