Agent 基础设施官方发布自动监测

MCP TypeScript SDK 1.32.0

MCP TypeScript SDK 1.32.0 restricts HTTP client redirects to same-origin destinations by default and introduces security-oriented configurations for tool inputs and bearer token audience validation.

原始内容为英文;当前页面提供中文导航与来源说明,具体事实请以原文为准。

人类阅读

为什么值得关注

MCP TypeScript SDK version 1.32.0 modifies redirect handling across HTTP client transports (StreamableHTTPClientTransport and SSEClientTransport). Transports now strictly follow redirects within the same origin (matching scheme, host, and port, with http-to-https permitted on the same host). Cross-host or cross-port redirects now fail by default (and in browsers, redirects will fail completely) unless redirectPolicy: 'follow' is set or the final endpoint URL is directly configured. The release also adds two opt-in server settings: maxToolInputElements on McpServer to restrict array and object sizes in tool arguments, and expectedResource on requireBearerAuth to validate token audience. Other fixes include accepting tools/call and prompts/get without arguments, scoping in-memory task stores to sessions, and capping idle sessions in examples.

Agent 解析

可执行摘要

Upgrade to MCP TypeScript SDK 1.32.0. HTTP client transports now restrict automatic redirects to same-origin endpoints unless redirectPolicy is explicitly configured as 'follow'. New options include maxToolInputElements for McpServer and expectedResource for requireBearerAuth.

Agent 实用度
77/100
可信度
96%
机器格式
JSON + Markdown
下一步

开发者应核对什么

  • Verify client configurations if your deployments rely on cross-host, cross-port, or browser-based redirects; update to the final URL or specify redirectPolicy: 'follow' in StreamableHTTPClientTransport or…
  • Optionally configure maxToolInputElements on McpServer to constrain payload sizes in tool call arguments.
  • Optionally set expectedResource on requireBearerAuth to enforce audience checks on incoming bearer tokens.
分类

标签与路由

mcpsdktypescript
相关信号

继续阅读