Skip to content
CCAR-F Prep

Task Statement 2.4·Domain 2 — 18% of exam

MCP Server Integration

Integrate MCP servers into Claude Code and agent workflows

Jump to practice →

Official Exam Guide Objectives

The objectives below are quoted from Anthropic's Claude Certified Architect – Foundations exam guide, v1.1. Read the exam guide summary for the full blueprint.

Task 2.4: Integrate MCP servers into Claude Code and agent workflows.

Knowledge of

  • MCP server scoping: project-level (.mcp.json) for shared team tooling vs user-level (~/.claude.json) for personal/experimental servers
  • Environment variable expansion in .mcp.json (e.g., ${GITHUB_TOKEN}) for credential management without committing secrets
  • That tools from all configured MCP servers are discovered at connection time and available simultaneously to the agent
  • MCP resources as a mechanism for exposing content catalogs (e.g., issue summaries, documentation hierarchies, database schemas) to reduce exploratory tool calls

Skills in

  • Configuring shared MCP servers in project-scoped .mcp.json with environment variable expansion for authentication tokens
  • Configuring personal/experimental MCP servers in user-scoped ~/.claude.json
  • Enhancing MCP tool descriptions to explain capabilities and outputs in detail, preventing the agent from preferring built-in tools (like Grep) over more capable MCP tools
  • Choosing existing community MCP servers over custom implementations for standard integrations (e.g., Jira), reserving custom servers for team-specific workflows
  • Exposing content catalogs as MCP resources to give agents visibility into available data without requiring exploratory tool calls

What You Need to Know

MCP (Model Context Protocol) servers are how Claude reaches systems it does not otherwise know about — databases, APIs, development tooling, issue trackers. Where the configuration lives decides whether a team shares one toolset or each developer quietly assembles their own.

Two Questions That Settle Most Items

Nearly every item on this task statement reduces to one of two questions, and neither is about what the server does.

QuestionIf yesIf no
Should every teammate get this server when they clone the repository?.mcp.json at the project root (committed)~/.claude.json (your machine only)
Is this an action the agent takes?An MCP toolIf it is content the agent may read, an MCP resource

Scope answers "who gets this?", not "what does it do?". A stem that describes a server working on one machine and missing on another is a scope question, however much detail it gives about the server itself.

The Scoping Hierarchy

Two levels exist, and most setup problems trace back to something sitting at the wrong one.

Project-level: .mcp.json Sits at the repository root and is committed, so it arrives with every clone and pull. This is where anything the team depends on belongs — the Jira connection, the GitHub tooling, the connectors to your own services.

{
  "mcpServers": {
    "github": {
      "command": "npx",
      "args": ["-y", "@example/github-mcp-server"],
      "env": {
        "GITHUB_TOKEN": "${GITHUB_TOKEN}"
      }
    },
    "jira": {
      "command": "npx",
      "args": ["-y", "@example/jira-mcp-server"],
      "env": {
        "JIRA_URL": "${JIRA_URL}",
        "JIRA_TOKEN": "${JIRA_TOKEN}"
      }
    }
  }
}

The package names above are placeholders; use the launch command that the server's own documentation gives.

User-level: ~/.claude.json Sits in your home directory. Personal, uncommitted, invisible to everyone else. Right for something experimental, a private integration, or a server you are trying out before suggesting the team adopt it. The reverse mistake is just as wrong as the familiar one: a personal experiment committed to .mcp.json forces an unwanted and possibly broken server on the whole team.

Key principle: everything configured at either level is discovered when the connection is made, and all of it is available at once. Servers are not activated one at a time, and neither level switches the other off — a server that is configured and reachable contributes its tools to the toolkit, which is also why an unnoticed user-level server can explain why one developer's agent behaves differently from everybody else's.

