Skip to main content
Glama
Southclaws

Storyden

by Southclaws
shared.ts416 B
import { z } from "zod"; import { SidebarDefaultState } from "@/lib/settings/sidebar"; const CookieSchema = z.string().transform((value) => value === "true"); export function parseSidebarCookie( cookieValue?: string, defaultState: SidebarDefaultState = "closed", ) { const { success, data } = CookieSchema.safeParse(cookieValue); if (!success) { return defaultState === "open"; } return data; }

Latest Blog Posts

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/Southclaws/storyden'

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