How does the round-trip loop work?
The client calls a tool. If the MCP server is missing something, a user confirmation, a model completion, a choice, it returns a result typed input_required, carrying the input requests and a requestState token, as the 2026-07-28 specification changelog describes it (read 19 November 2026). The client gathers the answers, calls the same tool again with them and the untouched token, and the server resumes from where it stopped. Each exchange is a complete, self-contained request, repeated until a normal result arrives. The retry carries the answers in inputResponses. Caps are an SDK matter, not a spec rule. In the TypeScript SDK the client driver follows up to inputRequired.maxRounds rounds, default 10, and the shim for 2025-era connections uses a tighter default of 8 because it holds a live request open for the whole flow (TypeScript SDK migration guide, read 19 November 2026), so a looping server fails loudly instead of forever.
Why did MCP move to this pattern?
Because the old mechanism made servers stateful. A server issuing sampling or elicitation requests mid-call needed the session to stay pinned to the same instance, which breaks behind ordinary load balancers and serverless platforms. With state carried in the token, any instance can pick up the next round. The pattern is what lets an MCP server scale like a normal web service, and it arrived in the 2026-07-28 revision together with the removal of protocol sessions and the Mcp-Session-Id header (changelog, read 19 November 2026).
What do builders have to handle on the client side?
Three things. Fulfilling each named input, which may mean prompting a user or running a model call; returning the state token byte-for-byte, since it is opaque to the client and untrusted by the server, which should sign it (the TypeScript SDK offers createRequestStateCodec for this); and bounding the loop, both in rounds and in what the user is asked, so a misbehaving server cannot farm approvals. The loop also interacts with tool calling UX: each round can surface as a pause in the run, like an agent session waiting on an approval gate.
How do we migrate our own servers to multi round-trip requests?
In our post on migrating an MCP server to the stateless spec, the “confirm before sending” step becomes two calls instead of one suspended call. Nothing stays open while a person decides, so a deploy in the middle of the wait costs nothing, but the tool body must be written to run twice from the top, which makes idempotency the price of the pattern. We wrote that migration as a plan, not as a report of one we ran. Our own krs-mcp server runs over stdio and holds no session, so it has no state to move. Its npm package depends on the 1.x TypeScript SDK, so what it needs is the step of serving both protocol eras, and a server with no state is the cheap case.
When would a server use this instead of just failing?
Whenever the missing piece is legitimately the client’s to provide: a human confirmation before a destructive step, a credential choice, or a completion from the client’s model. Returning input_required is the protocol’s way of saying ask your user, without the server ever holding the conversation open.