Discovered at connection — all available at once .mcp.json at the project root is committed and arrives with every clone — the Jira connection, the GitHub tooling, anything the team depends on belongs here. ~/.claude.json in the home directory is personal and uncommitted, invisible to everyone else — right for something experimental or a private integration. Both are discovered when the connection is made, and everything configured at either level is available at once, nothing has to be switched on. That is also why an unnoticed user-level server can explain why one developer's agent behaves differently from everybody else's. Project — .mcp.json committed, team-shared ✓ arrives with every clone Jira, GitHub, your own services belong here User — ~/.claude.json personal, uncommitted invisible to everyone else experimental, private both are discovered at connection — all available at once an unnoticed user-level server explains a colleague's different behaviour
1 / 6Swipe diagram ↔

Discovered at connection — all available at once, step 1: Project — .mcp.json — committed, team-shared

What simultaneous availability costs

Configuring a project server and a personal server means the agent sees both tool sets in the same session. That is expected behaviour, not a conflict. It does mean every server added casually enlarges the set of tools the model chooses between, and a larger set makes selection less reliable (the tool-distribution point of Task 2.3). Scope is therefore also a question of how much the agent has to weigh, not only of who receives the server.

Environment Variable Expansion

.mcp.json expands ${VARIABLE_NAME}, and that is what makes it safe to commit a file describing servers that need credentials.

{
  "env": {
    "GITHUB_TOKEN": "${GITHUB_TOKEN}",
    "DATABASE_URL": "${DATABASE_URL}"
  }
}

What is committed is the variable name; the value stays in each developer's own environment — exported from a shell profile, or injected by a secrets manager. Which gives you:

  • The configuration file is safe to commit to version control
  • Each developer authenticates with their own credentials
  • Token rotation does not require config file changes
  • No secrets leak through repository history

The third and fourth points are worth pausing on together: because the file never held the secret, rotating a token touches nothing in the repository, and there is no historical commit holding an old one either.

A reference is safe to commit; a secret never is Configuring the GitHub server in .mcp.json, a literal token value is in git history permanently the moment it is committed — rotating it later does not remove it from there. Writing ${GITHUB_TOKEN} instead commits only the variable name; the value stays wherever each developer keeps it, shell profile, .env, or a secrets manager. The file becomes safe to commit, each developer authenticates with their own credentials, and token rotation touches nothing in the repository, because the repository never held the secret to begin with. .mcp.json — configuring the GitHub server env "GITHUB_TOKEN": "ghp_a8f9e2c1..." ✕ in git history forever env "GITHUB_TOKEN": "${GITHUB_TOKEN}" ✓ safe to commit, rotates freely each developer supplies their own value — no secret ever enters the repository
1 / 6Swipe diagram ↔

A reference is safe to commit; a secret never is, step 1: .mcp.json — configuring the GitHub server

Committing .mcp.json is the correct move, not a risk to be minimised: it is how the team shares tooling. It is safe only because credentials are referenced by variable and never written inline. An option that keeps the server configuration out of version control "to protect the token" has the wrong fix for the right worry.

MCP Resources

Resources publish a catalogue of what exists, so an agent can find out without calling tools to go looking.

Worth publishing this way:

  • Issue summaries — the open Jira tickets, with their titles and current status
  • Documentation hierarchies — the contents page for whatever internal docs exist
  • Database schemas — which tables exist, the types of their columns, how they relate

The saving is in exploratory calls never made. Lacking a schema resource, an agent orients itself by calling list_tables, then describe_table once per table — a sequence that produces no work, only the knowledge of what it could work on. Publish the schema as a resource and the whole catalogue sits at one known address: the host application can attach it to the conversation, or the agent can read it in a single step, and the chain of exploration disappears.

Resources show agents what data is available. Tools let them act on it.

Resources show what's there; tools act on it Without a schema resource, an agent orients itself by calling list_tables, then describe_table once per table — a sequence of six calls that produces no work, only the knowledge of what it could work on. Publishing the schema as an MCP resource makes that knowledge simply present, with no calls needed at all. The saving is in calls never made. Resources show an agent what data is available; tools let it act on that data. No schema resource — explores via tool calls 6 calls — pure exploration, no work done Schema published as a resource the catalogue is there to read resources show what's there; tools act on it
1 / 6Swipe diagram ↔

Resources show what's there; tools act on it, step 1: No schema resource — the agent orients itself

Tool or resource?

