Skip to content

Conversation

@mattzcarey
Copy link
Contributor

@mattzcarey mattzcarey commented Dec 15, 2025

Changes module system from Node16 to ES2020 with bundler resolution, adds allowSyntheticDefaultImports flag, and updates Ajv import to use default import instead of named import.

fixes issues in CF Workers, Deno and anything which is ESM first.

We have to patch here. https://github.com/cloudflare/agents/blob/main/patches/%40modelcontextprotocol%2Bsdk%2B1.23.0.patch atm which is grim and anyone downstream also has to patch.

Motivation and Context

How Has This Been Tested?

Breaking Changes

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

…v import

Changes module system from Node16 to ES2020 with bundler resolution, adds allowSyntheticDefaultImports flag, and updates Ajv import to use default import instead of named import.
@mattzcarey mattzcarey requested a review from a team as a code owner December 15, 2025 14:14
@pkg-pr-new
Copy link

pkg-pr-new bot commented Dec 15, 2025

Open in StackBlitz

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

commit: e984444

@mattzcarey mattzcarey merged commit 34c9e16 into main Dec 15, 2025
10 checks passed
@mattzcarey mattzcarey deleted the fix-ajv-imports branch December 15, 2025 15:33
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.

3 participants