Skip to main content
Glama

Storyden

by Southclaws
Mozilla Public License 2.0
229
page.tsx1.16 kB
import { Visibility } from "src/api/openapi-schema"; import { DraftListScreen } from "src/screens/drafts/DraftListScreen"; import { nodeList } from "@/api/openapi-server/nodes"; import { threadList } from "@/api/openapi-server/threads"; import { getServerSession } from "@/auth/server-session"; import { UnauthenticatedBanner, UnreadyBanner, } from "@/components/site/Unready"; export default async function Page() { try { const session = await getServerSession(); if (!session) { return <UnauthenticatedBanner />; } const [threads, nodes] = await Promise.all([ threadList( { author: session.handle, visibility: [Visibility.draft] }, { cache: "no-store", next: { revalidate: 0 }, }, ), nodeList( { author: session.handle, visibility: [Visibility.draft] }, { cache: "no-store", next: { revalidate: 0 }, }, ), ]); return ( <DraftListScreen session={session} threads={threads.data} nodes={nodes.data} /> ); } catch (e) { return <UnreadyBanner error={e} />; } }

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