You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
npx install warns about deprecated @modelcontextprotocol/server-legacy, which only test servers use #2519
A fresh npx @modelcontextprotocol/inspector (2.8.0) prints:
npm warn deprecated @modelcontextprotocol/[email protected]: 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.
Users read this as the Inspector depending on something deprecated or v1. It doesn't, at runtime.
Cause
@modelcontextprotocol/server-legacy is declared under the root package.json's dependencies (added in the SDK v2 migration, #1624), so every published install pulls it in. Its only importer is test-servers/src/test-server-http.ts (SSEServerTransport from /sse, so the test server can still serve the legacy SSE transport). test-servers/ is not in the published files list, and nothing in the shipped builds imports it; the only mention in clients/web/build/index.js is a comment.
The whole package is marked deprecated on npm (not just 2.0.0), so bumping to 2.1.0 on v2/main does not silence it.
Fix
Move it from dependencies to devDependencies in the root manifest. Test servers run only in a dev tree, where devDependencies are installed.
Things to carry along in the same change:
scripts/sdk-watch.mjs reads only manifest.dependencies, both for assertEveryPackageWatched and for each package's declared version. It needs to consider devDependencies too, or the guard stops seeing the package and declared goes null.
Activity
cliffhall commentedon Sep 28, 2026
Priority score: severity 2 (confusing but harmless warning on every fresh install) + urgency 3 (wanted this milestone) + bonuses: bug label, milestoned, assigned (+3) = 8 → Medium.
Merge v2/main (1716af1) into v2/mcpi-client
Merge v2/main (1716af1) into v2/mcpi-client
fix(deps): make @modelcontextprotocol/server-legacy a devDependency