Skip to content

chore: sync spec-types/draft.ts to modelcontextprotocol@2fb207d#348

Merged
pja-ant merged 1 commit into
mainfrom
sync-spec-types-2fb207d
Jun 18, 2026
Merged

chore: sync spec-types/draft.ts to modelcontextprotocol@2fb207d#348
pja-ant merged 1 commit into
mainfrom
sync-spec-types-2fb207d

Conversation

@pja-ant

@pja-ant pja-ant commented Jun 18, 2026

Copy link
Copy Markdown
Contributor

Re-vendors schema/draft/schema.ts from the spec repo at the merge commit of modelcontextprotocol#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.

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

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
@pkg-pr-new

pkg-pr-new Bot commented Jun 18, 2026

Copy link
Copy Markdown

Open in StackBlitz

npx https://pkg.pr.new/@modelcontextprotocol/conformance@348

commit: 91bca5d

@pja-ant pja-ant merged commit 7c4bea4 into main Jun 18, 2026
8 checks passed
@pja-ant pja-ant deleted the sync-spec-types-2fb207d branch June 18, 2026 15:01
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.

2 participants