|
Hello Reader, The last couple of weeks have been action-packed for Gen AI! Two specific announcements were at the forefront - MCP (Model Context Protocol) and A2A (Agent To Agent). In today's edition, we will learn the similarities and differences between both, and answer which parts YOU need to know for the job and interviews. MCPMCP is released by Anthropic. Before we understand MCP, let's understand the existing challenges. Let's say you send a prompt to the app, "What's the weather in Tokyo?". The LLM in the app doesn't know about the current weather, hence it invokes an agent that runs some code. This code reaches out to an external weather tool, which sends weather data in JSON to the agent. Agent passes it to the LLM, and the LLM formats the data in nice natural language and sends it to the user. Question is - how does the agent code interact with the weather tool? Via API. And to do that, as shown below, the agentic code, needs to know the API URL, required header information, and payload. This works, but there are some challenges too:
Hence, MCP was born! MCP standardizes the communication between the agentic code and tools (and local datasources, but tool is the most widely used). What does this mean?
Okay, so MCP standardizes the interaction between the Agent and the underlying tools. But what is this new A2A then? Let's find out. A2AMCP handles the communication between the agent and tools (and local datasources). But how about agent-to-agent? Let's look at the diagram below Agent B has the logic to get the stuff done with tools/datasources using MCP, and this part we understood from above. Now, Agent A needs to call Agent B. How does this happen BEFORE A2A was in the picture: Similar to any other API call, Agent A will invoke the API URL of Agent B, and pass AuthN/Z parameters, and a payload. This brings similar challenges as above:
A2A (or Agent2Agent) standardizes the communication between agents. What does this mean? A2A + MCP Flow
In summary, MCP standardizes the connection between LLM Agents and tools, and A2A standardizes the connection between two agents. They work hand in hand because they complement each other and do not compete with each other. This is a pretty detailed subject, and if you want a more detailed explanation with code snippets, check out video below: If you have found this newsletter helpful, and want to support me 🙏: Checkout my bestselling courses on AWS, System Design, Kubernetes, DevOps, and more: Max discounted links AWS SA Bootcamp with Live Classes, Mock Interviews, Hands-On, Resume Improvement and more: https://www.sabootcamp.com/
Keep learning and keep rocking 🚀, Raj |
Free Cloud Interview Guide to crush your next interview. Plus, real-world answers for cloud interviews, and system design from a top AWS Solutions Architect.
Hello Reader, I ran GPT-6 Astra through the exact Solutions Architect interview I used at AWS. Same five rounds, same rubric, same interruptions I give real candidates when they ramble. I wanted to know something specific: not whether it knows AWS, but whether it would pass the bar that actually gets someone an offer. It passed some rounds cleanly. It failed the ones that matter most. Here is exactly where, and why the gap is not something a smarter model fixes. Round one: tell me about...
Hello Reader, I'm growing the team at Cloud With Raj and I'm looking for someone to teach live classes inside our AWS Solutions Architect Bootcamp. This is the program where our students go from stuck in IT to landing $200K+ cloud roles at companies like AWS, JPMorgan, Siemens, Capital One. And you'd be one of the people helping them get there. 🔧 What you'd actually be doing You'd be hosting 2-3 live classes per week covering AWS architecture, system design, GenAI on AWS (Bedrock, RAG,...
Hello Reader, There are three kinds of cloud jobs right now. One of them is being automated as you read this, and most people doing it have no idea. After sitting on the hiring side for over 300 interviews this year, the questions have genuinely changed. Here is exactly which zone your role falls into, and the three moves that get you to green. Red zone: your work can be described as a ticket L1 cloud support: password resets, access requests, known-issue lookups, all run-book driven, all...