Skip to main content
Glama

Storyden

by Southclaws
Mozilla Public License 2.0
229
page.tsx904 B
import { z } from "zod"; import { UnreadyBanner } from "src/components/site/Unready"; import { getServerSession } from "@/auth/server-session"; import { getSettings } from "@/lib/settings/settings-server"; import { FeedScreen } from "@/screens/feed/FeedScreen"; type Props = { searchParams: Promise<Query>; }; const QuerySchema = z.object({ page: z .string() .transform((v) => parseInt(v, 10)) .optional(), }); type Query = z.infer<typeof QuerySchema>; export default async function Page({ searchParams }: Props) { try { const session = await getServerSession(); const settings = await getSettings(); const { page } = QuerySchema.parse(await searchParams); return ( <FeedScreen page={page ?? 1} initialSession={session} initialSettings={settings} /> ); } catch (error) { return <UnreadyBanner error={error} />; } }

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