Back to study console

MCP cheat sheet 2026-07-28

Personal study aid. Spec pin: modelcontextprotocol.io/specification/2026-07-28

Roles

Host = AI app (consent + orchestration). Client = one connector, 1:1 with one server. Server = tools / resources / prompts. Servers must not see the full multi-server conversation.

Every request _meta

KeyWhoPurpose
protocolVersionClient2026-07-28
clientCapabilitiesClientelicitation, extensions, …
clientInfoClient SHOULDname + version
serverInfoServer SHOULDon results
logLevelClient opt.replaces logging/setLevel

Keys live under io.modelcontextprotocol/… in _meta.

Core RPCs

SideMethodNotes
MUSTserver/discoverversions, capabilities, identity
Servertools/list|callstable list order SHOULD
Serverresources/list|read+ templates
Serverprompts/list|gettemplated workflows
Eithersubscriptions/listenchange stream
PatternMRTRinput_required then retry

resultType

completeDone. Older omit ⇒ treat as complete.
input_requiredCollect inputRequests, echo requestState, retry with a new JSON-RPC id.

Transports

stdioLocal process, one client
Streamable HTTPRemote POST. No session id. No Last-Event-ID resume.

Security

  1. Consent before tool calls and data exposure.
  2. Treat tool annotations as untrusted unless you trust the server.
  3. Integrity-protect requestState if it affects auth (HMAC/AEAD).
  4. Validate iss when present. Prefer Client ID Metadata Documents over DCR.
  5. Host keeps history. Servers stay isolated.

2026-07-28 breaks (vs 2025-11-25)

  • No initialize / notifications/initialized. No Mcp-Session-Id.
  • server/discover is required. Every request carries version + capabilities in _meta.
  • MRTR replaces server-initiated requests. subscriptions/listen replaces old subscribe/GET notify.
  • Tasks left core → extension io.modelcontextprotocol/tasks.
  • Deprecated: Roots, Sampling, Logging, HTTP+SSE. Broken streams ⇒ re-issue with a new id.

Extensions (opt-in)

  • io.modelcontextprotocol/tasks
  • MCP Apps / UI
  • Auth extensions (client credentials, enterprise-managed)

First Inspector sequence

  1. server/discover
  2. list tools/resources/prompts
  3. one read-only call
  4. optional subscriptions/listen