Skip to content

Upgrade @modelcontextprotocol/sdk 1.x to the v2 server packages #411

Backlog

Description

@TMHSDigital

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:70
  • scripts/bundle.mjs:29
  • src/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=dev no 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 (also npm run typecheck and npm 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

  1. added
    dependencies
    priority: low
    effort: large
    on Nov 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    dependencieseffort: largepriority: low

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions