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 { useParams } from "next/navigation";
import { useSession } from "src/auth";
import { useSettings } from "@/lib/settings/settings-client";
// NOTE: Everything that involves data fetching here has a suitable fallback.
// Most of the time, components will render <Unready /> but this is the data for
// the navigation so it's a bit more important that we show something always.
export function useNavigation() {
const { settings } = useSettings();
const session = useSession();
const { slug } = useParams();
const nodeSlug = slug?.[0];
const title = settings?.title ?? "Storyden";
return {
isAdmin: session?.admin ?? false,
title,
nodeSlug,
};
}