Remove viewport

This commit is contained in:
martinalong 2025-12-31 21:36:29 -08:00
commit dc226be962
No known key found for this signature in database
2 changed files with 13 additions and 143 deletions

View file

@ -697,31 +697,6 @@
}
]
},
"viewport": {
"description": "Window viewport dimensions. Represents the host window's viewport size,\nwhich provides additional information apps can use to make responsive layout decisions.",
"type": "object",
"properties": {
"width": {
"description": "Window viewport width in pixels.",
"anyOf": [
{
"type": "number"
},
{}
]
},
"height": {
"description": "Window viewport height in pixels.",
"anyOf": [
{
"type": "number"
},
{}
]
}
},
"additionalProperties": false
},
"locale": {
"description": "User's language and region preference in BCP 47 format.",
"type": "string"
@ -1393,31 +1368,6 @@
}
]
},
"viewport": {
"description": "Window viewport dimensions. Represents the host window's viewport size,\nwhich provides additional information apps can use to make responsive layout decisions.",
"type": "object",
"properties": {
"width": {
"description": "Window viewport width in pixels.",
"anyOf": [
{
"type": "number"
},
{}
]
},
"height": {
"description": "Window viewport height in pixels.",
"anyOf": [
{
"type": "number"
},
{}
]
}
},
"additionalProperties": false
},
"locale": {
"description": "User's language and region preference in BCP 47 format.",
"type": "string"
@ -2626,31 +2576,6 @@
}
]
},
"viewport": {
"description": "Window viewport dimensions. Represents the host window's viewport size,\nwhich provides additional information apps can use to make responsive layout decisions.",
"type": "object",
"properties": {
"width": {
"description": "Window viewport width in pixels.",
"anyOf": [
{
"type": "number"
},
{}
]
},
"height": {
"description": "Window viewport height in pixels.",
"anyOf": [
{
"type": "number"
},
{}
]
}
},
"additionalProperties": false
},
"locale": {
"description": "User's language and region preference in BCP 47 format.",
"type": "string"

View file

@ -601,27 +601,6 @@ export const McpUiHostContextSchema = z
.describe(
"Container dimensions. Represents the dimensions of the iframe or other\ncontainer holding the app. Specify either width or maxWidth, and either height or maxHeight.",
),
/**
* @description Window viewport dimensions. Represents the host window's viewport size,
* which provides additional information apps can use to make responsive layout decisions.
*/
viewport: z
.object({
/** @description Window viewport width in pixels. */
width: z
.union([z.number(), z.undefined()])
.optional()
.describe("Window viewport width in pixels."),
/** @description Window viewport height in pixels. */
height: z
.union([z.number(), z.undefined()])
.optional()
.describe("Window viewport height in pixels."),
})
.optional()
.describe(
"Window viewport dimensions. Represents the host window's viewport size,\nwhich provides additional information apps can use to make responsive layout decisions.",
),
/** @description User's language and region preference in BCP 47 format. */
locale: z
.string()