The best way to control Claude Code, Codex and more from any computer or phone

main
ts 8 lines 342 Bytes
Raw
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 }