@modelcontextprotocol/server-legacy
2.4.0 · 23 Oct 2026Apache-2.01M / weekRepositoryHomepagenpmAtom feed
Upgrading @modelcontextprotocol/server-legacy From 2.1.0 to 2.2.0
1 release in betweenevery note read
Reading releases, release notes and advisories…
- 1
- change to make
- 0
- advisories fixed
- 0
- new
- 10
- fixes
Start here
Before you upgrade
Tick each one off as you go- Deprecated2.2.0
Security
1 advisory still affects 2.2.0
- MCP TypeScript SDK: Server bearer authentication accepted tokens issued for another servicemoderate · GHSA-rvq5-wwqv-78pq
Upgrading to 2.3.1 clears it.
Release by release
- Deprecated
Pass
expectedIssuerto the machine-to-machine OAuth providers. ConstructingClientCredentialsProvider,PrivateKeyJwtProvider,StaticPrivateKeyJwtProviderorCrossAppAccessProviderwithout it is deprecated and logs a warning. Set it to theissuerof the authorization server the credentials were registered with. - Fixed
CommonJS TypeScript projects type-check again: the
josetypes used by the DPoP API are inlined into the declaration files (regression in 2.1.0). - Fixed
Client.listen()no longer lets a rejection escape as a process-level unhandled rejection, and no longer hangs when a send never settles. - Fixed
_metais preserved oninput_requiredresults.
- Deprecated
2 other lines we could not sort, mostly version bumps
- 2.2.0
fetchToken()checks which authorization server the client information belongs to. It throwsAuthorizationServerMismatchErrorbefore sending anything when the provider's client information is bound to a different authorization server. - 2.2.0
List calls return the whole list.
listTools(),listPrompts(),listResources()andlistResourceTemplates()called without a cursor now follownextCursoruntil the server stops sending one.listMaxPagesstill caps the walk.
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.