
Mcp Server Patterns
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-codeInstalls 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- Production Scheduling4.6K
- Quality Nonconformance4.6K
- Videodb4.6K
- Agent Eval4.5K
- Claude Devfleet4.5K
- Dmux Workflows4.5K
- Perl Patterns4.5K
- Perl Security4.5K
- Perl Testing4.5K
- Returns Reverse Logistics4.5K
- Team Builder4.5K
- X Api4.5K
- Design System4.4K
- Nuxt4 Patterns4.4K
- Browser Qa4.3K
- Jira Integration4.3K
- Rules Distill4.3K
- Click Path Audit4.2K
- Git Workflow4.2K
- Hexagonal Architecture4.2K
- Remotion Video Creation4.2K
- Santa Method4.2K
- Skill Comply4.2K
- Laravel Verification4.1K