@modelcontextprotocol/server-legacy
2.4.0 · 23 Oct 2026Apache-2.01M / weekRepositoryHomepagenpmAtom feed
2.4.0 is the newest release of 2.x.
In short
2 changed
Security
Fixes 1 advisory that affected 2.3.0
- ModerateMCP TypeScript SDK: Server bearer authentication accepted tokens issued for another serviceGHSA-rvq5-wwqv-78pq · 20 Oct 2026Fixed in 2.3.1
Release note
| Package | Version |
|---|---|
@modelcontextprotocol/client | 2.3.1 |
@modelcontextprotocol/server | 2.3.1 |
@modelcontextprotocol/core | 2.3.1 |
@modelcontextprotocol/server-legacy | 2.3.1 |
@modelcontextprotocol/codemod | 2.3.1 |
@modelcontextprotocol/node, express, hono, fastify | unchanged |
Changes
requireBearerAuthin@modelcontextprotocol/server-legacytakes the optionalexpectedResourcethat@modelcontextprotocol/server2.3.0 added: it accepts only tokens issued for this server (the token's audience). Off unless you set it.The npm pages of
@modelcontextprotocol/serverand@modelcontextprotocol/clientnow open with one note that links the documentation, the migration guide and the issue form.
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.