在从 v1.24.2 升级到 v1.25.0+ 后,部署在 AWS Lambda 函数 URL 上的 MCP 服务器停止工作。
作者: severi创建于 2026年1月21日更新于 2026年9月17日
标签bugready for workP2fix proposed
1.25.0: 连接失败 1.25.3: 连接成功,但工具调用返回 null (未测试 1.25.1-1.25.2) 疑似 PR #1209 的 fetch 传输与 Lambda + serverless-express 之间不兼容,后者期望使用 Node.js 样式的流式传输。 ** 重现步骤 ** 1. 将 MCP 服务器部署到 Lambda 函数 URL,使用 StreamableHTTPServerTransport + @codegenie/serverless-express 2. 使用 Claude 代码进行连接 3. 调用任意工具 ** 预期行为 ** 工具调用返回结果 (在 1.24.2 上运行正常)。 ** 日志 ** 1.25.0: 无法重新连接到 test-mcp-server。 1.25.3: {"code":"invalid_union","errors":[[{"expected":"object","code":"invalid_type","path":[],"message":"Invalid input: expected object, received null"}]],"path":[],"message":"Invalid input"}
内容来源: modelcontextprotocol/typescript-sdk