mcp-server-patterns

★ 7.9 · ai-tooling

mcp-server-patterns is a Claude Code skill that guides building Model Context Protocol servers using the Node/TypeScript SDK, covering tools, resources, prompts, Zod validation, and transport configuration. It explains how to register tools (`tool()` / `registerTool()`), read-only resources (`resource()` / `registerResource()`), and reusable prompt templates, while choosing between stdio transport for local clients like Claude Desktop and Streamable HTTP for remote clients like Cursor or cloud AI assistants. Because the SDK API has changed across releases, the skill explicitly directs developers to verify current method signatures via Context7 or the official MCP documentation rather than relying on cached examples. It's aimed at engineers implementing a new MCP server, extending an existing one with new capabilities, upgrading the SDK, or troubleshooting transport and registration issues.