A straightforward reference for building MCP servers with the Node/TypeScript SDK. Covers the essentials: registering tools, resources, and prompts with Zod validation, plus when to use stdio (Claude Desktop) versus Streamable HTTP (Cursor, cloud). The SDK API has changed over time, so the skill wisely tells you to check Context7 or the official docs for current method signatures rather than cargo culting old patterns. Useful if you're spinning up a new server or debugging why your tools aren't registering. Includes best practices on schema design, error handling, and idempotency that save you from common mistakes.

skills.sh installs
4.6K
GitHub stars
229.1K
last updated
Jul 14, 2026

Install

$ npx -y skills add affaan-m/everything-claude-code --skill mcp-server-patterns --agent claude-code

Installs into .claude/skills of the current project.

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

Sponsors

Details

Repository
github.com/affaan-m/everything-claude-code
Categories
Backend & APIs, AI & Agent Building
First seen
Apr 16, 2026

More from affaan-m/everything-claude-code

All 256
1wordpress avatarwp-interactivity-apiwordpress/agent-skillsUse when building or debugging WordPress Interactivity API features (data-wp-* directives, @wordpress/interactivity store/state/actions, block viewScriptModule 4.5Kskills.sh installs
2ghostsecurity avatarghost-proxyghostsecurity/skillsStarts and controls the reaper MITM proxy to capture, inspect, search, and replay HTTP/HTTPS traffic between clients and servers. Capabilities include starting/4.2Kskills.sh installs
3yaklang avatarapi-secyaklang/hack-skillsEntry P1 category router for API security. Use when choosing between API recon, authorization, token abuse, and hidden-parameter workflows before any deeper API4.1Kskills.sh installs
4yaklang avatarauthbypass-authentication-flawsyaklang/hack-skillsAuthentication bypass testing playbook. Use when assessing login flows, password reset logic, account recovery, MFA bypass, token predictability, brute-force re4Kskills.sh installs
5yaklang avatarwebsocket-securityyaklang/hack-skillsWebSocket handshake, CSWSH, tooling (wsrepl, ws-harness, Burp), and common flaws. Use when apps use real-time channels, chat, notifications, or WS-backed APIs.4Kskills.sh installs
6yaklang avatarapi-authorization-and-bolayaklang/hack-skillsAPI authorization and BOLA testing playbook. Use when APIs expose object identifiers, nested resources, hidden writable fields, or weak function-level authoriza3.9Kskills.sh installs