build-mcp-server
直接解决代理接入工具时常见的接口与上下文问题,实用性强。
涉及网络服务与认证配置,部署不当可能暴露接口或凭证。
指导构建或修复 MCP(Model Context Protocol)服务器以接入新能力。
指导如何构建、审查或修复 MCP(Model Context Protocol)服务器,让代理能调用新能力。适合要把服务接入工具、手工写 JSON-RPC 或排查代理不调用工具的场景,建议在写服务器前运行。还会帮助你在采用现成实现、生成代码或手写之间做决策,并覆盖工具接口约定、失败上报、出口声明和合规自测(如 mcp_smoke.py)。
▸ 展开 SKILL.md 英文原文
Build, review, or fix an MCP (Model Context Protocol) server so an agent can call a new capability. Use whenever the user wants to "give the agent a tool", "wire up an MCP", "connect <service> to Claude", "make an MCP server", asks why an agent is not calling a tool, or is about to hand-write JSON-RPC. Covers the adopt-vs-generate-vs-write decision, the tool-surface conventions that decide whether a model actually uses the tool correctly, the failure-reporting rules, the egress declaration, and the conformance gate (scripts/mcp_smoke.py). Run it BEFORE writing a server, not after.
帮我安装这个 skill:https://raw.githubusercontent.com/jgobuilds/ai-standards-public/main/skills/build-mcp-server/SKILL.mdcurl -fsSL "https://raw.githubusercontent.com/jgobuilds/ai-standards-public/main/skills/build-mcp-server/SKILL.md"# Building an MCP server Written after hand-rolling one, skipping every step below, and shipping a tool whose answer path did not work. The order here is the point. ## 1. Do not write one yet Three ways to get an MCP server, cheapest first: | Route | When it wins | |---|---| | **Adopt an existing server** | The service is popular. Check the vendor's own, then the MCP registry/community list. A maintained server beats yours the day the API changes. | | **Generate one** | The capability is "wrap this API". Generators (e.g. `cli-printing-press`, already wired into this workspace's capability factory) produce a CLI + MCP pair and bake in token-efficiency conventions. | | **Write one** | Genu