Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/examples/server/simpleStreamableHttp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const getServer = () => {
const server = new McpServer({
name: 'simple-streamable-http-server',
version: '1.0.0',
icons: [{src: './mcp.svg', sizes: '512x512', mimeType: 'image/svg+xml'}],
icons: [{src: './mcp.svg', sizes: ['512x512'], mimeType: 'image/svg+xml'}],
websiteUrl: 'https://github.com/modelcontextprotocol/typescript-sdk',
}, { capabilities: { logging: {} } });

Expand Down
6 changes: 4 additions & 2 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -214,9 +214,11 @@ export const IconSchema = z
*/
mimeType: z.optional(z.string()),
/**
* Optional string specifying icon dimensions (e.g., "48x48 96x96").
* Optional array of strings that specify sizes at which the icon can be used.
* Each string should be in WxH format (e.g., "48x48", "96x96") or "any" for scalable formats like SVG.
* If not provided, the client should assume that the icon can be used at any size.
*/
sizes: z.optional(z.string()),
sizes: z.optional(z.array(z.string())),
})
.passthrough();

Expand Down