| 1 | import { clampMcpAppHeight } from "@t3tools/shared/mcpApp"; |
| 2 | |
| 3 | /** Taller apps scroll inside the inline view; full screen fills its own screen. */ |
| 4 | export const MCP_APP_INLINE_MAX_HEIGHT = 420; |
| 5 | |
| 6 | export function mcpAppInlineHeight(height: number | undefined): number | undefined { |
| 7 | if (height === undefined || !Number.isFinite(height)) return undefined; |
| 8 | return Math.min(MCP_APP_INLINE_MAX_HEIGHT, clampMcpAppHeight(height)); |
| 9 | } |