ai-engineering-from-scratch-zh: Skill for Claude Code

.claude/skills/learn-mcp/SKILL.md

learn-mcp is a skill for Claude Code from fancyboi999/ai-engineering-from-scratch-zh. It costs 123 tokens per session (2,361 once invoked), scanned A, original, MIT.

An interactive tutor for learning Model Context Protocol (MCP), a standard for connecting AI applications with tools and data.

In plain words
What is it for?
It teaches how to build, secure, test, debug, and operate MCP clients, servers, connections, gateways, and registries.
Why use it?
It gives learners a defined lesson order and checks real requests and responses, reducing confusion when building or debugging MCP systems.

Skill for Claude Code

Written for Claude Code: installed under .claude/. Also seen: mentions Claude Code; mentions Codex.

This is fancyboi999/ai-engineering-from-scratch-zh's own configuration. It tells Claude Code how to work on ai-engineering-from-scratch-zh itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything ai-engineering-from-scratch-zh configures →

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is python3 phases/13-tools-and-protocols/06-mcp-fundamentals/code/main.py.

About the project

ai-engineering-from-scratch-zh is a Chinese-language adaptation of a course that teaches AI engineering by implementing algorithms, tools, and agents from the ground up. It is for learners following a 20-stage path across mathematics, machine learning, agent systems, and production topics, with lessons using Python, TypeScript, Rust, and Julia. The catalogue entries provide agent skills and instructions associated with the course.

fancyboi999/ai-engineering-from-scratch-zh · 1,055 stars · on GitHub · aieng-zh.cn

Reuse

Borrowing it

Nothing to install: this file belongs to fancyboi999/ai-engineering-from-scratch-zh. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/fancyboi999/ai-engineering-from-scratch-zh/main/.claude/skills/learn-mcp/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/fancyboi999/ai-engineering-from-scratch-zh

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for learn-mcp

README.md
[![agentmods](https://agentmods.dev/badge/skills/fancyboi999/ai-engineering-from-scratch-zh/learn-mcp/github.svg)](https://agentmods.dev/skills/fancyboi999/ai-engineering-from-scratch-zh/learn-mcp)
Your own site
<a href="https://agentmods.dev/skills/fancyboi999/ai-engineering-from-scratch-zh/learn-mcp"><img src="https://agentmods.dev/badge/skills/fancyboi999/ai-engineering-from-scratch-zh/learn-mcp/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for learn-mcp

Your own site · 80×15
<a href="https://agentmods.dev/skills/fancyboi999/ai-engineering-from-scratch-zh/learn-mcp"><img src="https://agentmods.dev/badge/skills/fancyboi999/ai-engineering-from-scratch-zh/learn-mcp.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 123 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,361 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00123 $0.02361
Opus 5 $0.00062 $0.01180
Sonnet 5 $0.00025 $0.00472
Haiku 4.5 $0.00012 $0.00236

Measured 7d ago against content hash e103b52cf5e0, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

learn-mcp scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 7d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/skills/learn-mcp/SKILL.md · 155 lines

How it starts

The opening of the file, as written. The whole thing — 155 lines — stays where its author put it; the contents beside it link to each section on GitHub.

学习 Model Context Protocol (MCP)

教授专注的 Model Context Protocol (MCP) 路线。一次调用覆盖一节课。学习者应检查请求与响应、预测边界结果、运行或手工跟踪 lab,并在推进前记录课程 checkpoint。

使用宿主的调用语法

可移植 skill 名称是 learn-mcp。不要将某个宿主的语法说成协议规则。

宿主 开始或继续
Codex learn-mcp,或从 /skills 选择它
Claude Code /learn-mcp
其他兼容宿主 Use learn-mcp to start or resume the Model Context Protocol (MCP) path.

选择课程前读取路线

唯一事实来源是 learning-paths/model-context-protocol.json。仓库可用时优先本地文件;否则从以下地址获取所需文件:

https://raw.githubusercontent.com/fancyboi999/ai-engineering-from-scratch-zh/main/<path>

按 manifest 的 lessons 数组及其 order 进行。必修顺序为 06、07、08、09、10、11、12、13、14、15、16、18、17、28、29、30、31。第 16 课后,数字上的下一课不再是此路线的下一课。

对选中课程,完整读取 docs/zh.mdquiz.json。只在当前教学步骤需要时读取或运行 code/outputs/。采用课程声明的 protocol era。绝不把 legacy handshake 规则混进现代无状态 trace。

第 23 课是唯一可选 capstone。只能在所有必修行完成且 manifest prerequisitePaths 中第 19、20 课均完成后提供。绝不悄悄向此路径添加其他课程。

确立证据模式

第一次可执行 checkpoint 前,确定:

  1. 课程文件是否在本地可用。
  2. python3 --version 是否成功。
  3. 学习者能否在当前工作目录写入 MCP-LEARNING.md
  4. 学习者选择第 07 课的可选第二实现时,是否有 TypeScript runner。

本地文件和 Python 3 都可用时,采用 executable mode。记录绝对工作目录、精确命令、exit code、request id 与 method、选择的 protocol era,以及观察到的结果或错误。隐去 tokens、secrets、cookies、authorization headers 和敏感参数值。

仓库或 runtime 不可用时,采用 conceptual mode。阅读课程,手工跟踪一个小型 request 与 response,并将证据标为 Conceptual。将 runtime、transport、authorization 和 deployment 检查保留为 Pending。绝不把手工跟踪说成已执行通过。

可执行文件需要但缺失时,提供将仓库克隆到学习者选择目录的选项。克隆前等待确认。没有克隆时概念课仍必须可用。

查找或创建进度

在当前工作目录使用 MCP-LEARNING.md。不要将此路线写入 LEARNING.md,也不要修改 Agent Skills 进度。

决定不存在状态前,安全处理旧文件名:

  1. 若存在 MCP-LEARNING.md,使用它。若也有 MCP-ENGINEERING-LEARNING.md,两个文件都不要覆盖;报告冲突并询问下一次更新由哪个文件拥有。
  2. MCP-LEARNING.md 不存在而 MCP-ENGINEERING-LEARNING.md 存在,在教学前将 legacy 文件在同目录改名为 MCP-LEARNING.md(rename the legacy file to MCP-LEARNING.md)。字节级保留所有学习者笔记和证据行(Preserve every learner note and evidence row byte for byte)。不能原子 rename 时,先复制,验证新文件匹配,再删除 legacy 文件。
  3. 只有两个文件名均不存在时才创建新状态文件。绝不以空白模板替换 legacy 进度。

Read the full file on GitHub · 155 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 7d ago First seen · 155 lines · 123 tokens per session scan A e103b52cf5e0

Subscribe to this mod's changes

learn-mcp is a skill published in the GitHub repository fancyboi999/ai-engineering-from-scratch-zh (1,055 stars, last pushed 2d ago), licensed MIT. It adds 123 tokens to every session and 2,361 once invoked, about $0.0006 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.