codex/codex-rs/rmcp-client/tests
riley-oai c6a59ef923 Support native verification in MCP tool continuations (#44346)
## Why

RMCP's standard input request union excludes custom methods, so tool continuations need explicit handling for OpenAI form elicitation and native user verification.

## What changed

- Route MCP `2026-07-28` tool inputs through the existing client service, preserving capability checks and verification response validation.
- Support `openai/elicitation/create` form and `openai/userVerification` inputs alongside standard MCP inputs, and return responses with the server's opaque `requestState`.
- Bound continuation rounds, back off for state-only responses, and reject unsupported or malformed inputs.
- Give concurrent verification prompts distinct cancellation ownership and release pending prompts and timeout pauses when the connection closes.
- Prevent session recovery from restarting a tool after submitting a verification proof while preserving authentication challenges.

## Testing

Add HTTP continuation tests covering mixed input types, proof validation, request metadata preservation, invalid requests, round limits, authentication challenges, session expiry after proof submission, and independent prompt cancellation. Add duplex transport tests for pending-input cleanup on cancellation and transport closure.

GitOrigin-RevId: b7db6d47fa0969b6a938220dfe3610e5ba5188b2
History 2026-09-10 00:14:43 +00:00
..
mcp_2026_mrtr Support native verification in MCP tool continuations (#44346) 2026-09-10 00:14:43 +00:00
foreign_stdio_cwd.rs mcp: accept foreign absolute cwd for remote stdio (#29493) 2026-06-23 01:33:51 +00:00
mcp_2026_discovery.rs Update rmcp to 3.1.3 (#39798) 2026-08-20 20:53:17 +00:00
mcp_2026_message_limits.rs Complete MCP 2026 client support (#35725) 2026-07-28 06:06:58 +00:00
mcp_2026_mrtr.rs Support native verification in MCP tool continuations (#44346) 2026-09-10 00:14:43 +00:00
mcp_2026_oauth_discovery.rs Harden MCP OAuth callback handling (#40691) 2026-08-25 20:26:23 +00:00
mcp_2026_sse_discovery.rs Add MCP 2026-07-28 discovery support (#35724) 2026-07-28 05:52:12 +00:00
mcp_2026_stdio.rs Fix relative MCP server spawning on macOS (#42117) 2026-09-01 18:53:06 +00:00
mcp_2026_stdio_discovery.rs Propagate custom CA settings to local MCP servers (#38040) 2026-08-11 17:24:04 +00:00
mcp_events.rs Add MCP event discovery and subscriptions (#37494) 2026-08-07 19:36:52 +00:00
process_group_cleanup.rs Fix relative MCP server spawning on macOS (#42117) 2026-09-01 18:53:06 +00:00
resources.rs Improve sandboxing, MCP errors, and cached approvals (#41196) 2026-08-27 20:05:08 +00:00
stdio_message_limits.rs Harden local MCP server process tree cleanup (#37366) 2026-08-07 03:34:49 +00:00
stdio_stderr_cleanup.rs Close MCP stderr readers on client teardown (#43870) 2026-09-08 17:42:14 +00:00
streamable_http_oauth_startup.rs Preserve MCP authentication challenges on tool calls (#42552) 2026-09-03 15:12:02 +00:00
streamable_http_oauth_store_pinning.rs Enable coordinated MCP OAuth refresh (#42413) 2026-09-03 02:00:12 +00:00
streamable_http_oauth_tool_call.rs Surface MCP reconnect signals when expired OAuth tokens cannot refresh (#43947) 2026-09-09 00:03:41 +00:00
streamable_http_recovery.rs Preserve MCP authentication challenges on tool calls (#42552) 2026-09-03 15:12:02 +00:00
streamable_http_remote.rs Cache executor metadata from initialization (#40343) 2026-08-24 06:43:07 +00:00
streamable_http_test_support.rs Avoid port races in streamable HTTP tests (#42767) 2026-09-04 13:35:41 +00:00
streamable_http_user_agent.rs Set a default user agent for MCP HTTP requests (#34883) 2026-07-23 06:13:12 +00:00