-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Change Icon.sizes from string to string array #1531
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
Conversation
0beaaf5 to
9524bae
Compare
9524bae to
82a73a1
Compare
Introduces standardized tiering system for MCP SDKs based on: - Specification compliance - Maintenance quality - Update frequency Defines three tiers to help developers choose appropriate SDKs and provide clear improvement pathways for maintainers.
The Icon.sizes field was previously defined as a space-separated string (e.g., "48x48 96x96"), which was ambiguous and error-prone to parse. Changed to string[] format (e.g., ["48x48", "96x96"]) for clarity and consistency. Each size is now a discrete array element, making it easier to iterate over and validate individual size specifications. This maintains compatibility with the "any" keyword for scalable formats while providing a cleaner, more structured representation. Co-Authored-By: Claude <[email protected]>
82a73a1 to
b3de157
Compare
bhosmer-ant
left a comment
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.
No objections, but this is a breaking change, right?
Icons are introduced in the upcoming spec, so it's not breaking any existing non-draft spec. |
|
modelcontextprotocol/typescript-sdk#947 is updated for TypeScript side. I'll update the python impl to reflect this. |
Changes Icon.sizes from a space-separated string to a list of strings, aligning with spec changes in modelcontextprotocol/modelcontextprotocol#1531. This provides clearer, more consistent size specifications that are easier to iterate over and validate. Updated all examples and tests to use the new list format.
mcp/protocol: Implement SEP-973 - Define Icon structure, which includes source, mimeType and sizes. - sizes is any array of strings. refer modelcontextprotocol/modelcontextprotocol#1531 - Support setting websiteUrl, icons for mcp.Implementation - Support setting icons for mcp.Prompt - Support setting icons for mcp.Tool - Support setting icons for mcp.Resource Fixes #552
The Icon.sizes field was previously defined as a space-separated string (e.g., "48x48 96x96"), which was ambiguous and error-prone to parse.
Changed to string[] format (e.g., ["48x48", "96x96"]) for clarity and consistency. Each size is now a discrete array element, making it easier to iterate over and validate individual size specifications.
This maintains compatibility with the "any" keyword for scalable formats while providing a cleaner, more structured representation.