本文へスキップ
Kitbay
スキル

mcp-server-patterns

MIT2026年11月17日 更新305,644GitHubスター

A skill from the ECC collection with guidance for building and debugging MCP servers with the official Node and TypeScript SDK.

スキルの内容

A skill from the ECC collection with guidance for building and debugging MCP servers with the official Node and TypeScript SDK. It explains the three things a server can expose (tools the model calls, read-only resources addressed by URI, and reusable prompts), when to use stdio for local clients and Streamable HTTP for remote ones, and why tool logic should stay separate from the transport. Because the SDK's registration methods have changed between versions, the agent is told to check current names in the official MCP docs or through Context7 before writing code. Further advice covers input schemas with Zod, structured errors instead of stack traces, safe retries, rate limits and pinning the SDK version.

できること

  • Explain MCP tools, resources and prompts
  • Choose between stdio and Streamable HTTP
  • Validate tool inputs with Zod
  • Check current SDK method names before coding