Joey's Business World

AI and software

Agent2Agent, ADK & MCP Masterclass | A2A Zero to Hero

Latest 2026 A2A Master Course: Connect agents to tools and each other with MCP, ADK, and A2A — then deploy to Cloud Run

8 lessons · 3 h 40 min · Intermediate · English

Get the course on Udemy

(voice overs) Most agent tutorials stop at a single model call wrapped in a prompt. This course starts where those stop: how agents actually get hands (MCP), how you build and evaluate them (Google's Agent Development Kit), and how separate agents — possibly on different frameworks — find each other, delegate tasks, and stream results back (A2A). You will see exactly where each protocol fits and where teams get it wrong.

By the end you will have built a working multi-agent MVP: an orchestrator host that discovers two specialist agents via their Agent Cards, delegates tasks over JSON-RPC, handles streamed updates and artifacts, and survives errors, retries, and timeouts. You will containerize it, deploy it to Cloud Run, add logging, and test the deployed system end to end.

The course is taught CLI-first and source-first. Every protocol claim is tied to official documentation rather than blog folklore, and each lesson ends with the pitfalls that trip up first-time integrators — MCP consent and credential scoping, A2A identity verification and resubscription, ADK session and state handling. Slides are paired with a step-by-step build so the concepts land in code you keep.

You need working Python and basic API familiarity. You do not need prior experience with MCP, ADK, or A2A — the first lesson builds the mental model the rest of the course runs on.

## Frequently asked questions

**What is the difference between MCP and A2A?**

MCP is agent-to-tool and A2A is agent-to-agent, a contrast drawn explicitly in Lesson 5. Lesson 2 covers MCP's host, client, and server architecture, while Lesson 4 covers A2A's client agent and remote agent roles.

**What is an Agent Card in A2A?**

An Agent Card is how a client agent discovers a remote agent, covered in Lesson 4 with a full anatomy breakdown. In Lesson 7 you author Agent Cards in build steps 4 and 6 before discovering remote agents.

**Do I need prior experience with MCP, ADK, or A2A?**

No prior experience with MCP, ADK, or A2A is required; you need working Python and basic API familiarity. Lesson 1 (33:21, 16 slides) builds the mental model the rest of the course runs on.

**What is Google's Agent Development Kit used for?**

ADK is the engine for building agents, covered end to end in Lesson 3 (39:19, 19 slides) from installation through instructions, function tools, sessions, and guardrails. You also compose multi-agent systems with sub-agents and workflow agents and inspect them in the Dev UI.

**How do agents stream results and handle long-running tasks in A2A?**

A2A streams with Server-Sent Events and uses push notifications for long tasks, covered in Lesson 4. Lesson 7 build step 8 handles streamed updates and step 10 adds errors, retries, and timeouts.

What you will learn

  • Explain the agent loop and choose between single agents, sub-agents, and workflow agents
  • Wire an MCP server into an ADK agent and decide between MCP and custom function tools
  • Build ADK agents with instructions, function tools, sessions, state, callbacks, and guardrails
  • Publish and discover Agent Cards and delegate tasks over A2A using JSON-RPC and SSE
  • Secure agent-to-agent traffic with authentication schemes and identity verification
  • Containerize a multi-agent system and deploy it to Google Cloud Run
  • Debug A2A integrations with an inspector and handle errors, retries, and timeouts
  • Evaluate and test agents locally with the ADK Dev UI before shipping

What is in the course

8 lessons, 3 h 40 min in total. Open a lesson to see what it covers.

Agent Foundations, Models to Multi-Agent Systems

  • 1Agent Foundations33 min
    • Builds the mental model for the whole course: single-shot model calls and their limits, the perceive-reason-act loop, tools, and why multiple agents exist. Ends with collaboration patterns, the interoperability problem, and a CLI-first development workflow.
    • In this lesson:
    • Course Overview & Roadmap
    • Who This Course Is For
    • The Three Pillars: ADK, A2A, MCP
    • Learning Outcomes
    • Ground Rules: Official Sources Only
    • Mental Model: The Agent Stack at a Glance
    • Single-Shot Model Calls and Their Limits
    • What Is an AI Agent?
    • The Agent Loop: Perceive, Reason, Act
    • Tools: Giving Agents Hands
    • Why Multiple Agents?
    • Collaboration Patterns: Hierarchical, Peer, Sequential
    • The Interoperability Problem
    • Vibe Coding: CLI-First Development
    • Anatomy of a Modern AI CLI Workflow
    • From Prototype to Production

MCP in Depth, Connecting Agents to Tools and Data

  • 2MCP in Depth, Connecting Agents to Tools and Data20 min
    • Opens up the Model Context Protocol: host, client, and server architecture; tools, resources, and prompts; stdio and Streamable HTTP transports. You wire an MCP server into an ADK agent and weigh MCP against custom function tools, with security, consent, and common pitfalls covered.
    • In this lesson:
    • MCP: The Problem It Solves
    • MCP Architecture: Host, Client, Server
    • MCP Primitives: Tools, Resources, Prompts
    • MCP Transports: stdio and Streamable HTTP
    • Wiring an MCP Server into an ADK Agent
    • MCP vs. Custom Function Tools
    • MCP Security and User Consent
    • The MCP Ecosystem
    • Common MCP Pitfalls
    • MCP Recap

ADK in Depth, Building Agents with the Agent Development Kit

  • 3ADK in Depth, Building Agents with the Agent Development Kit39 min
    • Covers the Agent Development Kit end to end: installation, agent taxonomy, your first agent, instructions, function tools, sessions, state, memory, artifacts, callbacks, and guardrails. You compose multi-agent systems with sub-agents and workflow agents, then evaluate, inspect in the Dev UI, and choose a deployment target.
    • In this lesson:
    • ADK: What It Is and Why It Exists
    • ADK Languages and Installation
    • Agent Taxonomy in ADK
    • Your First Agent: Minimal Code
    • Instructions and Model Configuration
    • Function Tools in ADK
    • Sessions: Keeping Conversation Context
    • State, Memory, and Artifacts
    • Callbacks and Guardrails
    • Multi-Agent Composition with Sub-Agents
    • Workflow Agents: Sequential, Parallel, Loop
    • Transfer and Delegation Semantics
    • Planners and Code Execution
    • Streaming Responses
    • The Dev UI: Inspecting Agents Locally
    • Evaluating and Testing Agents
    • Deployment Targets
    • ADK Project Structure Best Practices
    • ADK Recap

A2A in Depth, Agent Cards, Tasks, Streaming and Security

  • 4A2A in Depth, Agent Cards, Tasks, Streaming and Security38 min
    • Explains agent-to-agent communication: design principles, client and remote agents, the Agent Card and discovery, JSON-RPC over HTTPS, SSE streaming, and push notifications. You work through the task lifecycle, messages, parts, artifacts, authentication, identity verification, and long-running task resubscription.
    • In this lesson:
    • A2A: Why Cross-Framework Communication Matters
    • A2A Design Principles
    • A2A Core Concepts: Client Agent and Remote Agent
    • The Agent Card
    • Anatomy of an Agent Card
    • Discovery: How a Client Finds an Agent
    • Transport: JSON-RPC 2.0 over HTTPS
    • Streaming with Server-Sent Events
    • Push Notifications for Long Tasks
    • Task Lifecycle and States
    • Messages, Parts, and Artifacts
    • Authentication and Authorization
    • Security Schemes in the Agent Card
    • Verifying Agent Identity
    • Dynamic Task Delegation
    • Long-Running Tasks and Resubscription
    • Error Handling and Error Codes

A2A in Practice, Versus MCP and ADK, Registries and Pitfalls

  • 5A2A in Practice, Versus MCP and ADK, Registries and Pitfalls19 min
    • Draws the key contrasts — A2A versus MCP as agent-to-agent versus agent-to-tool, and A2A versus ADK as protocol versus engine. You see cross-framework interoperability in practice, agent registries, debugging with an A2A inspector, versioning, and the recurring A2A pitfalls.
    • In this lesson:
    • A2A vs. MCP: Agent-to-Agent vs. Agent-to-Tool
    • A2A vs. ADK: Protocol vs. Engine
    • Cross-Framework Interoperability in Practice
    • A2A and Agent Registries
    • Debugging with an A2A Inspector
    • Versioning and Compatibility
    • Common A2A Pitfalls
    • A2A Recap

Environment and Deployment Setup

  • 6Environment and Deployment Setup23 min
    • Gets your workbench ready: Python and uv, gcloud authentication, API keys and environment variables, httpx and FastAPI, and a locked-in repository layout. You run an agent locally, containerize it, deploy to Cloud Run, and get a troubleshooting checklist.
    • In this lesson:
    • Prerequisites Checklist
    • Python and uv Environment Setup
    • Google Cloud Authentication with gcloud
    • API Keys and Environment Variables
    • Local Dependencies: httpx and FastAPI
    • Local Repository Layout
    • Running Agents Locally
    • Containerizing the Agent
    • Deploying to Cloud Run
    • Environment Troubleshooting

Build the Multi-Agent MVP, Step by Step

  • 7Build the Multi-Agent MVP, Step by Step29 min
    • The payoff build: a host orchestrator plus two specialist agents, assembled in ten steps. You author Agent Cards, expose the A2A endpoint, discover remote agents, delegate the first task, handle streamed updates, pass artifacts, and add errors, retries, and timeouts.
    • In this lesson:
    • MVP Overview: The Orchestrator and Its Specialists
    • MVP Architecture Diagram
    • Build Step 1: The Host Orchestrator
    • Build Step 2: The First Specialist Agent
    • Build Step 3: The Second Specialist Agent
    • Build Step 4: Authoring the Agent Cards
    • Build Step 5: Exposing the A2A Endpoint
    • Build Step 6: Discovering Remote Agents
    • Build Step 7: Delegating the First Task
    • Build Step 8: Handling Streamed Updates
    • Build Step 9: Passing Artifacts Between Agents
    • Build Step 10: Errors, Retries, and Timeouts

Run, Deploy, Extend and What Comes Next

  • 8Run, Deploy, Extend and What Comes Next19 min
    • Runs the full flow end to end, adds observability and logging, deploys the multi-agent system, and tests it in the cloud. Closes with extension ideas, an architecture decision cheat sheet, official resources, and capstone suggestions.
    • In this lesson:
    • Running the Full Flow End to End
    • Observability and Logging
    • Deploying the Multi-Agent System
    • Testing the Deployed System
    • Extending the MVP
    • Architecture Decision Cheat Sheet
    • Official Resources
    • Next Steps and Capstone Ideas

Agent2Agent, ADK & MCP Masterclass | A2A Zero to Hero

8 lessons · 3 h 40 min

Get the course on Udemy

Sold and hosted on Udemy, with Udemy's 30-day refund policy.

This course contains the use of artificial intelligence.