Skip to content

Conversation

@pcarleton
Copy link
Member

@pcarleton pcarleton commented Nov 21, 2025

This PR updates src/spec.types.ts from the Model Context Protocol specification.

Source file: https://github.com/modelcontextprotocol/modelcontextprotocol/blob/35fa160caf287a9c48696e3ae452c0645c713669/schema/draft/schema.ts

This is an automated update triggered by the nightly cron job.

@pcarleton pcarleton requested a review from a team as a code owner November 21, 2025 19:14
@pkg-pr-new
Copy link

pkg-pr-new bot commented Nov 21, 2025

Open in StackBlitz

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

commit: 9396bac

@github-actions github-actions bot force-pushed the update-spec-types branch 7 times, most recently from 41dc307 to b04e4b4 Compare November 28, 2025 04:05
@github-actions github-actions bot force-pushed the update-spec-types branch 4 times, most recently from 0763ccb to 5dda598 Compare December 2, 2025 04:09
felixweinberger added a commit that referenced this pull request Dec 3, 2025
Updates spec.types.ts from upstream and fixes compatibility issues:

- Make requestId optional in CancelledNotificationParams (per spec change for task cancellation)
- Make id optional in JSONRPCErrorSchema (per JSON-RPC spec for parse errors)
- Handle optional id in protocol.ts when routing error responses
- Add type compatibility tests for new task-related types
- Add Fix helpers for spec/SDK type differences:
  - FixSDKTaskParams: SDK's task.ttl allows null, spec's TaskMetadata doesn't
  - FixSpecJSONRPCResponse: Spec's JSONRPCResponse is now a union
  - DeepAddIndexSignature: Handle spec's object vs SDK's {[x:string]:unknown}
- Update MISSING_SDK_TYPES for spec-only types

Closes #1152
@felixweinberger
Copy link
Contributor

felixweinberger commented Dec 3, 2025

This PR is outdated and we need some manual updates, started working on a draft here: #1226

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