Change Icon.sizes from string to string array by dsp-ant · Pull Request #1531 · modelcontextprotocol/modelcontextprotocol
requested a review
from a team
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 <noreply@anthropic.com>
dend approved these changes Sep 27, 2025
pja-ant added a commit to modelcontextprotocol/python-sdk that referenced this pull request
Sep 29, 2025Changes 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.
honsunrise pushed a commit to honsunrise/rust-sdk that referenced this pull request
Oct 9, 20254t145 pushed a commit to modelcontextprotocol/rust-sdk that referenced this pull request
Oct 10, 2025This was referenced
Oct 11, 2025findleyr pushed a commit to modelcontextprotocol/go-sdk that referenced this pull request
Nov 12, 2025mcp/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
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