MRTR (multi-round-trip requests) #2898
Copy link
Copy link
Closed
Labels
spec-2026-07-28Concerns the SDK's implementation of the 2026-07-28 MCP spec revisionConcerns the SDK's implementation of the 2026-07-28 MCP spec revisionv2Affects the v2 line (2.x on main)Affects the v2 line (2.x on main)
Milestone
Description
Tracks: #2797
Server returns input_required, accepts inputResponses + requestState on retry, validates them; the client-loop helper for the high-level Client to consume.
What's in it
- Server: return
input_required, acceptinputResponses/requestStateon retry, validate them. requestStateintegrity — treat as untrusted input; verify integrity and reject on failure (spec MUST). Mechanism (HMAC, signature, etc.) is implementer's choice.- Client-loop helper (call → input_required → fulfil via callbacks → retry; bounded; opt-out) — wired in by New Client (all-versions, low-level + high-level) #2894.
Conformance
- The 12
input-required-result-*server scenarios input-required-result-result-type- Together with New Client (all-versions, low-level + high-level) #2894:
sep-2322-client-request-state
Dependencies
- Depends on: Backwards compatibility & version negotiation #2892
- Depends on: Context object (layered, per-request) #2895
References
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
spec-2026-07-28Concerns the SDK's implementation of the 2026-07-28 MCP spec revisionConcerns the SDK's implementation of the 2026-07-28 MCP spec revisionv2Affects the v2 line (2.x on main)Affects the v2 line (2.x on main)
Activity
maxisbey commentedon Jul 1, 2026
Shipped in v2.0.0b1:
input_requiredresults,inputResponses/requestStatevalidation on retry, the bounded client auto-resolve loop, and requestState integrity beyond the spec's MUST — sealed (authenticated encryption) by default on MCPServer (#3032). All 12input-required-result-*scenarios,input-required-result-result-type, andsep-2322-client-request-statepass.AI Disclaimer