← Browse by Chapter
Get the Book →
#71Chapter 13 — MCP Servers: External Tooling, Safely
I am about to connect this MCP server: [name, and its documentation or the tool inventory]. It is for [what I need it for], in [which repositories]. Propose the narrowest setup: the scope, with the reason; the exact `claude mcp add` command or `.mcp.json` entry, with any secret as a `${VAR}` reference; the least-privileged credential the task needs; and pinned OAuth scopes if the server signs in with OAuth. Then write the permission rules: the reading tools to allow by full name, the tools that write or send to put behind ask rules, and anything to deny. Finish with what the credential would still allow if every rule failed. Do not run anything.
Mastering Claude Code
These prompts are excerpts from the book. Get the full collection with explanations and use cases.