Skip to content

Conversation

@mgyarmathy
Copy link

This PR adds the transitive @types/express-serve-static-core dependency as a direct devDependency to fix builds via strict package managers like pnpm. This is necessary because types from express-serve-static-core are currently referenced directly in https://github.com/modelcontextprotocol/typescript-sdk/blob/main/src/server/auth/middleware/bearerAuth.ts#L23-L30

Motivation and Context

Fixes #572

How Has This Been Tested?

  • pnpm install + pnpm build on a fresh clone of this branch now succeeds
  • rm -rf node_modules/ && pnpm i && pnpm build also succeeds
  • Testing for regressions -- rm -rf node_modules/ && npm i && npm run build also succeeds.

Breaking Changes

n/a

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation update

Checklist

  • I have read the MCP Documentation
  • My code follows the repository's style guidelines
  • New and existing tests pass locally
  • I have added appropriate error handling
  • I have added or updated documentation as needed

Additional context

@mgyarmathy mgyarmathy requested a review from a team as a code owner November 3, 2025 22:59
@mgyarmathy mgyarmathy force-pushed the 752-pnpm-fails-to-build branch from d6140d7 to 133fceb Compare November 3, 2025 23:01
@mgyarmathy mgyarmathy changed the title Fix builds via pnpm fix: builds via pnpm Nov 3, 2025
@mgyarmathy mgyarmathy force-pushed the 752-pnpm-fails-to-build branch from 133fceb to c00f0b9 Compare November 12, 2025 17:47
@pkg-pr-new
Copy link

pkg-pr-new bot commented Nov 12, 2025

Open in StackBlitz

npm i https://pkg.pr.new/modelcontextprotocol/typescript-sdk/@modelcontextprotocol/sdk@1078

commit: c00f0b9

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

pnpm fails to build

1 participant