We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Southclaws/storyden'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
"use client";
import { usePathname } from "next/navigation";
import { useEffect, useState } from "react";
import { useSession } from "@/auth";
export function useMobileCommandBar() {
const pathname = usePathname();
const [isExpanded, setExpanded] = useState(false);
const account = useSession();
// Close the menu for either navigation events or outside clicks/taps:
useEffect(() => setExpanded(false), [pathname]);
function onExpand() {
setExpanded(true);
}
function onClose() {
setExpanded(false);
}
return {
isExpanded,
onExpand,
onClose,
account,
};
}