Skip to content

disallow fileparams metadata for custom mcps#19836

Merged
colby-oai merged 4 commits intomainfrom
codex/disallow-fileparams-for-non-connectors
Apr 28, 2026
Merged

disallow fileparams metadata for custom mcps#19836
colby-oai merged 4 commits intomainfrom
codex/disallow-fileparams-for-non-connectors

Conversation

@colby-oai
Copy link
Copy Markdown
Contributor

@colby-oai colby-oai commented Apr 27, 2026

Summary

Disallow fileParams metadata for custom MCPs

Restricts Codex openai/fileParams handling to the first-party codex_apps MCP server. Custom MCP servers may still advertise the metadata, but Codex now ignores it for upload rewriting, preventing non-Apps tools from receiving signed OpenAI file refs for local paths. Added a regression test for the allowed and denied cases.

@colby-oai colby-oai requested a review from a team as a code owner April 27, 2026 17:22
Comment thread codex-rs/core/src/mcp_tool_call.rs
Comment thread codex-rs/core/src/mcp_tool_call.rs
@colby-oai colby-oai merged commit 2f3b5ed into main Apr 28, 2026
25 checks passed
@colby-oai colby-oai deleted the codex/disallow-fileparams-for-non-connectors branch April 28, 2026 00:42
@github-actions github-actions Bot locked and limited conversation to collaborators Apr 28, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants