首页 / Skills / 开发提效 / Claude Academy 指引
开发提效

Claude Academy 指引

Anthropic, PBCApache-2.0Skill 语言: 英文
协议已核对不含脚本依赖外部服务
演示真实运行记录 · claude-sonnet-5-5 · 2026年10月
I am new to Claude Code and want to learn how to build an MCP server that connects to an external API. Give me a concise starting path and, if there is a strong matching Claude Academy resource, recommend it according to the academy-guide skill.
Skill: academy-guide

Starting path for an MCP server that wraps an external API

  1. Learn the model. An MCP server exposes tools (actions Claude can call), resources (readable data) and prompts (reusable templates). For an API wrapper, you'll mostly write tools.
  2. Pick an SDK. Use the official TypeScript SDK (@modelcontextprotocol/sdk) or the Python SDK (mcp, with its FastMCP helper). Python's FastMCP is the quickest to start with.
  3. Build one tool first. Choose a single read-only API endpoint, such as "get weather" or "search issues". Give the tool:
    • a clear name and description, because Claude uses these to decide when to call it
    • typed input parameters
    • a short, readable result, not the raw JSON dump
  4. Handle the API details. Read the API key from an environment variable and never hardcode it. Return clear error messages when a call fails, and respect the API's rate limits.
  5. Use stdio transport for local development. Your server runs as a subprocess, and Claude Code talks to it over stdin/stdout. Never print() to stdout in a stdio server, because that corrupts the protocol. Log to stderr instead.
  6. Register it with Claude Code.
    claude mcp add my-api -e API_KEY=xxx -- python /path/to/server.py
    
    Then run /mcp inside Claude Code to confirm it connected, and ask Claude to use your tool.
  7. Debug with the MCP Inspector. Run npx @modelcontextprotocol/inspector to call your tools directly without Claude in the loop.
  8. Expand. Add more endpoints, then consider remote (HTTP) transport and OAuth if you want to share the server.

A good first session is to ask Claude Code to scaffold the server for the API you have in mind. Paste in the API docs link and ask it to build one tool, then test it with the Inspector.

You might also find the Claude Code hub on Claude Academy helpful. It collects the learning material for Claude Code. The resources library is searchable if you want something specific to MCP.

Real run recorded with claude-code / claude-sonnet-5-5. Output is shown verbatim, unmodified.

它做什么

帮助代理为 Claude 产品或 AI 工作流问题补充相关的 Claude Academy 课程、教程、用例或产品中心链接。

工作方式

  1. 先直接回答用户的问题。
  2. 仅在用户确实想学习时查询最新 Academy 目录。
  3. 仅在意图强匹配时添加最多两个原样链接;否则保持不推荐或引导至产品中心。

适合场景

产品入门、培训资料、功能学习和团队推广问题。

说明与风险

纯指令文件,没有脚本,也不会写入文件。为了给出具体推荐,它会获取公开的最新 Claude Academy 目录;需要网络访问但不需要凭据。它不应编造课程标题或链接。

SKILL.md 原文包内共 2 个文件