Phase 10 · Agentic AI/
Lesson 10.7core2 h 45 min

MCP and interoperability (plus Agent Skills and A2A)

Hosts, clients, servers; tools, resources, prompts; code execution; skills; agent-to-agent

Before late 2024, every application re-implemented every integration for every model — an N×MN \times M problem. The Model Context Protocol standardized how models reach tools and data, and within a year it was supported across the major vendors and thousands of servers. Agent Skills standardized how procedural knowledge is packaged, and A2A how agents from different teams talk. Knowing these protocols is now as basic as knowing HTTP was for web developers — and each one brings a security surface you must understand (10.10 Agent safety and security).

You'll be able to

  • Explain MCP's host/client/server architecture, transports and the tools/resources/prompts primitives
  • Write a minimal MCP server and connect it to a client, and describe tool search and code execution with MCP
  • Describe Agent Skills as portable procedural memory and A2A as an agent-to-agent protocol
  • Enumerate the security risks of third-party servers and skills and the mitigations

Key ideas

  1. MCP (Nov 2024) solves the N×M integration problem with a host/client/server architecture over JSON-RPC 2.0, using stdio or Streamable HTTP transports.
  2. Server primitives: tools (model-controlled), resources (application-controlled data), prompts (user-controlled templates); client primitives: sampling, roots, elicitation.
  3. MCP tools are function calling with a protocol around it: hosts aggregate tool definitions from servers and route calls back.
Show 4 more key ideas
  1. With many servers, use tool search/deferred loading and code execution with MCP so intermediate data stays out of the context.
  2. Connecting a server is installing software: beware tool-description poisoning, rug pulls and shadowing; pin, scope, confirm, log.
  3. Agent Skills package procedural knowledge (SKILL.md + scripts) with progressive disclosure — portable procedural memory.
  4. A2A connects agents to agents via Agent Cards, tasks, messages/parts and artifacts; MCP connects agents to tools and context.

Suggested path through this lesson