Topic 2: Messages and lifecycle
24 min read·22 Sept 2026
Requests, responses, and notifications
MCP messages are JSON-RPC 2.0 messages. There are three shapes:
- A request has an
id, amethod, and usuallyparams. It expects exactly one answer. In 2026-07-28 the id must be a string or an integer, nevernull, and must not repeat an id the sender still has in flight. - A response carries the same
idback, with either aresult(success) or anerror(failure), never both. Every 2026-07-28 result also carriesresultType, which is"complete"for ordinary results.