-
Notifications
You must be signed in to change notification settings - Fork 1.3k
MCP: Icons type as per SEP-973, spec types test improvements, ImplementationSchema use IconsSchema #947
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
…onSchema use IconsSchema
src/spec.types.test.ts
Outdated
it.each(typesToCheck)('%s should have a compatibility test', (type) => { | ||
expect(sdkTypeChecks[type as keyof typeof sdkTypeChecks]).toBeDefined(); | ||
}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be indented one level. (why don't we have prettier on this repo??? - rhetorical)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Have ran prettier manually on the file, will commit that once the .strip topic is closed above
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't see a resolve conversation button on the strip topic, so I'll dismiss my request. If you can push your prettier changes, will review again.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be indented one level. (why don't we have prettier on this repo??? - rhetorical)
@cliffhall since you mentioned this... #953 😁
src/spec.types.test.ts
Outdated
const specTypes = extractExportedTypes(fs.readFileSync(SPEC_TYPES_FILE, 'utf-8')); | ||
const sdkTypes = extractExportedTypes(fs.readFileSync(SDK_TYPES_FILE, 'utf-8')); | ||
const testSource = fs.readFileSync(__filename, 'utf-8'); | ||
const typesToCheck = specTypes.filter(type => !MISSING_SDK_TYPES.includes(type)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice one
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just the prettier changes.
…onstantinov/typescript-sdk into feature/SEP-973-icons-type-spec-tests
This PR adds
Icons
type support for modelcontextprotocol/modelcontextprotocol#973 (PR), which exposed additional metadata for Implementations, Resources, Tools and Prompts.Motivation and Context
This PR adds the missing
Icons
type and respectiveIconsSchema
zod schema.Further, a few improvements have been made to
spec.types.test.ts
:How Has This Been Tested?
Tests and type checks are passing, there are no changes to actual implementation.
Breaking Changes
No breaking changes - just adding the Icons type and test improvements.
Types of changes
Checklist
Additional context