server-legacy
The tracked changes tagged server-legacy, newest release first. Every sentence is an item's summary.
Goes with
Changes
MCP TypeScript SDK 2.3.1
-
requireBearerAuth in @modelcontextprotocol/server-legacy accepts an optional expectedResource parameter that restricts accepted tokens to those issued for this server (the token's audience); it is off unless set.
MCP TypeScript SDK @modelcontextprotocol/server-legacy@2.3.1
-
requireBearerAuth in @modelcontextprotocol/server-legacy accepts an optional expectedResource option; when set, a token is accepted only if the verifier reports that resource value in AuthInfo.resource, compared as strings ignoring a fragment and one trailing slash.
-
Tokens reported for a different resource, or for no resource, are answered with 401 invalid_token and the usual WWW-Authenticate challenge when expectedResource is set; behavior is unchanged when it is not set.
-
Updated the @modelcontextprotocol/core dependency to 2.3.1.