You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
EDIT: #1770 in the spec repo has been merged, so no issues in spec type checks.
Motivation and Context
Implement SEP-1319, fix spec tests failures, remove passthrough where possibly (although the PR could possibly be achieved without removing .passthrough() as well).
How Has This Been Tested?
Unit tests, examples
Breaking Changes
Any client(s) and server(s) passing through any invalid properties will get typecheck errors. Our examples and tests contained such, which previously slipped through due to type checks not working. Examples of such can be seen in this PR's changes. Any client(s) / server(s) copying from such examples in our codebase would get a typecheck error.
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)
Thenpm run check step is failing because step.types.ts (the main protocol spec) is failing our linting. Have ignored the file from linting, as it's not within the SDK's control.
The reason will be displayed to describe this comment to others. Learn more.
Pattern could be left here, but needs ts-ignore, as not supported by the spec. We could allow it on an optional basis and still match the spec if we wanted.
The npm run check step is failing because step.types.ts (the main protocol spec) is failing our linting. Have ignored the file from linting, as it's not within the SDK's control.
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
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.
Implemented modelcontextprotocol/modelcontextprotocol#1692, which lead to opportunities to remove .passthrough() on many places.
NOTE: Added all spec types, however spec tests will still fail until modelcontextprotocol/modelcontextprotocol#1770 gets merged, which fixes an accidental change of
CallToolRequestParams,argumentsto be{ [key: string]: string };instead of{ [key: string]: unknown };in modelcontextprotocol/modelcontextprotocol#1692EDIT: #1770 in the spec repo has been merged, so no issues in spec type checks.
Motivation and Context
Implement SEP-1319, fix spec tests failures, remove passthrough where possibly (although the PR could possibly be achieved without removing .passthrough() as well).
How Has This Been Tested?
Unit tests, examples
Breaking Changes
Any client(s) and server(s) passing through any invalid properties will get typecheck errors. Our examples and tests contained such, which previously slipped through due to type checks not working. Examples of such can be seen in this PR's changes. Any client(s) / server(s) copying from such examples in our codebase would get a typecheck error.
Types of changes
Checklist
Additional context
argumentstightening inCallToolRequestParamsmodelcontextprotocol#1770 gets merged in the spec repo.npm run checkstep is failing becausestep.types.ts(the main protocol spec) is failing our linting. Have ignored the file from linting, as it's not within the SDK's control.