ToolsResources
What it isAn actionContent
Who drives itThe model decides to call itThe host application decides how the content reaches the model
Good forcreate_issue, process_refund, run_queryIssue catalogue, documentation hierarchy, database schema, style guide
Side effectsExpectedNone intended: a read should change nothing
Stem wording"The agent needs to do X""The agent needs visibility into what exists"

Two design mistakes follow from mixing them up. Modelling a state-changing operation as a resource breaks the expectation that reading is harmless. Modelling a large browsable catalogue only as a tool forces the agent to call it repeatedly just to enumerate what is there.

The catalogue pattern

The symptom is an agent that spends its first several calls discovering what exists before doing anything useful. In front of an issue tracker that can mean six to eight calls listing projects, then boards, then issue types, then sampling issues. The fix is one resource per inventory: a project catalogue (keys, names, boards, issue types, workflow states), a documentation tree (titles, paths, last-modified dates), a database schema (tables, columns, types, foreign keys).

The Build-vs-Use Decision

It arrives constantly, in items and in real work: the team needs to talk to an external system, so does somebody write an MCP server or adopt an existing one?

Use community servers for standard integrations:

  • Widely used products such as Jira, GitHub, Notion, Sentry and Stripe generally have a maintained server already; Anthropic's Directory lists reviewed connectors
  • The ordinary cases are covered, exercised by more users than your team has, and kept current by someone else
  • Authentication, pagination and rate limiting are already solved
  • Adopting one costs an afternoon; owning one costs indefinitely

Build custom servers only when:

  • The workflow is particular to your team and no general server expresses it (an internal deploy pipeline, a bespoke ticket triage)
  • Business rules need to live in the tool layer itself rather than in the prompt, or you need tool boundaries the generic server does not enforce
  • The system is proprietary, so no community server exists or could

The pragmatic answer is the one that scores. Where the integration is a standard one, evaluating what already exists comes first — and building is correct only where the scenario states a requirement no community server could meet, usually something proprietary or a workflow particular to that team.

Enhancing MCP Tool Descriptions

A subtler failure: an MCP tool with a thin description loses out to a built-in one even where it would do the job better. The built-in's purpose is unmistakable, so on a sparse comparison the model prefers what it understands — "Search the code" reads like a worse Grep.

The fix: enhance your MCP tool descriptions to explain capabilities and outputs in detail. Instead of:

search_codebase: "Search the code"

Write:

search_codebase: "Semantic search over the whole repository,
indexed by AST rather than by line. Matches functions, classes
and methods, returning each with its file path, line numbers and
the code around it. Because it matches on intent rather than on
exact strings, it finds code that grep would miss when you know
what something does but not how it is spelled. Prefer this to
Grep whenever the search is by behaviour rather than by text.
Use Grep only for literal strings such as error text or
configuration keys."

Note what the longer version supplies: what the tool does, what comes back, and an explicit comparison against the built-in it is competing with. That last part is what settles the choice, because the model now has grounds to prefer it rather than merely permission to.

The model needs grounds to prefer it, not just permission Asked to find the code that handles refund eligibility, the model chooses between Grep, described in detail as a built-in, and search_codebase, an MCP tool described only as "search the code". The thin description loses even where the MCP tool would do the job better, because selection runs on descriptions and the built-in is simply better documented. Rewriting the description to explain what the tool returns and to state explicitly when it should be preferred over Grep gives the model grounds to choose it, and it does. Detail is what settles the choice, not mere availability. find the code for refund eligibility Grep built-in, thoroughly described search_codebase "search the code" semantic, AST-indexed — prefer over Grep for behaviour ✕ the more capable tool loses to a thin description ✓ now it has grounds to be chosen — and wins the model needs grounds to prefer it, not just permission to
1 / 6Swipe diagram ↔

The model needs grounds to prefer it, not just permission, step 1: Find the code that handles refund eligibility

The pattern is to name the built-in you are competing with and state when each one wins, which is the boundary rule of Task 2.1 applied to the seam between built-in and MCP tools. Two things do not work in its place. Asserting a preference ("always use this, never use Grep") tells the model which tool you like without telling it what the tool does. Padding the description with background on how the index is built adds length without adding grounds, and it pushes the sentences that matter towards the end, where a client that cuts long descriptions may remove them. Put capability, output and the comparison first.

