返回全部动态

MCP TypeScript SDK v2.0.0 beta 发布:支持新规范并优化构建

原标题:@modelcontextprotocol/server-legacy@2.0.0

MCP TypeScript SDK Releases一手来源产品发布质量 77

AI 摘要

MCP TypeScript SDK 发布 v2.0.0 首个 beta 版本,支持 MCP 2026-07-28 规范修订。该版本将 schema 源模块移至 @modelcontextprotocol/core 包,避免重复打包,并新增 CommonJS 构建支持。此外,协议修订的 wire schemas 改为首次验证时惰性构建,以优化导入性能。

以上摘要由 AI 生成,可能存在误差。事实请以原文为准。

正文节选

### Minor Changes - [#2477](https://github.com/modelcontextprotocol/typescript-sdk/pull/2477) [`8e1d2e9`](https://github.com/modelcontextprotocol/typescript-sdk/commit/8e1d2e92b1720d2520122b3a5f20ea084edaf3c4) Thanks [@felixweinberger](https://github.com/felixweinberger)! - Move the schema source modules (spec schemas, OAuth schemas, protocol constants) into `@modelcontextprotocol/core` and resolve them from there as a regular runtime dependency instead of bundling a private copy into each pack


发布时间:2026-07-28 07:55
抓取时间:2026-08-02 00:22
来源机构:MCP
阅读原文github.com