Chapter 7. MCP and External Integrations
Chapter 6 turned repeated instructions into skills and hooks. The natural next question is why you would need anything beyond them. If a skill can teach Claude Code how to use a command-line tool, why expose a separate service at all? The answer is client portability through the Model Context Protocol (MCP).
This chapter shows how to configure and authenticate MCP servers. Then it connects Claude Code to three of them: MockHub, this book’s enterprise-scale application; SonarQube Cloud, for code quality; and Context7, for current library documentation. Along the way you’ll see when a skill plus a command-line tool beats an MCP server, what a logged-in browser tab can do when a site offers no integration at all, and two ways to call another coding agent.
Why MCP Exists
A large language model on its own can only answer from training data and whatever you pasted into the prompt. Tool use, also called function calling, changed that. The pattern is straightforward: you describe a function ...
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