Deep Dive

claude mcp add — the two command shapes

Claude Code's CLI adds servers with one command, in two shapes depending on transport. For a remote HTTP server (the recommended option for remote servers): claude mcp add --transport http <name> <url>. For a local stdio server, a -- separator is required: claude mcp add [options] <name> -- <command> [args...]. Everything after -- is passed to the server process untouched — it separates Claude's own flags (--transport, --env, --scope) from the command that launches the server. A server can also be added directly from a JSON blob with claude mcp add-json <name> '<json>'. Each of these writes to local scope unless you add --scope project or --scope user.

# Remote HTTP server
claude mcp add --transport http notion https://mcp.notion.com/mcp

# Local stdio server — note the -- separator (the package name is a placeholder)
claude mcp add --scope project github -- npx -y @example/github-mcp-server

Sourcecode.claude.com › mcpfetched 2026-11-19

Three scopes, not two — and where each one actually lives on disk

ScopeVisible toShared via VCS?Stored in
Local (default)Current project only, private to youNo~/.claude.json, nested under that project's path
ProjectCurrent project, all teammatesYes — .mcp.json.mcp.json in the project root
UserAll of your projectsNo~/.claude.json

The -s/--scope flag accepts local (default), project (shared via .mcp.json), or user (available to you across all projects). A local-scoped server loads only in the project where you added it and stays private to you — a different mechanism from a project-scoped server, even though both can feel "project-specific" at a glance. If an option distinguishes user scope from local scope: user means all your projects, local means this project only. Note also: MCP local scope (~/.claude.json) is a different thing entirely from general local settings (.claude/settings.local.json, in the project directory) — don't conflate the two on the exam. Administrators can additionally deploy or provide servers for every user through managed configuration.

Sourcecode.claude.com › mcpfetched 2026-11-19

Scope precedence: local beats project beats user, no merging

When the same server is defined in more than one place, Claude Code does not merge the definitions — it "connects to it once, using the definition from the highest-precedence source. The entire server entry from that source is used; fields are not merged across scopes." The precedence order is: 1. Local scope → 2. Project scope → 3. User scope → 4. Plugin-provided servers → 5. claude.ai connectors. A server your organisation provides through the managedMcpServers managed setting ranks above all five (Claude Code v2.1.259 or later). Duplicates across the three scopes are matched by name; plugins and connectors are matched by endpoint.

A personal local override therefore wins whole over the team's .mcp.json entry of the same name. If the project entry sets headers and your local entry does not, the project's headers contribute nothing. That is useful for testing a fork of a server, and a source of "why isn't my teammate's fix taking effect" confusion. The connection itself raises no error; the signal is a warning in claude mcp list output and in /mcp when the same name is defined in more than one scope with different endpoints.

Sourcecode.claude.com › mcpfetched 2026-11-19

Environment variable expansion: ${VAR} and ${VAR:-default}

.mcp.json supports two expansion forms: ${VAR} expands to the value of environment variable VAR; ${VAR:-default} expands to VAR if set, otherwise falls back to default. Expansion works in five fields of a server entry: command (the executable path), args, env, url (for HTTP servers), and headers (for HTTP authentication).

{
  "mcpServers": {
    "internal-api": {
      "type": "http",
      "url": "${INTERNAL_API_URL:-https://api.internal.example.com}",
      "headers": { "Authorization": "Bearer ${API_TOKEN}" }
    }
  }
}

Three edge cases are documented:

CaseWhat happens
Variable unset, no default"the config still loads": claude mcp list (and /mcp) reports a missing-variable warning and the literal ${VAR} text is used as-is
Variable set to an empty stringIt counts as set, so ${VAR:-default} expands to the empty string, not to default
Certain credential variables in a remote server's url or headersRead as empty rather than expanded, with no warning. The docs name Claude Code's own credentials (such as ANTHROPIC_API_KEY), cloud-provider credentials, and others such as NPM_TOKEN; a name outside the set, such as API_KEY, "expands as written"

