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
import { useEffect, type RefObject } from "react";
export function useScrollToHash<T extends HTMLElement>(
hash: string,
targetRef: RefObject<T>,
) {
useEffect(() => {
if (typeof window === "undefined") {
return;
}
if (window.location.hash === hash) {
targetRef.current?.scrollIntoView({
behavior: "smooth",
block: "start",
});
}
}, [hash, targetRef]);
}