Skip to main content
Glama
use-debounce.ts366 B
"use client"; import { useEffect, useState } from "react"; export function useDebounce<T>(value: T, delay?: number): T { const [debouncedValue, setDebouncedValue] = useState<T>(value); useEffect(() => { const timer = setTimeout(() => setDebouncedValue(value), delay || 500); return () => clearTimeout(timer); }, [value, delay]); return debouncedValue; }

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/metacode0602/open-mcp'

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