Lesson 07.01 · Phase 07 · Model Context Protocol

Why MCP exists

Every agent host wants the same tools, and every tool wants to be in every host. Without a shared protocol that is hosts × services pieces of glue. MCP puts one protocol in the middle so it becomes hosts + services.

Learning objectives

  • Explain the N × M integration problem and why it grows faster than either side.
  • Name MCP's three roles (host, client, server) and its three server primitives (tools, resources, prompts), and who controls each.
  • Build an in-process MCP-shaped server and client and connect three hosts with different tool-call formats to the same servers.
  • Separate what MCP standardises (discovery, invocation, errors) from what it leaves to the host (the model, the prompt, approval UI).

In Phase 2 you wrote tool schemas and a dispatcher (Phase 2 · Lessons 2 and 3), then saw that each provider wants the schema in its own envelope (Phase 2 · Lesson 10). That was one host and a handful of tools you wrote yourself.

Loading the full lesson…