The best way to control Claude Code, Codex and more from any computer or phone
| 1 | import { clampMcpAppHeight } from "@t3tools/shared/mcpApp"; |
| 2 | |
| 3 | export const MCP_APP_INLINE_MAX_HEIGHT = 420; |
| 4 | |
| 5 | export function mcpAppInlineHeight(height: number | undefined): number | undefined { |
| 6 | if (height === undefined || !Number.isFinite(height)) return undefined; |
| 7 | return Math.min(MCP_APP_INLINE_MAX_HEIGHT, clampMcpAppHeight(height)); |
| 8 | } |