build-mcp-sdk-v2
Installation
SKILL.md
Build MCP SDK v2
Build and maintain MCP servers using the v2 split-package SDK: @modelcontextprotocol/server, @modelcontextprotocol/client, @modelcontextprotocol/core. Node.js 20+, ESM-only, Zod v4. Released Q1 2026, community adoption still early.
When to use a different skill instead:
@modelcontextprotocol/sdk(single package) inpackage.json→ usebuild-mcp-sdk- Handlers use
(args, extra)withextra.sendNotification/extra.authInfo→ that's v1, usebuild-mcp-sdk - Uses the
mcp-usewrapper library → usebuild-mcp-use-server
How to detect v2: Look for split package imports (@modelcontextprotocol/server, @modelcontextprotocol/client), handlers using (args, ctx) with ctx.mcpReq.log() / ctx.mcpReq.signal, and "type": "module" in package.json.
Core rules: