MCP TypeScript SDK 发布 2.4.0,新增 Skills over MCP
原标题:2.4.0
AI 摘要
MCP TypeScript SDK 发布 2.4.0 版本,client、server、core、server-legacy、codemod 等包同步升级。新增 Skills over MCP(SEP-2640),允许服务端发布技能文件夹、客户端列出并校验;同时支持 token 刷新时可选传入 scope。升级说明包含破坏性变更:number 参数上的 x-mcp-header 被拒绝、outputSchema 结果不再包裹在 result 中、Ajv 校验器拒绝非法 URI scheme。
正文节选
| Package | Version | |---|---| | `@modelcontextprotocol/client` | 2.4.0 | | `@modelcontextprotocol/server` | 2.4.0 | | `@modelcontextprotocol/core` | 2.4.0 | | `@modelcontextprotocol/server-legacy` | 2.4.0 | | `@modelcontextprotocol/codemod` | 2.4.0 | | `@modelcontextprotocol/node` | 2.1.2 | | `@modelcontextprotocol/express`, `hono`, `fastify` | unchanged | ## Upgrade notes - **`x-mcp-header` on a `number` parameter is rejected**, as the 2026-07-28 spec requires: the client does n