Skip to content
MCP TypeScript SDK· felixweinberger·Indexed by this site · Originally published· Defenses →

MCP TypeScript SDK 1.32.0 released, adding same-origin redirect restrictions and a tool call argument limit

1.32.0

AI summary

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).

Read originalgithub.com