Skip to content

Commit 2eb8e31

Browse files
committed
Allow undefined values
1 parent aed8cbe commit 2eb8e31

File tree

3 files changed

+106
-20
lines changed

3 files changed

+106
-20
lines changed

src/generated/schema.json

Lines changed: 96 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/generated/schema.ts

Lines changed: 5 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/spec.types.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ export type McpUiStyleVariableKey =
5656
| "--color-text-secondary"
5757
| "--color-text-tertiary"
5858
| "--color-text-inverse"
59+
| "--color-text-ghost"
5960
| "--color-text-info"
6061
| "--color-text-danger"
6162
| "--color-text-success"
@@ -316,13 +317,13 @@ export interface McpUiHostContext {
316317
/** @description Current and maximum dimensions available to the UI. */
317318
viewport?: {
318319
/** @description Viewport width in pixels (if fixed). Only pass width or maxWidth, not both. */
319-
width?: number;
320+
width?: number | undefined;
320321
/** @description Viewport height in pixels (if fixed). Only pass height or maxHeight, not both. */
321-
height?: number;
322+
height?: number | undefined;
322323
/** @description Maximum available viewport width in pixels (if constrained). Only pass width or maxWidth, not both.*/
323-
maxWidth?: number;
324+
maxWidth?: number | undefined;
324325
/** @description Maximum available viewport height in pixels (if constrained). Only pass height or maxHeight, not both. */
325-
maxHeight?: number;
326+
maxHeight?: number | undefined;
326327
};
327328
/** @description User's language and region preference in BCP 47 format. */
328329
locale?: string;

0 commit comments

Comments
 (0)