Use the 2025-06-18 elicitation capability shape#20562
Draft
abhinav-oai wants to merge 1 commit intomainfrom
Draft
Use the 2025-06-18 elicitation capability shape#20562abhinav-oai wants to merge 1 commit intomainfrom
abhinav-oai wants to merge 1 commit intomainfrom
Conversation
Collaborator
|
Can we make sure to test elicitations from connectors and custom MCPs and make sure they don't regress? For context they are supported it's just we don't advertise the mcp version as 2025-11-25 |
Bojun-Vvibe
added a commit
to Bojun-Vvibe/oss-contributions
that referenced
this pull request
May 1, 2026
…merge-after-nits, openai/codex#20562 merge-as-is
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
Codex currently negotiates MCP
2025-06-18, where the client elicitation capability is represented as an empty object. We were still serializingcapabilities.elicitation.form, which belongs to the later capability shape and can cause strict2025-06-18servers to rejectinitializewith an unrecognized-field error.This keeps the handshake aligned with the protocol version Codex actually negotiates and fixes the compatibility regression tracked in #17492.
What
elicitation: {}for2025-06-18.Verification
cargo test -p codex-mcpNext steps
tool_call_mcp_elicitation=falseshould also suppress capability advertisement duringinitialize.form/urlcapability advertisement when Codex is ready to negotiate MCP2025-11-25, which defines that newer shape.