build-mcp-sdk
Build MCP SDK
Build and maintain MCP servers using @modelcontextprotocol/sdk v1.x (single package, Zod-based, protocol version 2025-11-25). Covers McpServer, registerTool, registerResource, registerPrompt, transports, OAuth 2.1, sessions, and deployment.
When to use a different skill instead:
- Imports from
@modelcontextprotocol/server(split packages) → usebuild-mcp-sdk-v2 - Handlers use
ctx.mcpReqinstead of flatextra→ usebuild-mcp-sdk-v2 - Uses the
mcp-usewrapper library → usebuild-mcp-use-server - Auditing/optimizing an existing server → use
optimize-mcp-server
How to detect v1: @modelcontextprotocol/sdk (single package) in package.json. Handlers use (args, extra) with extra.sendNotification, extra.authInfo, extra.signal at the top level.
Core rules:
- Always use
McpServer— theServerclass is deprecated for direct use - Always use
registerTool/registerResource/registerPrompt— positionaltool()/resource()/prompt()overloads are deprecated - Always use
zodfor input/output schemas — the SDK converts them to JSON Schema 2020-12 automatically - Always use
StreamableHTTPServerTransportfor HTTP —SSEServerTransportis deprecated
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