Chapter 4. Model Context Protocol
Now that you’ve finished Chapter 3, you have a structured context system: rules that encode your team’s conventions, skills that package reusable workflows, and commands that give your agent repeatable task procedures. That system makes your agent much better at working inside your codebase. But there’s a ceiling it can’t break through on its own.
Your agent can read and write files. It can run terminal commands. But by default, it can’t query your production database, check an open Jira ticket, look up the changelog for a dependency, search your Notion workspace, or open a pull request on GitHub. Every time you need information from outside the editor, you have to copy it manually, paste it into the chat, and hope the context holds long enough to be useful. You become the bridge between your agent and the rest of your toolchain.
Model Context Protocol (MCP) is the standard that removes you from that bridge role.
This chapter covers what MCP is and how it works, ...
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