A default is for non-secret values such as a staging URL. Writing a real token as the fallback (${TOKEN:-the-real-token}) commits the secret just as surely as writing it inline. A JSON entry that has a url but no type is a configuration error, because an entry with no type is read as a stdio server.

Sourcecode.claude.com › mcpfetched 2026-11-19

Transports: stdio, Streamable HTTP, and deprecated SSE

The MCP specification (revision 2026-07-28, the latest published) defines two standard transports — stdio and Streamable HTTP — and allows custom ones. In stdio, the client launches the server as a subprocess and exchanges newline-delimited JSON-RPC messages over stdin/stdout. In Streamable HTTP the server runs as an independent process that can handle multiple client connections: each message is an HTTP POST to a single MCP endpoint, and the reply arrives as a JSON object or as an SSE (Server-Sent Events) stream scoped to that request. It was introduced in protocol version 2025-03-26 as the replacement for the HTTP+SSE transport of 2024-11-05; revision 2026-07-28 removed the separate GET stream endpoint and protocol-level sessions.

In Claude Code specifically, the standalone SSE transport is deprecated; use HTTP servers where available. A service that exposes only an SSE endpoint can be added with the same --transport http command (Claude Code tries HTTP first and switches to SSE, v2.1.265 or later) or with --transport sse directly. A remote WebSocket server uses "type": "ws" in .mcp.json or add-json; the --transport flag does not accept ws. In .mcp.json (and ~/.claude.json/add-json), the type field accepts streamable-http as an alias for http, so configs copied straight from third-party server documentation work unmodified. The Agent SDK docs give a simple heuristic for choosing: a command to run means stdio; a URL means HTTP or SSE; tools built in your own code use an SDK MCP server.

Sourcesmodelcontextprotocol.io › transportscode.claude.com › mcpcode.claude.com › mcpfetched 2026-11-19

Management, approval, and remote authentication

Configured servers are managed with claude mcp list, claude mcp get <name>, claude mcp remove <name>, and — inside a running session — /mcp to check server status. claude mcp list shows a health status beside each server and is where configuration warnings (a missing variable, a name defined in two scopes) appear.

For security, Claude Code prompts for approval in interactive sessions before using project-scoped servers from .mcp.json; reset those approval choices with claude mcp reset-project-choices. Rejecting a server in the approval dialog writes it to disabledMcpjsonServers in .claude/settings.local.json. In claude -p runs and Agent SDK sessions the prompt cannot be shown, so project-scoped servers load without asking.

For remote servers requiring authentication, Claude Code supports OAuth 2.0: authenticate via /mcp (or claude mcp login <name> from the shell), and tokens are stored securely and refreshed automatically. A claude -p or Agent SDK run cannot perform the OAuth flow, so sign in from an interactive session first. Where authentication needs headers generated at connection time (short-lived tokens, Kerberos, internal SSO), a server entry can set headersHelper to a command; Claude Code runs it when connecting and merges its output into the headers it sends.

Claude Code can also run in the other direction — claude mcp serve starts Claude itself as a stdio MCP server exposing its own tools to other MCP clients, which then become responsible for their own per-call user confirmation.

Sourcescode.claude.com › mcpcode.claude.com › settings-referencefetched 2026-11-19

Tool names, tool search, and restricting the server set

MCP tools are named mcp__<server-name>__<tool-name>, where the server name is the key it is registered under in mcpServers — for example mcp__github__list_issues. A tool from a plugin-bundled server carries the plugin name too: mcp__plugin_<plugin-name>_<server-name>__<tool-name>. Use the full name in permission rules, allowedTools and hook matchers; a matcher written against the bare server key never fires for a plugin-bundled server.

Because tool search matches on descriptions, Claude Code's limits matter to the description advice above: it cuts server instructions and the description of a tool that loads upfront at 4,096 characters, and the description of a tool loaded through tool search at 16,384 characters (before v2.1.296 the shorter limit was 2,048). The docs' advice is to "put critical details near the start".

To make a run reproducible — in CI, for example — start it with --strict-mcp-config together with --mcp-config: Claude Code then loads only the servers passed with --mcp-config and skips the ones configured in places such as .mcp.json, ~/.claude.json or a plugin.

