create-mcp-server
БесплатноБез исполняемых скриптовНе проверенBuild, iterate, and evaluate Model Context Protocol (MCP) servers that expose external services as tools an LLM can call. Covers schema/tool design, error…
от open-gsd★ 1 399 звёзд на GitHubОб этом скилле
Invocation points:
- User describes a service or API they want an LLM to reach
/gsd mcp initscaffolds config but there's a tool integration to build- Replacing a hand-rolled extension with a standard MCP server
DESIGN FOR THE MODEL, NOT THE API. A raw REST endpoint is rarely the right tool. Group, filter, and pre-shape responses so the model gets what it needs to reason, not a 40KB JSON blob it has to summarize. Fewer, deeper tools beat many, shallow ones.
Step 1: Research and scope
- Study modern MCP design. Read the latest MCP protocol docs (not training data — fetch them). Read 2–3 reference implementations to see current patterns.
- Pick a framework. TypeScript is the default — the reference SDK is the most mature. Python is fine for data-heavy or ML adjacencies.
- Analyze the target API. Map the external service's endpoints, auth, rate limits, pagination, error shapes. Identify what a human workflow on top of it actually looks like — that's the cut line for tool design.
- Produce a brief. One page: what the server does, who calls it, the 5–10 tools you plan to expose, and the top 3 design trade-offs. Confirm with the user.
Step 2: Set up the project
Skeleton:
server/
src/
index.ts # MCP entry point — stdio or sse transport
client.ts # API client with auth, retries, typed errors
tools/ # one file per tool, or grouped by domain
pagination.ts # shared cursor handling
errors.ts # MCP-friendly error formatting
package.json # @modelcontextprotocol/sdk as dep
tsconfig.json
README.md # how to run, env vars, rate-limit notes
evals.xml # 10 eval questions (Phase 4)
Core infrastructure goes first: API client with typed errors, pagination helpers, consistent retry/timeout behavior. Do not inline these per tool.
Step 3: Implement tools
For each tool:
- Name: verb-noun, lowercase, snake_case.
search_issues,get_customer,create_deployment. Notdo_thingorapi_v2_post. - Description (frontmatter): 2–4 sentences. State what the tool does, when to use it, when NOT to use it, and any required fields or quirks. This is the model's entire interface to the tool — write it carefully.
- Input schema (JSON Schema): required fields marked, every field has a description, enums enumerated, examples included for free-form strings.
- Output shape: typed, minimal, decision-ready. If the raw API returns 40 fields and only 6 matter for follow-up calls, return 6.
- Error handling: never return raw HTTP errors. Translate to human-readable messages: "Rate limit exceeded (retry in 30s)", "Authorization expired", "No record found for ID X". Include the action the caller should take next.
- Pagination: expose cursors explicitly. Do not leak "page N of M" into the model — leak "more results available, pass
cursor: abc123to continue."
Step 4: Build and test with MCP Inspector
- Run the server under MCP Inspector. Verify it registers, every tool lists with its description, inputs schema-validate, outputs shape correctly.
- Call every tool at least once manually through the Inspector UI. Check error paths.
- Fix any "looks fine in isolation, breaks under the Inspector's framing" issues.
Step 5: Produce the eval set
Write 10 evaluation questions in evals.xml that exercise the server end-to-end. Each question should require 2+ tool calls and at least one decision the model has to make based on earlier output. Cover:
- Happy path (2–3 questions)
- Error recovery (2 questions — "the first call failed, what next?")
- Pagination (1 question)
- Decision under partial information (2–3 questions)
- Cross-tool composition (1–2 questions)
Format:
<evals>
<eval id="1">
<question>...user request...</question>
<expected>...c
Установить create-mcp-server в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл create-mcp-server?
Build, iterate, and evaluate Model Context Protocol (MCP) servers that expose external services as tools an LLM can call. Covers schema/tool design, error handling, pagination, MCP Inspector testing, and an eval set. Use when asked to "build an MCP server", "create an MCP tool", "wrap this API as MCP", "expose X to Claude", or when extending GSD with custom tool integrations.
Как установить скилл create-mcp-server?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл create-mcp-server запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic