Skip to main content
Alan’s server is partway through fulfilling a delayed shipment when it needs human input: Which customer reference should this record use? The MCP (Model Context Protocol) core rule remains: servers do not initiate requests — clients ask and servers respond. Earlier drafts allowed server-initiated requests, but that capability has been removed. MCP provides a clear pattern for a server to “ask” for input while still following the request/response model. Summary: the server encodes its question inside a successful response, the client prompts the user, and then the client resubmits the original request with the user-provided answers attached.

MCP exchange types

Every MCP exchange fits one of three patterns:

Server-elicited input: how it works

Previously, servers could send requests to clients to elicit input; that feature is removed. Instead, when a server needs input it returns a normal response, but sets resultType to input_required and includes an inputRequests array describing what it needs. Example server response encoding a question:
The client reads inputRequests, prompts the user (Alan), and then reissues the original call as a new client request. Importantly, the client does not send a separate reply message back to the server; instead it resubmits the same operation as a fresh request and includes the user’s answers in an inputResponses array. Warning: when resubmitting, the client must use a new request id. This separation preserves audit trails and authorization checks.
Always resubmit server-elicited inputs as a new client request using a new id, and include user answers in inputResponses. Do not attempt to send a separate synchronous reply message to the original server response.
Example client resubmission with inputResponses:
Note: only these requests may appear inside an inputRequests list:
  • elicitation/create — for human questions (primary path),
  • sampling/createMessage — sampling-related (removed in current protocol),
  • roots/list — root listing (removed in current protocol).
If you need to implement input elicitation today, elicitation/create is the supported mechanism.

Pagination for long results

When any inputRequests call (or other server responses) returns many items, responses are paginated. The server returns an items array and may include a nextCursor string. Clients must treat nextCursor as an opaque token — do not parse, decode, or modify it. When requesting the next page, return the token exactly as received. Example:
If nextCursor is omitted (or an empty response), you have reached the last page.
Treat nextCursor as an opaque token: never parse or alter it. Use the exact value when requesting the next page.

Subscriptions and change notifications

A previously separate HTTP GET subscription channel (resources/subscribe) has been replaced by a single long-lived method: subscriptions/listen. This is a long-lived POST that behaves like a stream and covers:
  • tool-change notifications,
  • prompt/elicitation changes,
  • resource change events,
  • resource subscriptions.
To create a listen stream:
The server acknowledges the listen stream and returns a subscriptionId for later cancellation.
A diagram titled "Listening for Changes" showing a laptop Host with a chat window, a central Model chip icon, and an MCP Server rack with a file labeled v2 and a database. Dashed and curved lines indicate an HTTP GET request and an envelope notification, with a progress bar at 100%.

Error handling: protocol vs execution

MCP separates errors into two layers:
  1. Protocol errors — issues with the message itself (bad JSON, invalid request, unknown method, wrong parameters). These are JSON-RPC errors and are returned as JSON-RPC error objects. The model does not receive these.
  2. Execution errors — the request was valid but failed during execution (e.g., warehouse offline, tool invalid). These are returned as successful responses that include "isError": true and their content is visible to the model.
Common JSON-RPC protocol error codes: Example of an execution error (visible to the model):
Invalid tools (calling a non-existent or unauthorized tool) are treated as execution errors, not protocol errors. MCP also reserves codes in the -32020 through -32099 range for additional protocol-level conditions. Two codes worth remembering:
  • -32020 — header mismatch
  • -32022 — unsupported protocol version
Compatibility note: legacy servers sometimes returned “resource not found” as -32002. The new canonical code is -32602 (same as “Invalid params”). Implementations should accept both the legacy and the new code to remain compatible.
An infographic titled "Five JSON-RPC Error Codes" showing a host, model, and MCP server workflow with a highlighted missing parameter (shipment_id?). It lists the five error codes and meanings: -32700 Parse error, -32600 Invalid request, -32601 Method not found, -32602 Invalid params, and -32603 Internal error.

Streaming behavior changes

Streams are no longer resumable. Previously, a client could reconnect and resume a broken stream using Last-Event-ID; that mechanism has been removed. If a stream is interrupted now, the client must reissue the full request under a new request id.
An infographic titled "Streams Don't Resume" showing a laptop host with a chat UI connected to a model chip and an MCP server with a database and progress bar. It also shows received event tiles (1–3) and a highlighted "Last-Event-ID: 3" badge.

Quick reference tables

Allowed inputRequests methods

Error codes summary

Treat nextCursor as an opaque token (do not parse or modify it), always resubmit server-elicited inputs as a new client request ID with inputResponses, and reissue streams from scratch if a connection drops.

Watch Video