Skip to content

Commit d957fc0

Browse files
committed
Merge branch 'main' of github.com:modelcontextprotocol/typescript-sdk into feature/v2-monorepo-setup
2 parents c21a566 + 1d42547 commit d957fc0

File tree

1 file changed

+19
-2
lines changed

1 file changed

+19
-2
lines changed

packages/core/src/types/types.ts

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,15 @@ export const IconSchema = z.object({
315315
*
316316
* If not provided, the client should assume that the icon can be used at any size.
317317
*/
318-
sizes: z.array(z.string()).optional()
318+
sizes: z.array(z.string()).optional(),
319+
/**
320+
* Optional specifier for the theme this icon is designed for. `light` indicates
321+
* the icon is designed to be used with a light background, and `dark` indicates
322+
* the icon is designed to be used with a dark background.
323+
*
324+
* If not provided, the client should assume the icon can be used with any theme.
325+
*/
326+
theme: z.enum(['light', 'dark']).optional()
319327
});
320328

321329
/**
@@ -365,7 +373,16 @@ export const ImplementationSchema = BaseMetadataSchema.extend({
365373
/**
366374
* An optional URL of the website for this implementation.
367375
*/
368-
websiteUrl: z.string().optional()
376+
websiteUrl: z.string().optional(),
377+
378+
/**
379+
* An optional human-readable description of what this implementation does.
380+
*
381+
* This can be used by clients or servers to provide context about their purpose
382+
* and capabilities. For example, a server might describe the types of resources
383+
* or tools it provides, while a client might describe its intended use case.
384+
*/
385+
description: z.string().optional()
369386
});
370387

371388
const FormElicitationCapabilitySchema = z.intersection(

0 commit comments

Comments
 (0)