MCP TypeScript SDK 1.32.0 released, adding same-origin redirect restrictions and a tool call argument limit(original, opens in a new tab)
MCP TypeScript SDK 1.32.0 released. The HTTP client transport now only follows redirects when same-origin (same scheme, host, and port; http to https on the same host is allowed). If a deployed endpoint redirects to another host or port, you need to configure the final URL, or set redirectPolicy: 'follow' on StreamableHTTPClientTransport or SSEClientTransport. In browsers, redirect requests without this option set will fail. Two new options are added, both disabled by default: McpServer's maxToolInputElements limits the number of array elements and object members in tool call arguments; requireBearerAuth's expectedResource only accepts tokens issued for that server (the token's audience).