Skip to content

Conversation

@dsp-ant
Copy link
Member

@dsp-ant dsp-ant commented Sep 23, 2025

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.

dsp-ant and others added 2 commits September 24, 2025 15:19
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]>
Copy link
Contributor

@bhosmer-ant bhosmer-ant left a 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?

@pja-ant
Copy link
Contributor

pja-ant commented Sep 26, 2025

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.

@dsp-ant dsp-ant merged commit 5854842 into main Sep 29, 2025
7 checks passed
@dsp-ant dsp-ant deleted the icon-sizes-array branch September 29, 2025 09:47
@pja-ant
Copy link
Contributor

pja-ant commented Sep 29, 2025

modelcontextprotocol/typescript-sdk#947 is updated for TypeScript side. I'll update the python impl to reflect this.

Edit: modelcontextprotocol/python-sdk#1411

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.
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants