Building AI Agents on Google Cloud with MCP, ADK, and A2A
Google for DevelopersDecember 2, 202514 min23,612 views
31 connectionsΒ·40 entities in this videoβCore AI Agent Development Concepts
- π‘ MCP (Model Context Protocol) acts as a reverse proxy or API server, standardizing how AI models connect to necessary resources, prompts, and tools.
- π§© ADK (Agent Development Kit) provides a framework for building and deploying agents, aiming to make complex agent creation feel like standard software development.
- π€ A2A (Agent2Agent Protocol) offers a common language for agents to communicate and collaborate, regardless of their origin or framework.
Setting Up Your Google Cloud Environment
- βοΈ Google Cloud Project setup is required with billing enabled, and all work will be conducted within CloudShell.
- π οΈ Essential APIs for Cloud Run, Cloud Build, Artifact Registry, and Vertex AI must be enabled.
- π Ensure Python 3.10 or newer is available, and clone the project's repository from GitHub.
Building and Deploying the MCP Server
- π° A currency exchange rate tool is built using the FastMCP Python package.
- π The MCP server is initially run locally and then deployed to Cloud Run for scalability and security, using a no-allow-unauthenticated flag.
- π A Cloud Run proxy is used to create a secure, authenticated tunnel for testing the deployed server.
Creating and Exposing the AI Agent
- π― The ADK is used to build the AI agent, defined by a system instruction and an MCP toolset that connects to the deployed server.
- π A simple web interface for the ADK agent is started, allowing interaction via a web preview.
- π£οΈ The agent is exposed via A2A, which standardizes agent collaboration using an agent card advertising its skills.
Testing and Cleanup
- π§ͺ An A2A server is launched, and its functionality is tested using the A2A Python SDK's client class.
- β Successful A2A communication confirms that other programs and agents can interact with the currency agent.
- ποΈ Resource cleanup is crucial, with the recommendation to delete the Google Cloud project used for the tutorial to avoid future charges.
Knowledge graph40 entities Β· 31 connections
How they connect
An interactive map of every person, idea, and reference from this conversation. Hover to trace connections, click to explore.
Hover Β· drag to explore
40 entities
Chapters6 moments
Key Moments
Transcript53 segments
Full Transcript
Topics13 themes
Whatβs Discussed
AI AgentsGoogle CloudModel Context Protocol (MCP)Agent Development Kit (ADK)Agent2Agent Protocol (A2A)Cloud RunVertex AIAPI ServerCloudShellPythonAgent CardAI CollaborationCurrency Exchange Rates
Smart Objects40 Β· 31 links
ConceptsΒ· 19
ProductsΒ· 18
PeopleΒ· 2
CompanyΒ· 1