learn-mcp
它能做什么
这项技能是 AI Engineering from Scratch 课程中“模型上下文协议”(Model Context Protocol)路线的专注型导师。适合希望构建或调试 MCP 服务器和客户端的学员。
适用场景
- ✓当你想一步一步学习如何构建 MCP 客户端或服务器时。
- ✓当你想学习如何保护、测试或调试 MCP 连接时。
- ✓当你想从上次停下的地方继续 MCP 学习路线时。
技能链接
https://github.com/rohitg00/ai-engineering-from-scratch/blob/main/.claude/skills/learn-mcp/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请教我下一节 MCP 课程,并告诉我如何检查请求和响应。”
每周 5 个新技能,1 分钟读完。
工作原理
导师按照该路线的课程顺序,每次教授一节课,并请你检查真实的请求和响应。它把每个检查点记录在学习日志中。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Learn Model Context Protocol (MCP)
Teach the focused Model Context Protocol (MCP) route. One invocation covers one lesson. The learner should inspect a request and response, predict a boundary result, run or hand-trace the lab, and record the lesson checkpoint before advancing.
Use the invocation syntax of the host
The portable skill name is learn-mcp. Do not present one host's
syntax as a protocol rule.
| Host | Start or resume |
|---|---|
| Codex | learn-mcp, or choose it from /skills |
| Claude Code | /learn-mcp |
| Other compatible hosts | Use learn-mcp to start or resume the Model Context Protocol (MCP) path. |
Read the route before selecting a lesson
The source of truth is learning-paths/model-context-protocol.json. Prefer local
files when this repository is available. Otherwise fetch a needed file from:
https://raw.githubusercontent.com/rohitg00/ai-engineering-from-scratch/main/<path>
Follow the manifest's lessons array by order. The required sequence is 06,
07, 08, 09, 10, 11, 12, 13, 14, 15, 16, 18, 17, 28, 29, 30, 31. Numeric next
navigation is not the route after Lesson 16.
For the selected lesson, read docs/en.md and quiz.json fully. Read or run
code/ and outputs/ only when the current teaching step needs them. Use the
lesson's stated protocol era. Never merge a legacy handshake rule into a
modern stateless trace.
Lesson 23 is the only optional capstone. Offer it only after all required rows
are complete and both manifest prerequisitePaths, Lessons 19 and 20, are
complete. Do not silently add another lesson to this path.
Establish the evidence mode
Before the first executable checkpoint, determine whether:
- The lesson files are available locally.
python3 --versionsucceeds.- The learner can write
MCP-LEARNING.mdin the current working directory. - A TypeScript runner is available if the learner chooses the optional second implementation in Lesson 07.
When local files and Python 3 are available, use executable mode. Record the absolute working directory, exact command, exit code, request id and method, selected protocol era, and observed result or error. Redact tokens, secrets, cookies, authorization headers, and sensitive parameter values.
When the repository or runtime is unavailable, continue in conceptual mode.
Read the lesson, hand-trace a small request and response, and label the evidence
Conceptual. Leave runtime, transport, authorization, and deployment checks
Pending. Do not describe a hand trace as an executed pass.
If executable files are needed but absent, offer to clone the repository into a directory the learner chooses. Wait for confirmation before cloning. The conceptual lesson must remain available without a clone.
Locate or create progress
Use MCP-LEARNING.md in the current working directory. Do not put
this route in LEARNING.md and do not modify Agent Skills progress.
Before deciding that no state exists, handle the former filename safely:
- If
MCP-LEARNING.mdexists, use it. IfMCP-ENGINEERING-LEARNING.mdalso exists, do not overwrite either file; report the collision and ask which file should own the next update. - If
MCP-LEARNING.mdis absent andMCP-ENGINEERING-LEARNING.mdexists, rename the legacy file toMCP-LEARNING.mdin the same directory before teaching. Preserve every learner note and evidence row byte for byte. If an atomic rename is unavailable, copy the file, verify the new file matches, and only then remove the legacy file. - Create a new state file only when neither filename exists. Never replace legacy progress with the blank template below.
If the file exists, preserve all learner notes and evidence. Resume the first
row marked In progress or Next. If all required rows are Done, check the
optional capstone prerequisites and report the exact missing path instead of
restarting the route.
If the file does not exist, create it without a placement quiz:
# My Model Context Protocol (MCP) Path
<!-- Managed by the learn-mcp tutor.
Source: learning-paths/model-context-protocol.json -->
## Route
- Started: <YYYY-MM-DD>
- Required time: about 23 hours 15 minutes
- Current: 1 of 17
- Evidence mode: Executable or Conceptual
## Environment
- Repository files: Available or Pending
- Python 3: Confirmed or Pending
- TypeScript runner for Lesson 07: Optional, Confirmed, or Pending
- Working directory: <absolute path>
## Public d
常见问题
这条路线涵盖什么?
涵盖客户端、服务器、传输方式、网关、注册表和一致性检查。
它会教最新版本的 MCP 吗?
会。它使用每节课中注明的协议版本,不会混用新旧规则。
我的进度保存在哪里?
它记录在 MCP 学习日志文件中。
详情
作者的原始描述
Focused interactive tutor for the Model Context Protocol (MCP) path in AI Engineering from Scratch. Start or resume this route when a learner wants to build, secure, debug, verify, or operate MCP clients, servers, transports, gateways, registries, or conformance gates. Teaches one lesson per invocation and records wire evidence in MCP-LEARNING.md.
热度
- GitHub 星标
- 76k
- 排名
- #2620
- 许可证
- MIT
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
blueprint-figure
76k帮你的智能体为课程、README 和手册绘制清晰的静态 SVG 图示,展示系统中真实部件之间的连接关系。
build-project
76k充当项目导师,每次带你完成一个实践 AI 项目阶段,提供提示和评分,但不给出完整答案。
check-understanding
76k对 AI Engineering from Scratch 课程中已完成的阶段进行小测验,让你在进入下一阶段前检查自己学到了什么。
claude-certification
76k在 AI Engineering from Scratch 课程的 Claude 认证路线中充当分步导师,提供课程、实验和练习考试。