Sourcescode.claude.com › mcpcode.claude.com › mcpcode.claude.com › cli-referencefetched 2026-11-19

MCP resources and prompts are addressable, not just tool-adjacent

Resources aren't only conceptual "content catalogues" — they have concrete addressing syntax in Claude Code. Reference one with an @-mention: @server:protocol://resource/path; the referenced resource is fetched and included as an attachment automatically (with claude -p, a resource mention stays plain text). Claude Code also "automatically provides tools to list and read MCP resources when servers support them", so the agent can reach a catalogue itself with one read instead of a chain of exploratory calls. Prompts exposed by a connected server become commands: Claude Code lists each as /servername:promptname (MCP), typing /mcp__servername__promptname also runs it, and the prompt's result is injected directly into the conversation.

Watch your MCP tool output size too. The transcript viewer displays a warning when any MCP tool output exceeds 10,000 tokens, and the default maximum is 25,000 tokens (adjust it with MAX_MCP_OUTPUT_TOKENS). A result over the limit is not cut off: Claude Code saves it to a file and replaces it in the conversation with a message naming the file path. Separately, a text result longer than 50,000 characters is saved to a file whatever its token count, and MAX_MCP_OUTPUT_TOKENS does not change that threshold; a server author can raise it per tool with _meta["anthropic/maxResultSizeChars"], up to 500,000 characters.

Sourcecode.claude.com › mcpfetched 2026-11-19

Resource protocol mechanics (beyond the guide)

The exam guide tests resources as a design choice, not as a wire format. The protocol detail below, from specification revision 2026-07-28, is background for reading server code. The specification describes tools as "model-controlled" and resources as "application-driven, with host applications determining how to incorporate context based on their needs".

MechanicDetail
Discover and readresources/list returns entries; resources/read takes a uri and returns contents[], each with uri, mimeType, and text or blob
Tools, for comparisontools/list to discover, tools/call to invoke
Resource entry fieldsuri, name, optional title, description, mimeType, size
Capability{"capabilities": {"resources": {"listChanged": true, "subscribe": true}}} — both flags optional and independent
Templatesresources/templates/list returns parameterised resources via uriTemplate, for example file:///{path}
Annotationsaudience ("user", "assistant"), priority (0.0 to 1.0), lastModified
Change notificationsThe client sends subscriptions/listen naming the resource URIs; the server delivers notifications/resources/updated. This replaced resources/subscribe from earlier revisions
Not foundJSON-RPC error -32602; clients should also accept -32002, the code earlier revisions used

A catalogue entry as a server would list it:

{
  "uri": "db://schema/public",
  "name": "Database schema",
  "description": "Tables, columns, types and foreign keys for the public schema",
  "mimeType": "application/json"
}

Sourcesmodelcontextprotocol.io › resourcesmodelcontextprotocol.io › toolsmodelcontextprotocol.io › changelogfetched 2026-11-19

Quick Reference

FactValue
Add a remote serverclaude mcp add --transport http <name> <url>
Add a local stdio serverclaude mcp add [options] <name> -- <command> [args...] (-- required)
Add from JSONclaude mcp add-json <name> '<json>'
Local scope (default)Current project only, private; stored in ~/.claude.json under that project's path
Project scopeTeam-shared; .mcp.json in project root, checked into VCS
User scopeAll your projects, private; stored in ~/.claude.json
Scope precedencelocal > project > user > plugin servers > claude.ai connectors (no merging); a managed-settings server ranks above all
Env var expansion${VAR} and ${VAR:-default}, in command/args/env/url/headers
Unset variable, no defaultConfig still loads; warning in claude mcp list; literal ${VAR} text used
Dynamic auth headersheadersHelper: a command run at connection time
Standard transportsstdio, Streamable HTTP (spec 2026-07-28); SSE deprecated in Claude Code
type aliasstreamable-http == http; a url with no type is an error
Manage serversclaude mcp list / get <name> / remove <name>; /mcp for status in-session
Project-server approvalPrompted in interactive sessions; claude mcp reset-project-choices resets; -p and SDK runs load without asking
Remote authOAuth 2.0 via /mcp or claude mcp login <name>; tokens stored + refreshed automatically
Claude Code as a serverclaude mcp serve exposes Claude's own tools over stdio
Only the servers you pass--strict-mcp-config with --mcp-config
Reference a resource@server:protocol://resource/path
MCP prompt as command/mcp__servername__promptname
MCP output limitsWarning above 10,000 tokens; default maximum 25,000 (MAX_MCP_OUTPUT_TOKENS); over-limit output is saved to a file
Tool naming patternmcp__<server-name>__<tool-name>; plugin: mcp__plugin_<plugin-name>_<server-name>__<tool-name>
Description cut-off4,096 characters for server instructions and upfront tool descriptions; 16,384 for tools loaded through tool search
Tools vs resourcesTools: model-controlled actions. Resources: application-driven content

Exam Traps

More wrong answers, and why each fails

Tempting answerWhy it failsChoose instead
Add .mcp.json to .gitignore so the token never reaches the repositoryThe file exists to be shared; ignoring it removes the team's single definitionCommit the file with ${VAR} references
Write the real token as the fallback in ${VAR:-…}The default is committed text, so the secret is in history againDefaults for non-secret values only
Commit an experimental server to .mcp.json with a comment, or on a feature branchA comment changes nothing, and everyone who pulls or checks out the branch gets the serverLocal or user scope in ~/.claude.json until the team adopts it
Expose a state-changing operation as a resourceResources are content to read; an action belongs behind a tool the model chooses to callAn MCP tool
Offer the catalogue only through a tool such as get_full_schema or repeated list_* callsThe agent still spends calls finding out what exists, which is the cost the guide's resource pattern removesExpose the catalogue as an MCP resource

How This Is Tested

Task 2.4 appears in the three scenarios whose primary domains include Tool Design & MCP Integration: Customer Support Resolution Agent, Multi-Agent Research System and Developer Productivity with Claude. The stems are short and the signal is usually one phrase.

Stem signalAnswerWrong-answer pattern beside it
"A new team member does not get the shared server" / "works on my machine"It is in personal scope; declare it in the project-root .mcp.jsonSending everyone the claude mcp add command; copying ~/.claude.json into the repository
"Share a server that needs a token, without committing the token".mcp.json with ${GITHUB_TOKEN}Gitignoring the file; rotating a committed token; moving the entry to each home directory
"The agent keeps using Grep instead of our indexed search tool" (the tool is present)Enhance the MCP tool's description: capabilities, outputs, when it beats GrepRenaming the tool; removing Grep; few-shot examples in the system prompt
"The agent spends many calls discovering what data exists"Expose the catalogue as an MCP resourceCaching the exploratory calls; one larger tool; pasting the catalogue into the system prompt
"Build or adopt a Jira server?" with nothing unusual about the workflowAdopt the community server; reserve custom for team-specific workflowsA narrowly scoped custom build; calling the REST API from Bash
"Which servers' tools does the agent have?" with project and personal servers configuredAll of them, discovered at connection time, simultaneously"Project overrides personal", "personal overrides project", "one level at a time"

Check whether the tool is absent or merely unchosen before answering a "keeps using Grep" stem: absent is a scope problem, unchosen is a description problem.

The scope distinction is the same one the official sample question on slash commands tests for a different file. There, the option "In ~/.claude/commands/ in each developer's home directory" is wrong because, in the guide's words, it "is for personal commands that aren't shared via version control". A team server in ~/.claude.json fails for exactly that reason.

Practice Scenario

Your support agent's MCP server supplies get_customer and lookup_order, and you added it with claude mcp add during a spike three weeks ago. It has worked on your machine ever since. Two colleagues now report that their agents escalate every billing question immediately, because neither tool resolves for them at all. What's the most effective first step?

Practice Questions

Exam simulator

Question 1 of 13

Scenario · Multi-Agent Research System

Your research team wants its agents to read pages from the company's Confluence wiki. A developer has scoped two weeks to build a custom MCP server for it. A maintained community Confluence MCP server already exists, and the team's only unusual need is a server for its internal citation database. Which approach should you take?

Sources