Skip to main content
Glama

Storyden

by Southclaws
Mozilla Public License 2.0
229
useProfileContent.ts868 B
import { useCollectionList } from "src/api/openapi-client/collections"; import { Account, PublicProfile } from "src/api/openapi-schema"; import { useThreadList } from "@/api/openapi-client/threads"; export type Props = { session?: Account; profile: PublicProfile; }; export function useProfileContent({ session, profile }: Props) { const threads = useThreadList({ author: profile.handle }); const collections = useCollectionList({ account_handle: profile.handle }); if (!threads.data) { return { ready: false as const, error: threads.error }; } if (!collections.data) { return { ready: false as const, error: collections.error }; } const isSelf = session?.id === profile.id; return { ready: true as const, isSelf, data: { threads: threads.data.threads, collections: collections.data.collections, }, }; }

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