mcp-server-patterns

Develop MCP servers with standardized patterns for tools, resources, and transports.

1|Updated Apr 6, 2026
One-click install
npx skills add https://github.com/vrcms/everything-qwen-code --skill mcp-server-patterns-vrcms
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: mcp-server-patterns
Source: https://github.com/vrcms/everything-qwen-code/tree/main/.qwen/skills/mcp-server-patterns
Command: npx skills add https://github.com/vrcms/everything-qwen-code --skill mcp-server-patterns-vrcms

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires @modelcontextprotocol/sdk, zod.

What problem does it solve?

This skill addresses the complexity of developing Model Context Protocol (MCP) servers, helping developers navigate evolving SDK APIs and transport configurations.

Core Features & Use Cases

  • Tool and Resource Registration: Provides standardized patterns for exposing server tools, read-only resources, and prompt templates.
  • Transport Configuration: Guides the implementation of stdio for local clients like Claude Desktop and Streamable HTTP for remote clients like Cursor.
  • Validation and Best Practices: Ensures input validation using Zod and promotes idempotent tool design for reliable AI interactions.

Quick Start

Use the mcp-server-patterns skill to initialize a new MCP server project with the latest TypeScript SDK and Zod validation.

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 TypeScript and the Model Context Protocol SDK?

To build an MCP server with TypeScript, use standardized patterns for tool and resource registration alongside the Model Context Protocol SDK. This approach ensures technical compliance with current API signatures and Zod-based input validation requirements.

What is the best way to validate input for MCP server tools?

The best way to validate input for MCP server tools is using Zod. This skill provides standardized patterns that enforce Zod-based input validation and promote idempotent tool design for reliable AI interactions.

Does the Model Context Protocol SDK support Streamable HTTP for remote clients like Cursor?

Yes, the Model Context Protocol SDK supports Streamable HTTP for remote clients like Cursor. This skill guides the implementation of Streamable HTTP configurations alongside stdio transport for local clients like Claude Desktop.

How do I expose read-only resources and prompt templates in a Model Context Protocol server?

To expose read-only resources and prompt templates in a Model Context Protocol server, apply standardized tool and resource registration patterns. These patterns ensure proper integration with local and remote AI clients.

Why does my MCP server fail to connect with Claude Desktop over stdio?

An MCP server fails to connect over stdio usually due to incorrect transport configuration or evolving SDK API mismatches. This skill provides standardized stdio transport patterns to ensure technical compliance and resolve connection issues.