Skip to content

Conversation

@KKonstantinov
Copy link
Contributor

Draft PR to achieve 0 passthrough on zod types.

Motivation and Context

Passthrough was largely removed in another PR, but a few still remain.

This PR aims to remove any remaining .passthrough() from the SDK.

How Has This Been Tested?

Unit tests.

Breaking Changes

None. Bringing SDK back to full spec compliance.

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

@pkg-pr-new
Copy link

pkg-pr-new bot commented Nov 17, 2025

Open in StackBlitz

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

commit: 40047f2

@KKonstantinov KKonstantinov marked this pull request as ready for review November 17, 2025 14:05
@KKonstantinov KKonstantinov requested a review from a team as a code owner November 17, 2025 14:05
@KKonstantinov KKonstantinov changed the title DRAFT: Passthrough removal part 2: Achieve 0 passthrough types. Passthrough removal part 2: Achieve 0 passthrough types. Nov 17, 2025
@KKonstantinov
Copy link
Contributor Author

KKonstantinov commented Nov 19, 2025

Converting to draft - in favour of working towards merging #1040 first - to avoid further overhead of migrating to zod v4. Will follow up with this after we merge zod v4, if needed.

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.

1 participant