chore: sync spec-types/draft.ts to modelcontextprotocol@2fb207d#348
Merged
Conversation
Re-vendors schema/draft/schema.ts from the spec repo at the merge commit of PR #2891 (2fb207da428f43a4981513ec2aef218b7533c5b3), which also includes #2889 and #2890. Type changes picked up: - Add NotificationMetaObject (with io.modelcontextprotocol/subscriptionId) - Add HEADER_MISMATCH (-32001) const and HeaderMismatchError interface - CancelledNotificationParams.requestId is now required - ClientNotification narrowed to CancelledNotification only - ListRootsRequest.params narrowed (drops progressToken) - Remove ElicitationCompleteNotification and elicitationId Also replaces the local -32001 literal in src/scenarios/server/http-standard-headers.ts with the new exported HEADER_MISMATCH constant. Claude-Session: https://claude.ai/code/session_01Gbqx5LodtAghT5fRYFxeja
commit: |
felixweinberger
approved these changes
Jun 18, 2026
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.
Re-vendors
schema/draft/schema.tsfrom the spec repo at the merge commit of modelcontextprotocol#2891 (2fb207da428f43a4981513ec2aef218b7533c5b3), which also includes #2889 and #2890.Type changes picked up
NotificationMetaObject(withio.modelcontextprotocol/subscriptionId)HEADER_MISMATCH(-32001) const andHeaderMismatchErrorinterfaceCancelledNotificationParams.requestIdis now requiredClientNotificationnarrowed toCancelledNotificationonlyListRootsRequest.paramsnarrowed (dropsprogressToken)ElicitationCompleteNotificationandelicitationIdAlso replaces the local
-32001literal insrc/scenarios/server/http-standard-headers.tswith the new exportedHEADER_MISMATCHconstant.Verification
tsc --noEmit✓npm test— 288/288 ✓npm run lint✓This unblocks follow-up conformance PRs for the SEP-2243 header changes and SEP-2575 subscription/cancellation changes.
https://claude.ai/code/session_01Gbqx5LodtAghT5fRYFxeja