Repository navigation
[v2] Мonorepo, sdk-client, sdk-server, sdk-core package split - #1279
Merged
felixweinberger merged 61 commits intoDec 19, 2025
Merged
felixweinberger merged 61 commits into
felixweinberger merged 61 commits into
Conversation
commit: |
… into feature/v2-monorepo-setup
Contributor
Author
|
EDITs:
TODOs still:
|
Closed
10 of 23 tasks
This was referenced Jan 16, 2026
This was referenced Jan 25, 2026
This was referenced Feb 1, 2026
This was referenced Feb 11, 2026
This was referenced Feb 19, 2026
This was referenced Feb 26, 2026
This was referenced Mar 14, 2026
This was referenced Mar 21, 2026
mozmo15
pushed a commit
to mozmo15/typescript-sdk
that referenced
this pull request
Mar 30, 2026
3 of 6 tasks
3 tasks done
nikolas-sapa
added a commit
to nikolas-sapa/typescript-sdk
that referenced
this pull request
Sep 30, 2026
…alizeHeaders shared/transport.d.ts exports normalizeHeaders(headers: HeadersInit | undefined), and HeadersInit is a web-IDL type alias that @types/node structurally cannot bind globally (it binds Headers/Request/RequestInit/Response, but not the HeadersInit typedef — see DefinitelyTyped PR #74414 review). Node-only consumers compiling with skipLibCheck: false and no "DOM" lib fail with TS2304: Cannot find name 'HeadersInit' (reported against 1.23.0-beta.0 through 1.30.0). Use RequestInit['headers'] instead — same-behaviour, and exactly what the v2 rewrite already does (modelcontextprotocol#1279). Runtime code is unchanged. Verified: a Node-only consumer (lib ES2023, types node, skipLibCheck false) fails with the reported TS2304 against @modelcontextprotocol/sdk@1.30.0 and typechecks clean against this branch's emitted declarations. Full repo typecheck error set is byte-identical with and without this change. Fixes modelcontextprotocol#2568
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Proof of Concept: v2 monorepo, package split
Motivation and Context
v1of the sdk shipped both client and server in the same package, introducing extra dependencies to users who have a single concern (client or server only). Client and server packages are now split, depending on a sharedcorepackage.Additionally,
v1exported all files as the public API of the SDK, limiting the SDK ability to iterate internally while keeping backwards compatibility. Barrel files are now introduced as the single entrypoint to the SDK and defining the public API of the SDK.How Has This Been Tested?
Unit, integration tests
Breaking Changes
v2
Types of changes
Checklist
Additional context