Skip to content

Commit 0f2ecde

Browse files
grimmerkclaude
andcommitted
fix: Icon sizes type from string to string[]
🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent f63e849 commit 0f2ecde

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/examples/server/simpleStreamableHttp.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ const getServer = () => {
2222
const server = new McpServer({
2323
name: 'simple-streamable-http-server',
2424
version: '1.0.0',
25-
icons: [{src: './mcp.svg', sizes: '512x512', mimeType: 'image/svg+xml'}],
25+
icons: [{src: './mcp.svg', sizes: ['512x512'], mimeType: 'image/svg+xml'}],
2626
websiteUrl: 'https://github.com/modelcontextprotocol/typescript-sdk',
2727
}, { capabilities: { logging: {} } });
2828

src/types.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -214,9 +214,9 @@ export const IconSchema = z
214214
*/
215215
mimeType: z.optional(z.string()),
216216
/**
217-
* Optional string specifying icon dimensions (e.g., "48x48 96x96").
217+
* Optional array of strings specifying icon dimensions (e.g., ["48x48", "96x96"]).
218218
*/
219-
sizes: z.optional(z.string()),
219+
sizes: z.optional(z.array(z.string())),
220220
})
221221
.passthrough();
222222

0 commit comments

Comments
 (0)