Change Icon.sizes from string to string array by dsp-ant · Pull Request #1531 · modelcontextprotocol/modelcontextprotocol

@dsp-ant requested a review from a team

September 23, 2025 20:52
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>

bhosmer-ant

dend

dend approved these changes Sep 27, 2025

localden

pja-ant added a commit to modelcontextprotocol/python-sdk that referenced this pull request

Sep 29, 2025
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.

honsunrise pushed a commit to honsunrise/rust-sdk that referenced this pull request

Oct 9, 2025

honsunrise added a commit to honsunrise/rust-sdk that referenced this pull request

Oct 9, 2025

4t145 pushed a commit to modelcontextprotocol/rust-sdk that referenced this pull request

Oct 10, 2025

This was referenced

Oct 11, 2025

findleyr pushed a commit to modelcontextprotocol/go-sdk that referenced this pull request

Nov 12, 2025
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

takumi-earth pushed a commit to earthlings-dev/rmcp that referenced this pull request

Jan 27, 2026

@honsunrise