Skip to content

Lesson 1 of 12 · 3 min read

The Model Context Protocol

Free lessonReviewed By the AIAgentInterviews editorial teamProduct details checked · What changed
Reading position
In this lesson

TL;DR: MCP gives hosts and capability servers a shared integration contract. It does not choose good tools, authorize business actions or prove server trust. Pin the supported protocol revision: the legacy startup exchange shown below is not the lifecycle of every MCP version.

After this lesson, you should be able to describe MCP's roles, primitives and lifecycle, explain what a host gains by using it, list what it leaves to the implementer, and know which details to re-check because the specification moves.

Before you read

Commit to an answer now. The lesson that follows explains it, and having guessed first, even wrongly, makes the explanation easier to remember.

  1. 1A team says 'we exposed our database through an MCP server, so access control is handled by the protocol'. What is wrong with that?

Roles and primitives

  • Host: the application the user works in (an IDE, a chat app, an agent service). It owns the model and the user's consent.
  • Client: a connection the host creates to one server.
  • Server: a program that offers capabilities to clients.

Servers offer three primitives: tools (actions the model can request, with a name, description and input schema), resources (data the host can read and include in context, identified by URIs) and prompts (templates a user can choose). Client features depend on the revision. Elicitation supports obtaining user input through the host; do not assume that a feature described by an older integration guide remains part of the current core.

The legacy exchange

LEGACY MCP, THROUGH 2025-11-25
Legacy initialization before a tool call

Host + client

agent app

MCP server

tickets service

  1. Lifecycle: agree versions and capabilities
  2. Host + client to MCP server

    1initialize
  3. MCP server to Host + client

    2initialize result
  4. Host + client to MCP server

    3initialized
1/3

Agree how to talk

Client and server exchange protocol versions and capabilities before anything else.

Historical handshake for revisions through 2025-11-25. Current revision differences are described below.

Messages are JSON-RPC 2.0. Local servers usually run as subprocesses over stdio; remote servers use an HTTP-based transport (the 2025 specifications replaced the earlier HTTP-plus-SSE transport with a single "Streamable HTTP" endpoint). Remote servers are OAuth resource servers: clients obtain access tokens bound to that server, and servers must not accept or pass through tokens issued for something else.

What MCP leaves to you

Left openWhy it matters
Tool designA server can expose fifty overlapping endpoints; the protocol will carry them all
Per-user authorization inside the serverAuthentication says who connected, not which records they may touch
Which servers to trustA server's descriptions and results reach your model; a malicious or careless one can mislead it
How many tools the model seesConnecting ten servers can mean hundreds of tools; projection is a host decision
Rate limits, quotas, auditOperational controls sit in your host, gateway or server
Long-running work and retriesOptional task support depends on the revision; your durability design still applies

Why use it at all

One integration pattern for many tools and data sources; servers reusable across hosts; a shared vocabulary for capabilities and authorization; and an ecosystem of existing servers. The engineering value is in the standard shape; the engineering work is in everything the shape leaves open.

Re-check before you rely on details

Checked November 2026: revision 2026-07-28 uses self-contained requests carrying version and client metadata, without the legacy initialization handshake. server/discover can supply server capabilities and supported versions. An unsupported version produces an explicit error. Tasks are an opt-in extension, not an assumption about every server.

Checked 24 November 2026: specifications now ship on a six-month cycle (last Tuesday of March and September), and the next revision is targeted for 2027-03-30, with Tier 1 SDK betas about six weeks earlier. Official extensions move through experimental, beta and stable stages: MCP Apps, OAuth Client Credentials and Enterprise-Managed Authorization are stable; Tasks, Skills over MCP, Server Cards and Events are beta. Build on stable extensions freely and on beta ones behind a flag. Our article on MCP at two covers each change.

Read the pinned versioning contract, transport bindings and feature overview before implementing an adapter. Keep legacy and modern conformance fixtures separate. A version mismatch should produce a deliberate compatibility decision, not a guessed request shape.

Say it in 30 seconds

"MCP connects a host to capability servers through versioned messages and transport bindings. Tools, resources and prompts have distinct roles. My host chooses what the model sees; my service checks each user's permissions. I pin the supported revision and test its request lifecycle, including unsupported capabilities. The legacy initialization diagram is useful history, not a universal integration recipe."

Check yourself

Answer aloud or on paper before revealing. Producing the explanation unaided is exactly what a panel listens for.

  1. 1Name MCP's three server primitives and one client-side capability.

  2. 2Why does connecting many MCP servers to one agent raise a design problem the protocol does not solve?

  3. 3Why must an MCP server not accept a token issued for a different service?

Practise it as an interviewer asks it

Course lessons that teach this

Related lessons