You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
/mcp: "Loading MCP inventory" takes too long #16244
TUIIssues related to the terminal user interface: text input, menus and dialogs, and terminal displaybugSomething isn't workingmcpIssues related to the use of model context protocol (MCP) servers
What terminal emulator and version are you using (if applicable)?
Superset
What issue are you seeing?
Running /mcp takes a long time to respond. While it is loading, Codex shows: Loading MCP inventory
The message stays visible long enough that the command feels stuck or unusually slow.
What steps can reproduce the bug?
Open Codex in a workspace with MCP configured.
Run /mcp.
Observe the delay before the command becomes usable.
During the delay, Codex shows Loading MCP inventory.
What is the expected behavior?
/mcp should load much faster, or provide better progress feedback if inventory loading is expected to take noticeable time.
How long of a delay do you see? How many MCP servers do you have installed?
Do you suspect this is a regression? Does the same delay occur if you downgrade to 0.116.0?
I measured this more carefully:
Environment:
codex-cli 0.117.0
macOS 15.7.1
6 MCP servers
What I found:
The non-interactive CLI path is fast: codex mcp list returns in ~60-90ms locally.
The slowdown seems specific to the TUI /mcp inventory path, not basic MCP config parsing.
From the current session logs in ~/.codex/log/codex-tui.log:
around 2026-03-30T17:09:53.666Z / 17:09:54.687Z, MCP servers report ready
at 17:09:54.721Z - 17:09:54.722Z, Codex starts probing MCP inventory
at 17:09:56.728Z, MCP process-group cleanup is logged
So for the current run, the /mcp inventory phase appears to take roughly 2.0s from the resource/template probing to cleanup, and about 3.0s end-to-end from first server-ready signal to cleanup.
This also looks like a regression relative to older logs on the same machine:
March 25, 2026: op.dispatch.list_mcp_tools closed with time.idle=489ms
March 26, 2026: op.dispatch.list_mcp_tools closed with time.idle=472ms
TUIIssues related to the terminal user interface: text input, menus and dialogs, and terminal displaybugSomething isn't workingmcpIssues related to the use of model context protocol (MCP) servers
Activity
github-actions commentedon Mar 30, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
etraut-openai commentedon Mar 30, 2026
How long of a delay do you see? How many MCP servers do you have installed?
Do you suspect this is a regression? Does the same delay occur if you downgrade to 0.116.0?
omermosko4 commentedon Mar 30, 2026
I measured this more carefully:
Environment:
What I found:
codex mcp listreturns in ~60-90ms locally./mcpinventory path, not basic MCP config parsing.From the current session logs in
~/.codex/log/codex-tui.log:2026-03-30T17:09:53.666Z/17:09:54.687Z, MCP servers report ready17:09:54.721Z-17:09:54.722Z, Codex starts probing MCP inventory17:09:56.728Z, MCP process-group cleanup is loggedSo for the current run, the
/mcpinventory phase appears to take roughly 2.0s from the resource/template probing to cleanup, and about 3.0s end-to-end from first server-ready signal to cleanup.This also looks like a regression relative to older logs on the same machine:
op.dispatch.list_mcp_toolsclosed withtime.idle=489msop.dispatch.list_mcp_toolsclosed withtime.idle=472msSpeed up /mcp inventory listing (#16831)
etraut-openai commentedon Apr 6, 2026
Thanks for the bug report. This will be addressed in the next release.
Speed up /mcp inventory listing (openai#16831)
14 remaining items
Speed up /mcp inventory listing (openai#16831)
Speed up /mcp inventory listing (openai#16831)