Repository navigation
Description
Summary
MCP TypeScript SDK v2 (split packages, @modelcontextprotocol/server 2.4.0) is out. The server is on v1, whose runtime dependencies pull in about 90 HTTP-server packages (express, hono, and others) that this stdio-only server never uses.
Where
package.json:70scripts/bundle.mjs:29src/server.ts
Details
"@modelcontextprotocol/sdk": "^1.32.2" (package.json:70). npm @modelcontextprotocol/sdk latest is 1.32.2. modelcontextprotocol/typescript-sdk released 2.4.0 on 2026-10-23, and npm @modelcontextprotocol/server latest is 2.4.0 (v2 ships as split packages). The v1 SDK's runtime deps include express, express-rate-limit, hono, @hono/node-server, cors, jose and pkce-challenge, which add up to 93 non-dev lockfile entries. This server only uses the stdio transport (@modelcontextprotocol/sdk/server/stdio.js, 1 import). The SDK import surface is 76 non-test files (70 imports of server/mcp.js, plus client/index.js and inMemory.js in tests). Assumption: v1 still gets fixes, since 1.32.2 shipped the same day as 2.4.0, so this is not urgent.
Impact
Users install about 90 unused HTTP-server packages with npx @tmhs/screencast-mcp. That adds install time and advisory exposure: any express/hono CVE shows up in this package's audit even though nothing reachable calls it. The longer the project stays on v1, the larger the eventual migration.
Suggested fix
Open a tracking issue "Upgrade @modelcontextprotocol/sdk 1.x to @modelcontextprotocol/server 2.x". Migrate McpServer, the stdio transport and the test client/in-memory transport imports, then re-run the tools/list budget and manifest-sync tests.
Acceptance criteria
- Imports move to the v2 packages (McpServer, stdio transport, test client and in-memory transport)
-
npm ls --omit=devno longer includes express or hono - tools/list budget and manifest-sync tests still pass
Getting started
- Relevant files:
package.json,scripts/bundle.mjs,src/server.ts - Run tests:
npm test(alsonpm run typecheckandnpm run lint); see CONTRIBUTING.md - If you change a tool's schema or description, run
npm run docs
Filed by repo-audit/full-audit at f0e5ebd. Severity: low. Effort: L. audit-key: dependencies|package.json|@modelcontextprotocol/sdk
Activity