← 返回首页
技能

mcp-typescript-sdk-upgrade-to-v2

github · 2.0.0-alpha.0 · 下载量 1.4万 · 热度分 46.0

出处与授权

许可证: MIT 许可证

本站只收录项目元数据与简介,不对作者正文做转载;完整内容请到上方出处查看。商用前请自行核对原仓库的 LICENSE 与 NOTICE。

⚠ 上游仓库根目录未找到 LICENSE/COPYING 文件,以上许可证名来自第三方登记、未经核实。请到出处自行确认后再商用。

产品介绍

'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".'

资源信息

作者:modelcontextprotocol
分类:工作流 & 自动化
语言:en
版本:2.0.0-alpha.0
认证方式: 无需认证
许可证:MIT
是否付费: 官方标注免费
发布方:modelcontextprotocol

许可证信息摘自官方源,可能过时或缺失。商用前请以原仓库的 LICENSE 文件为准。

标签
["githubtypescript-sdkskillsmcp-typescript-sdk-upgrade-to-v2"]

功能说明

  • TL;DR — quick path
  • What the codemod handles
  • What the codemod does NOT handle
  • Manual changes (what the codemod does not handle)
  • Need help?
适用场景
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

适用平台

Claude DesktopClaude Code任意 MCP 客户端

信息边界说明

本页信息摘自官方文档,仅作技术信息呈现,不代表本站的判断或推荐。价格、配额、可用性以官方最新说明为准。你离开本站后的任何行为(申请 Key、付费、部署、商用),本站不做任何承诺与担保。

什么是技能

技能(Skill)是封装好的单项能力,比如文字识别、文档摘要、关键词提取。开发者把调用逻辑和提示词打包,使用者像用插件一样加载即可,无需了解底层模型。启枢技能 收录大量技能,可直接试跑或编入方案。