mirror of
https://github.com/openai/codex.git
synced 2026-12-03 00:41:03 +00:00
## Why Mixed Code Mode can call MCP tools excluded from both direct and deferred exposure, but the `exec` description omitted their signatures and server instructions. ## What changed Include exec-only tool declarations, shared MCP types, and namespace instructions in the mixed-mode `exec` description. Cap this material at 64,000 bytes and point to `ALL_TOOLS` for declarations that do not fit. Tools exposed directly continue to carry their own declarations. ## Testing Extend integration coverage to verify that both Code Mode variants can call MCP tools excluded from direct and deferred exposure. The mixed-mode case checks that an oversized namespace is omitted from the description, its tools remain callable through `ALL_TOOLS`, and a smaller namespace still shows signatures and server instructions. GitOrigin-RevId: 6ad4e68d85f6b2dfdafb8ccd55755d80651c0b6c