Chapter 10. Implementing MCP-Enabled Agents and Tool Servers
In Chapter 9, we established the theoretical foundation of the MCP, a universal standard that decouples the intelligence of an agent from the tools and data it uses. We explored the architecture of Hosts, Clients, and Servers, and we discussed the primitives like Tools, Resources, and Prompts.
Now, it is time to stop talking about the protocol and start building with it.
In this chapter, we will move from architecture diagrams to running code. We are going to build a complete, end-to-end MCP system. We will see exactly how an agent built with the Google Agent Development Kit (ADK) reaches out, shakes hands with an external process, and acquires new capabilities dynamically at runtime.
The Scenario: The Financial Analyst
To demonstrate the power of this architecture, we will build a Financial Analyst Agent.
If we were building this the “old way” (as discussed in previous chapters), we would likely import a finance library directly ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access