{"enrichment":{"faq":[{"a":"mcp-server-patterns teaches you to build MCP servers using the Node/TypeScript SDK. Start by initializing a project, importing the Server class, defining tools with input schemas, and choosing your transport layer\u2014stdio for local Cursor integration or Streamable HTTP for remote clients. The skill covers registration patterns and best practices for structuring your server code.","q":"How do I set up an MCP server with Node.js?"},{"a":"mcp-server-patterns explains that stdio transport connects MCP servers directly to local clients like Cursor through standard input/output, ideal for development. HTTP transport, specifically Streamable HTTP, enables remote client connections and is better for distributed setups. Your choice depends on whether you need local or remote access to your server's tools and resources.","q":"What's the difference between MCP stdio vs HTTP transport?"},{"a":"mcp-server-patterns covers tool registration by defining handlers that respond to tool_call requests. You specify tool names, descriptions, and input schemas using Zod for validation. When a client invokes a tool, your handler processes the input and returns results. The skill shows patterns for organizing multiple tools and handling both simple and complex tool implementations.","q":"How do I register tools in an MCP server?"},{"a":"mcp-server-patterns demonstrates using Zod schemas to define and validate tool input parameters. Define your schema with Zod's type system, attach it to your tool definition, and let the SDK validate incoming requests. This approach catches errors early and ensures type safety. The skill includes error handling patterns for validation failures and best practices for schema design.","q":"How can I validate MCP tool inputs with Zod schemas?"},{"a":"mcp-server-patterns teaches that MCP resources provide data access through URI-based handlers\u2014clients request resources and your server returns content. Prompt templates are reusable instruction sets that guide model behavior. Both extend your server's capabilities beyond tools. The skill covers implementing resource handlers, managing URIs, and creating effective prompt templates for Claude and other models.","q":"What are MCP resources and prompt templates?"},{"a":"mcp-server-patterns addresses debugging by explaining SDK API changes, version compatibility, and registration validation. Check your server's capabilities declaration, verify tool and resource handlers are properly attached, and use logging to trace requests. The skill covers common pitfalls like mismatched schemas and outdated SDK patterns, plus strategies for upgrading to newer MCP SDK versions.","q":"How do I debug MCP registration and SDK version issues?"}],"shadow_tags":["protocol-implementation","ai-agent-integration","transport-layer","schema-validation","server-architecture","tool-registration","resource-management","remote-execution"],"summary_rewrite":"Learn to construct MCP servers using the Node/TypeScript SDK, implementing tools for model invocation, resources for data access, and prompt templates. This skill covers registration patterns, transport selection between stdio for local clients and Streamable HTTP for remote, and validation best practices with Zod."},"files":[{"bytes":4083,"path":"skills/mcp-server-patterns/SKILL.md","sha256":"0d2d77ff4cffabd26a8db9a54fd16ae29063519fc2d7d2da3539c5e391a3973a","url":"https://skillfed.io/files/affaan-m/ECC/mcp-server-patterns/82c51dc4/SKILL.md"}],"id":"affaan-m/ECC/mcp-server-patterns","links":{"html":"https://skillfed.io/affaan-m/ECC/mcp-server-patterns","md":"https://skillfed.io/affaan-m/ECC/mcp-server-patterns.md","repo":"https://github.com/affaan-m/ECC"},"meta":{"agents_supported":["cursor"],"first_seen":"2026-07-28","forks":35692,"language":"JavaScript","last_updated":"2026-07-27","license":"MIT","name":"mcp-server-patterns","publisher":"affaan-m","stars":234207},"relations":{"similar":[{"id":"Pixel-Process-UG/superkit-agents/mcp-builder"},{"id":"Jeffallan/claude-skills/mcp-developer"},{"id":"Aradotso/mcp-skills/remote-mcp-server-with-auth"},{"id":"mhagrelius/dotfiles/building-mcp-servers"},{"id":"lucaperret/agent-skills/mcp-vercel"},{"id":"dotnet/skills/mcp-csharp-create"},{"id":"managedcode/dotnet-skills/mcp-csharp-create"},{"id":"managedcode/dotnet-skills/mcp"},{"id":"TravisLeeeeee/awesome-openclaw-personas/mcp-builder"},{"id":"rohitg00/awesome-claude-code-toolkit/mcp-development"}]},"slug":{"owner":"affaan-m","repo":"ECC","skill":"mcp-server-patterns"},"version":"82c51dc4"}
