build-mcp-server-sdk-v2
Build MCP Server (SDK v2 Alpha)
Build and maintain MCP servers on the v2 alpha split-package SDK: @modelcontextprotocol/server, @modelcontextprotocol/client, @modelcontextprotocol/core, plus /node, /express, /hono adapters. ESM-only, Node 20+, Zod v4. Status as of 2026-05-09: latest npm tag is 2.0.0-alpha.2 — pin exact, plan rollback.
When to use
Trigger this skill if any of these are true:
- Building a brand-new MCP server and the user picks v2, "the alpha", or split packages.
package.jsonalready depends on@modelcontextprotocol/server,@modelcontextprotocol/client, or@modelcontextprotocol/core.- Existing code uses
new McpServer(...)from@modelcontextprotocol/serverandserver.registerTool(...)with the high-level API. - Tool/resource/prompt handlers use
(args, ctx)withctx.mcpReq.signal,ctx.mcpReq.log(),ctx.mcpReq.notify(), orctx.http?.authInfo. - HTTP work uses
NodeStreamableHTTPServerTransportfrom@modelcontextprotocol/node, orcreateMcpExpressApp()/createMcpHonoApp()from the official adapters. - Schemas are full
z.object({...})fromzod/v4, not raw-shape shorthand.
Do NOT use this skill if any of these are true:
package.jsondepends on the single-package@modelcontextprotocol/sdk(v1) — usebuild-mcp-server-sdk-v1instead.- Handlers use
(args, extra)withextra.sendNotification,extra.authInfo, orextra.signal— that is v1; usebuild-mcp-server-sdk-v1.
More from yigitkonur/skills-by-yigitkonur
run-research
Use skill if you are answering one technical research question with current web evidence, Reddit practitioner experience, and source-backed synthesis, optionally fanned out across parallel subagents.
42run-agent-browser
Use skill if you are driving the agent-browser CLI for ad hoc browser automation — @ref snapshots, sessions, forms, extraction, screenshots, headed/stealth, or provider runs.
38publish-npm-package
Use skill if you are publishing to npm via GitHub Actions release workflow with trusted publishing, NPM_TOKEN, provenance, semantic-release, changesets, release-please, or fixing npm publish CI.
35init-agent-config
Use skill if you are creating, auditing, or migrating CLAUDE.md, AGENTS.md, or REVIEW.md instruction files, folder-scoped agent guidance, or cross-agent companion entrypoints.
34build-mcp-use-server
Use skill if you are building TypeScript MCP servers with mcp-use/server — server.tool, response helpers, ctx.auth, sessions, transports, widgets, Inspector, deploy.
34build-skills
Use skill if you are creating or substantially revising a Claude skill and need workspace-first evidence, remote comparison, and repo-fit synthesis before writing SKILL.md.
32