✻Founding-member pricing: every lesson for $19/mo. The first 3 lessons are free. Start lesson 1 →
Unit 6 · Model Context Protocol (MCP) · Lesson 29 of 40

Using MCP Resources & Prompts in a Session

Use MCP resources and prompts inside Claude Code: @-mention resources, run MCP prompts as slash commands, and control MCP tools with permissions.

ACADEMY8 min+66 XP4-question quiz

🎯 By the end of this lesson you'll be able to

  • Attach MCP resources with @-mentions
  • Run MCP prompts as slash commands
  • Write permission rules for MCP tools
  • Pair MCP with skills for best results

Resources via @-mentions

Type @ in the prompt and you'll see resources from connected servers alongside your files. The format is @server:protocol://path:

text
can you analyze @github:issue://123 and suggest a fix?
compare @postgres:schema://users with @docs:file://database/user-model

Referenced resources are fetched and attached automatically, so Claude starts with the data instead of spending tool calls finding it.

Prompts as slash commands

MCP prompts show up in the / menu as /server:prompt (MCP). You can also type them with the mcp__ form:

text
/mcp__github__pr_review 456
/mcp__jira__create_issue login-bug high

Arguments are separated by spaces.

Permissions for MCP tools

MCP tools are named mcp__<server>__<tool>, and permission rules use the same names:

.claude/settings.json
{
  "permissions": {
    "allow": ["mcp__sentry__search_issues", "mcp__docs__read_doc"],
    "ask": ["mcp__docs__edit_doc"],
    "deny": ["mcp__github__delete_repository"]
  }
}

mcp__sentry__* covers every tool from one server. Read-only tools are good allow candidates, and anything that writes or deletes should ask or be denied.

◎Allow, ask or deny?pick the best fit
mcp__sentry__search_issues: reading error reports
Read-only and frequent. Pre-approve it.
mcp__slack__post_message to a company-wide channel
Outward-facing, so confirm every time.
mcp__db__drop_table
Destructive and irreversible. Never from an agent session.

MCP + skills: access plus know-how

MCP provides the access. A skill provides the expertise to use it well. For example:

  • MCP: a Postgres server with run_query.
  • Skill: analytics-queries, which holds your table guide, the metrics definitions finance trusts, and a rule that queries over 30 days must use the daily rollup tables.

Together, Claude can answer "what was churn last quarter?" correctly, not just quickly.

⌨Type the command+15 XP

Write a permission rule that matches every tool from an MCP server named "sentry"

❯

Check your understanding

?Lesson quiz10 XP per correct answer · +25 for a perfect score
QUESTION 1 OF 4

How do you attach a GitHub issue resource in a prompt?

Why: Resources use @server:protocol://path.
QUESTION 2 OF 4

How are MCP tools named in permission rules?

Why: mcp__<server>__<tool>, with * for all tools on a server.
QUESTION 3 OF 4

How do MCP prompts appear in Claude Code?

Why: They show in the / menu and can be typed as /mcp__server__prompt.
QUESTION 4 OF 4

What does a skill add on top of an MCP server?

Why: MCP gives access; skills give know-how.
0 / 4 correct
Academy lesson

Unlock lesson 29 and the next 11

You've finished the free lessons. Join the Academy for $19/month to unlock every lesson, quiz, terminal simulation and puzzle, plus the final exam and your certificate of completion.

  • All 40 lessons across 9 units
  • 165+ quiz questions
  • Final exam + certificate
  • New lessons as Claude Code evolves
  • XP, streaks and badges
  • Cancel anytime

Already a member? Log in to continue.

Key takeaways

  • Attach resources with @server:protocol://path.
  • MCP prompts run as slash commands.
  • Permission rules use mcp__server__tool names. Allow reads, ask on writes, deny destruction.
  • Pair MCP (access) with skills (know-how).

Nice work. Lesson 29 done?

Mark it complete to earn +66 XP, keep your streak alive and unlock badges.

Written by Curtis Cornell from Anthropic's public Claude Code documentation. Last reviewed November 14, 2026. Claude Code changes fast; if something here differs from your version, the official docs win.

Start lesson 1 free →