MCP TypeScript SDK 2.3.0 Enforces One Server Per Request, Limits Redirects to the Same Origin and Adds Opt-In Tool Input and Token Audience Checks
The Model Context Protocol TypeScript SDK shipped 2.3.0 on October 2 and 1.32.0 the same day, with same-origin redirect handling by default and two off-by-default options; 2.3.1 followed on October 5.
Overview
The Model Context Protocol (MCP) TypeScript SDK published version 2.3.0 on October 2, 2026, at 17:55 UTC, according to its release page. The release lists five upgrade notes: a one-server-per-request rule, a same-origin redirect policy, two new options that are off unless set, a change to how prompts/get handles missing arguments, and a raised minimum for eventsource-parser. A 1.x line release, 1.32.0, was published the same day at 17:28 UTC, and 2.3.1 followed on October 5.
What Changed in 2.3.0
- One server per request. Per the 2.3.0 notes,
Server.connect()now rejects while the instance is already connected, and a stateless Streamable HTTP transport handles one request. The maintainers tell users to create theMcpServerand the transport inside the request handler (or in thecreateMcpHandlerfactory) instead of sharing one instance across requests. They add that creating a server is cheap since pull request #2889. - Redirects stay on the same origin. The release notes say the HTTP client transports now follow a redirect only when it stays on the same origin (same scheme, host and port; http to https on the same host is allowed). A deployment whose endpoint redirects to another host or port either configures the final URL or sets
redirectPolicy: 'follow'on the transport. In browsers, a redirected request fails unless that option is set. - Two opt-in limits. According to the 2.3.0 notes,
maxToolInputElementsonMcpServerlimits the number of array elements and object members in a tool call’s arguments, andexpectedResourceonrequireBearerAuth/verifyBearerTokenaccepts only tokens issued for this server (the token’s audience). Both are off unless you set them. With Express, the notes say to upgrade@modelcontextprotocol/expresstogether with@modelcontextprotocol/server. prompts/getwithout arguments. The notes say aprompts/getrequest withoutargumentsis now validated as{}, astools/callalready is, so a top-level.optional()or.default(...)on a prompt’sargsSchemano longer seesundefined.- Faster large SSE messages. The client now requires
eventsource-parser3.0.8 or later. The maintainers write that in their test a 100 MB tool result went from about a minute and 1.7 GB of peak memory to under a second and about 0.5 GB. Separately, the fixes section says a 50 MB tool result that took about 13 seconds arrives in under a second.
Other items in the 2.3.0 notes include <scheme>://* entries such as moz-extension://* in validateOriginHeader and the allowedOrigins option of the Express, Fastify and Hono helpers, so a server can admit MCP clients that run as a browser extension. The notes also say SSEClientTransport now refreshes once after a 401 on connect instead of retrying without limit.
The 1.x Line and 2.3.1
The 1.32.0 notes carry the same redirect and opt-in-option upgrade notes, with redirectPolicy: 'follow' named for both StreamableHTTPClientTransport and SSEClientTransport. Its change list also includes a fix to keep tasks of the in-memory task store within the session that created them, an examples change to close idle sessions and cap the session map, and a docs change pointing SECURITY.md at GitHub Security Advisories.
The 2.3.1 notes say requireBearerAuth in @modelcontextprotocol/server-legacy takes the optional expectedResource that @modelcontextprotocol/server 2.3.0 added. The release was published on October 5.
The Machine Herald previously reported on an OAuth flaw in the official MCP Python SDK, a separate project from this one.
What We Don’t Know
- The release notes do not say whether the redirect, audience or tool-input changes respond to specific reported vulnerabilities, and no CVE or advisory is cited in them.
- The notes do not state how many deployments rely on cross-origin redirects or on sharing one server instance across requests, which are the setups the upgrade notes say need changes.
- Both new options are off by default, so servers that do not set them keep their previous behavior on tool input size and token audience.