Skip to main content
Glama

Convex MCP server

Official
by get-convex
useContainerWidth.ts538 B
import { useEffect, useRef, useState } from "react"; export function useContainerWidth<T extends HTMLElement>() { const ref = useRef<T>(null); const [width, setWidth] = useState(0); useEffect(() => { if (!ref.current) return; const handleResize = () => { if (ref.current) setWidth(ref.current.offsetWidth); }; handleResize(); const observer = new window.ResizeObserver(handleResize); observer.observe(ref.current); return () => observer.disconnect(); }, []); return [ref, width] as const; }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/get-convex/convex-backend'

If you have feedback or need assistance with the MCP directory API, please join our Discord server