Codex cli does not proactively call MCP server unless explicitly prompted

Open 💬 1 comment Opened Jul 19, 2026 by zsxlkn

What version of Codex CLI is running?

codex-cli 0.144.5

What subscription do you have?

Codex cli does not proactively call MCP server

Which model were you using?

gpt-5.6

What platform is your computer?

_No response_

What terminal emulator and version are you using (if applicable)?

PowerShell

Codex doctor report

What issue are you seeing?

"I started learning to use Codex yesterday, but I found that even though Context7 and MCP are all set up, Codex keeps searching the web over and over and won't proactively call the MCP server. It only calls codex.list_mcp_resources when I explicitly prompt it to. Claude Code, on the other hand, always gets it right on the first try and calls MCP immediately."

<img width="1670" height="604" alt="Image" src="https://github.com/user-attachments/assets/f65c556b-9644-4144-a49a-73a09abf111e" />

<img width="1914" height="908" alt="Image" src="https://github.com/user-attachments/assets/41ca3d3f-8d01-47e4-83db-6ee00312cf14" />

<img width="1230" height="781" alt="Image" src="https://github.com/user-attachments/assets/725c2639-8a1b-4835-a9b3-5ba649419b12" />

What steps can reproduce the bug?

prompt:请你查询最新的torch的torch.nn.modules.activation.MultiheadAttention函数的参数

What is the expected behavior?

_No response_

Additional information

_No response_

View original on GitHub ↗

This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