Builds MCP servers that expose external APIs as LLM-callable tools. Covers research, implementation, testing, and evaluation with schema design, pagination, error handling, and assessment XML.
Ships in 10-platform. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
MCP 服务器的质量不取决于工具实现得多全,而取决于这些工具(输入/输出 schema、描述、功能)能否让一个没有额外上下文、只能访问该服务器的 LLM 完成真实、复杂的任务。
不该用(边界):
claude-api,不是建服务器。skill-creator,那是 Skill 不是 MCP server。四个阶段,每阶段可独立验证:
阶段 1 · 研究与规划
https://modelcontextprotocol.io/sitemap.xml 找页,页面后加 .md 取 markdown。推荐技术栈 TypeScript(SDK 成熟、模型擅长生成、静态类型好 lint);远程服务器用 Streamable HTTP(无状态 JSON),本地用 stdio。阶段 2 · 实现 4. 搭基础设施:共享 API 客户端(含鉴权)、统一错误处理、JSON/Markdown 两种响应格式化、分页支持。绝不在工具间复制粘贴逻辑(DRY)。 5. 逐个实现工具,每个工具必须有:
.strict() 禁多余字段)、Python 用 Pydantic;字段带约束、描述和示例。outputSchema,并在响应里返回 structuredContent(TS SDK 特性)。readOnlyHint / destructiveHint / idempotentHint / openWorldHint,如实标注(这是提示不是安全保证)。阶段 3 · 构建与测试
6. TypeScript:npm run build 验证编译;Python:python -m py_compile your_server.py。用 npx @modelcontextprotocol/inspector 连服务器手测;必要时配 code-reviewer 做代码审查。
阶段 4 · 评估(衡量好不好用) 7. 造 10 道评估问题,每道必须:独立、只读非破坏、复杂(需多次甚至几十次工具调用)、真实、可验证(单一答案、可字符串比对)、稳定(答案不随时间变)。避免能被关键词直接搜到的简单题;答案尽量人类可读(名字/日期/数量),不要列表/复杂结构。 8. 输出 XML 评估文件,跑评估脚本(自动用 Claude 当 Agent 解题并比对答案),按反馈迭代工具设计。
命名约定(强约束):
{service}_mcp(如 slack_mcp);Node/TS {service}-mcp-server(如 slack-mcp-server)。github_create_issue、slack_send_message,避免与其他服务器撞名。TypeScript 工具注册(现代 API,勿用废弃的 server.tool()):
const UserSearchInput = z.object({
query: z.string().min(2).max(200).describe("匹配姓名/邮箱的搜索串"),
limit: z.number().int().min(1).max(100).default(20).describe("返回上限"),
offset: z.number().int().min(0).default(0).describe("分页偏移"),
}).strict();
server.registerTool("example_search_users", {
title: "Search Example Users",
description: "按姓名/邮箱搜索用户……(写清参数、返回 schema、该用/不该用例子)",
inputSchema: UserSearchInput,
annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: true },
}, async (params) => {
const output = { total, count: users.length, offset: params.offset, users,
has_more: total > params.offset + users.length };
return { content: [{ type: "text", text: JSON.stringify(output, null, 2) }],
structuredContent: output };
});
Python / FastMCP:
mcp = FastMCP("example_mcp")
class UserSearchInput(BaseModel):
model_config = ConfigDict(str_strip_whitespace=True, extra='forbid')
query: str = Field(..., description="搜索串", min_length=2, max_length=200)
limit: int | None = Field(default=20, ge=1, le=100, description="返回上限")
@mcp.tool(name="example_search_users",
annotations={"readOnlyHint": True, "destructiveHint": False,
"idempotentHint": True, "openWorldHint": True})
async def example_search_users(params: UserSearchInput) -> str:
'''按姓名/邮箱搜索用户。Args/Returns/Examples 写全……'''
...
分页响应统一结构: {total, count, offset, items, has_more, next_offset},默认 20~50 条。
评估 XML:
<evaluation>
<qa_pair>
<question>找出 2024 Q2 创建、已完成任务数最多的项目,项目名是?</question>
<answer>Website Redesign</answer>
</qa_pair>
</evaluation>
跑评估(stdio 模式脚本会自动拉起服务器):
python scripts/evaluation.py -t stdio -c python -a my_mcp_server.py \
-e API_KEY=abc -o report.md evaluation.xml
limit,返回 has_more/next_offset/total;大响应设 CHARACTER_LIMIT(如 25000)截断并提示用 offset/过滤。Markdown 给人看(时间转可读、名字带 ID),JSON 给程序处理。127.0.0.1、校验 Origin。claude-api — 在应用中调用 LLM、配置缓存/工具调用等单点能力时用它,本词条只负责「建服务器」。skill-creator — 把工作流封装成本词典 Skill 用它,区别于 MCP server。code-reviewer — 实现完成后审查 DRY、错误处理一致性、类型覆盖与工具描述质量。来源改编自 Anthropic
mcp-builder(Apache-2.0),按中文技能大典 SCHEMA 适配重写,保留关键命令与约束。
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
/10-platform:mcp-builderfrom 10-platform
npx claudepluginhub findscripter/everything-skills --plugin 10-platform66 skills in this plugin
/agentmail-email-infra当 AI 智能体需要真实邮箱完成注册/验证码/事务通信时使用;通过 AgentMail REST API 开通账号、收发邮件、注册 Webhook、查询 karma 余额并产出可执行调用;不适用于自建/企业 SMTP/IMAP 或个人邮箱代收。触发词:AgentMail、智能体邮箱、theagentmail.net/agentphone-voice-sms-agents当需要给 AI 代理配备电话号码、发起/接听语音通话、收发短信、查看通话转写或配置 Webhook 时使用;调用 AgentPhone REST API(base=https://api.agentphone.to/v1)完成代理/号码/通话/短信/Webhook/用量的全生命周期管理,产出可直接执行的 curl 与 Webhook 处理代码;不适用于自建 Twilio/SIP/STUN 等底层电信栈或非 AgentPhone 平台。触发词:电话代理、语音通话、短信、号码、Webhook、转写。/ai-native-cli-design当设计/改造供 AI 智能体调用的命令行工具时使用;按 core/recommended/ecosystem 三层产出 JSON 优先、可校验的 CLI 契约(默认 JSON、结构化错误、退出码、护栏、agent/ 目录与自描述);不适用于纯人类交互 CLI、GUI 或库 API 设计;触发词:agent CLI、AI 友好命令行、CLI JSON 输出、退出码规范、agent/ 目录Other plugins' skills for the same job