← Back to home
Skill

mcp-typescript-sdk-upgrade-to-v2

github · 2.0.0-alpha.0 · Downloads 13.8K · Heat 46.0

Source & License

License: MIT License

This site lists project metadata and a short summary only. We do not republish the author’s original content — follow the source link above for the full text. Verify the LICENSE and NOTICE in the original repository before commercial use.

Warning: no LICENSE/COPYING file was found in the upstream repository root. The license name above comes from a third-party registry and is unverified. Confirm with the source before commercial use.

Introduction

'Upgrades TypeScript code from v1 of the MCP TypeScript SDK (`@modelcontextprotocol/sdk`) to v2 (`@modelcontextprotocol/client`, `/server`, `/core` and the middleware packages): runs the official codemod, then works through what it cannot rewrite. Use whenever a project depends on `@modelcontextprotocol/sdk` and the user wants to migrate, upgrade, port or bump it to v2, or is fixing v1-to-v2 breakage such as missing `McpError`, `RequestHandlerExtra` or `*Schema` exports, `@mcp-codemod-error` markers, or changed auth, error, transport or handler behavior, even if they do not say "migration".'

Resource Information

Author:modelcontextprotocol
Category:Automation
Language:en
Version:2.0.0-alpha.0
Auth: No auth
License:MIT
Pricing: Marked free
Publisher:modelcontextprotocol

License information is collected from official sources and may be outdated or missing. Refer to the LICENSE file in the original repository before commercial use.

Tags
["githubtypescript-sdkskillsmcp-typescript-sdk-upgrade-to-v2"]

Features

  • TL;DR — quick path
  • What the codemod handles
  • What the codemod does NOT handle
  • Manual changes (what the codemod does not handle)
  • Need help?
Use cases
Updates package.json dependencies (@modelcontextprotocol/sdk → the v2 packagesRewrites .tool() / .prompt() / .resource() to registerTool / registerPromptDrops the result-schema argument from client.request() / client.callTool() forRoutes the spec Zod Schema constants imported from sdk/types.js toRenames ErrorCode → ProtocolErrorCode and routes the local-only membersRenames every StreamableHTTPError reference to SdkHttpError and adds the import

Supported platforms

Claude DesktopClaude Code任意 MCP 客户端

Information boundary

Information on this page is collected from official documents for technical presentation only and does not imply our endorsement. Pricing, quotas and availability are subject to the latest official statements. We make no commitment regarding any action you take after leaving this site.

What is a Skill

A Skill is a packaged single capability, such as text recognition, document summarization, or keyword extraction. Developers wrap the calling logic and prompts into a plugin-like unit, so users can load it without understanding the underlying model. StackPilot indexes a large number of skills that can be tried instantly or assembled into a plan.