We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/xkloveme/cloud-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
use-max-height.ts•403 B
import { useHostGlobal } from "./use-host-global";
/**
* React hook to get the maximum height constraint from the MCP Apps host.
* Use this to prevent your widget from overflowing.
*
* @example
* const maxHeight = useMaxHeight();
* return <div style={{ maxHeight: maxHeight ?? undefined }}>...</div>;
*/
export const useMaxHeight = (): number | null => {
return useHostGlobal("maxHeight");
};