Packages

@modelcontextprotocol/server-legacy

2.4.0 · 23 Oct 2026Apache-2.01M / weekRepositoryHomepagenpmAtom feed

Deprecated by its maintainers: This package is a frozen copy of v1's SSE transport and OAuth Authorization Server helpers for migration purposes only. Use StreamableHTTP from @modelcontextprotocol/server and a dedicated OAuth server in production. Will not receive new features.What to use instead

Upgrading @modelcontextprotocol/server-legacy From 2.1.0 to 2.2.0

1 release in betweenevery note read

Reading releases, release notes and advisories…

Other targets from 2.1.0Newest 2.x, Latest2.4.0Clears its advisory2.3.1
  1. 2.1.0yours
  2. 2.2.0target
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

Release by release

  1. 2.2.0

    Deprecation28 Sep 202610 fixes
    • Deprecated

      Pass expectedIssuer to the machine-to-machine OAuth providers. Constructing ClientCredentialsProvider, PrivateKeyJwtProvider, StaticPrivateKeyJwtProvider or CrossAppAccessProvider without it is deprecated and logs a warning. Set it to the issuer of the authorization server the credentials were registered with.

    • Fixed

      CommonJS TypeScript projects type-check again: the jose types 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

      _meta is preserved on input_required results.

2 other lines we could not sort, mostly version bumps
  • fetchToken() checks which authorization server the client information belongs to. It throws AuthorizationServerMismatchError before 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() and listResourceTemplates() called without a cursor now follow nextCursor until the server stops sending one. listMaxPages still caps the walk.

    2.2.0

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.