Skip to content
affaan-m avatar

Mcp Server Patterns

Practical guide to building MCP servers with the Node/TypeScript SDK, covering tools, resources, prompts, and transport choice.

CCM score
63 of 100
skills.sh installs
11.9K
GitHub stars
312.6K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers tools, resources, and prompts, plus the core concepts that separate actions, read-only data, and reusable templates
  • Explains stdio for local clients versus Streamable HTTP for remote clients, with legacy HTTP/SSE kept for compatibility
  • Recommends Zod schemas for every tool input and warns that SDK method signatures change across versions
  • Designed for developers building, upgrading, or debugging MCP servers who need current API details from Context7 or official docs

Install

$ npx -y skills add affaan-m/ecc --skill mcp-server-patterns -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

MCP Server Patterns

The Model Context Protocol (MCP) lets AI assistants call tools, read resources, and use prompts from your server. Use this skill when building or maintaining MCP servers. The SDK API evolves; check Context7 (query-docs for "MCP") or the official MCP documentation for current method names and signatures.

For the broader routing decision of when a capability should be a rule, a skill, MCP, or a plain CLI/API workflow, see docs/capability-surface-selection.md.

When to Use

Use when: implementing a new MCP server, adding tools or resources, choosing stdio vs HTTP, upgrading the SDK, or debugging MCP registration and transport issues.

How It Works

Core concepts

Details

Repository
github.com/affaan-m/ecc
Categories
Skill & Plugin Building, AI Agents & LLM Apps, Backend & APIs
First seen
Jul 14, 2026

Questions

What does the mcp-server-patterns skill help me build?

It guides you in building MCP servers with the Node and TypeScript SDK, covering tools, resources, prompts, and Zod validation. It also explains choosing between stdio and Streamable HTTP transport, and it points you to Context7 or the official MCP docs for current API details.

How do I install the mcp-server-patterns skill?

Run npx -y skills add affaan-m/ecc --skill mcp-server-patterns -y inside your project. Once installed, the agent can use the skill's guidance when you build or debug an MCP server.

What do I need before using mcp-server-patterns?

You need a Node and TypeScript setup and the @modelcontextprotocol/sdk and zod packages, installed with npm install. The skill's examples use these packages to register tools and resources.

When should I use stdio versus Streamable HTTP with this skill?

The skill says stdio suits local clients such as Claude Desktop, while Streamable HTTP is preferred for remote clients such as Cursor or cloud setups. It also notes that legacy HTTP and SSE should be used only when backward compatibility is needed.

Where does mcp-server-patterns stand in its category?

It sits in the Skill and Plugin Building category and ranks in the top 25 on that category page. Its focus is narrow: MCP server design with the Node and TypeScript SDK, including tools, resources, prompts, and transport choice.

More from affaan-m/ecc

All 257

Similar to Mcp Server Patterns

More Skill & Plugin Building