mirror of
https://github.com/openai/codex.git
synced 2026-10-19 17:28:46 +00:00
## Why MCP resource helpers use fixed descriptions and parameter schemas, preventing the model catalog from supplying model-specific guidance. ## What changed Add `model_messages.tools.mcp_resources` entries for `list_mcp_resources`, `list_mcp_resource_templates`, and `read_mcp_resource`. Resolve these entries for the current model when constructing tool specs for direct calls and Code Mode. Descriptions and parameter schemas override independently. Preserve bundled defaults for missing fields and fall back to bundled parameters with a warning when a supplied schema is invalid. MCP resource execution remains unchanged. ## Testing Add unit coverage for independent overrides, literal descriptions, and invalid-schema fallback. Add integration coverage for resource discovery and reading through direct calls and Code Mode, plus assertions that resource tool specs follow model changes between steps. GitOrigin-RevId: 40b5beddb38b2b61c19dc9cd6013d6ba5d756dbc