build-mcp-server

仓库创建 2026年7月27日最近提交 19 小时前SkillHot 收录 8 小时前
▸ 精选理由

直接解决代理接入工具时常见的接口与上下文问题,实用性强。

▸ 风险提示

涉及网络服务与认证配置,部署不当可能暴露接口或凭证。

这个 Skill 做什么

指导构建或修复 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.

开发编程MCP工具集成服务端调试指导通用
0
Stars
0
Forks
4
仓库内 Skill
积累中
7 日增星
安装 / 使用
给你的 Agent 一句话(通用)
帮我安装这个 skill:https://raw.githubusercontent.com/jgobuilds/ai-standards-public/main/skills/build-mcp-server/SKILL.md
或 curl 直取 SKILL.md
curl -fsSL "https://raw.githubusercontent.com/jgobuilds/ai-standards-public/main/skills/build-mcp-server/SKILL.md"
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
via SKILL·HOT · 数据来自 GitHub 公开信息 · 原文版权归作者所有