mcp-server-patterns

Codifies Node/TypeScript SDK patterns for building MCP servers with tools, resources, prompts, and transport options.

Updated Apr 2, 2026
One-click install
npx skills add https://github.com/richardnpaul/everything-vscode-copilot --skill mcp-server-patterns-richardnpaul
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: mcp-server-patterns
Source: https://github.com/richardnpaul/everything-vscode-copilot/tree/main/.github/skills/mcp-server-patterns
Command: npx skills add https://github.com/richardnpaul/everything-vscode-copilot --skill mcp-server-patterns-richardnpaul

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

MCP server development is error-prone and repetitive. This skill provides a structured pattern model for building MCP servers using the Node/TypeScript SDK, covering tools, resources, prompts, and transport choices to reduce boilerplate and mistakes.

Core Features & Use Cases

  • Pattern-driven scaffolding for MCP servers, including tool, resource, and prompt registration.
  • Guidance on transport strategies (stdio for local clients; Streamable HTTP for remote clients) and SDK compatibility across versions.
  • Practical use cases such as upgrading existing servers to new MCP docs or Context7 patterns and debugging registration/transport issues.

Quick Start

Create a new MCP server using the Node/TypeScript SDK and apply the provided patterns for tools, resources, and prompts in your server entrypoint.

Frequently Asked Questions about mcp-server-patterns

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I build an MCP server with Node and TypeScript?

To build an MCP server with Node and TypeScript, apply codified patterns for tool, resource, and prompt registration to reduce boilerplate and errors. This approach structures your server entrypoint using the Node/TypeScript SDK and Zod validation to align with current MCP specifications.

What is the best way to structure tools, resources, and prompts in an MCP server?

The best way to structure tools, resources, and prompts in an MCP server is using a pattern-driven scaffolding model. This skill codifies registration patterns to help developers avoid repetitive boilerplate and common implementation mistakes when defining server capabilities.

How do I choose between stdio and streamable HTTP transports for an MCP server?

Choose stdio transport for local clients and streamable HTTP transport for remote clients when configuring an MCP server. This skill provides guidance on transport strategies and SDK compatibility to ensure correct communication setup across different client environments.

Does the MCP Node TypeScript SDK support Zod validation?

Yes, MCP Node TypeScript SDK development supports Zod validation. This skill codifies implementation patterns that integrate Zod validation to ensure type safety and schema compliance when registering tools and resources.

Why is my MCP server tool registration not working after an SDK upgrade?

MCP server tool registration issues after an SDK upgrade often stem from misaligned patterns or broken transport compatibility. This skill helps debug registration and transport issues by aligning existing servers with current MCP docs and Node/TypeScript SDK specifications.