Skip to main content
Glama

Storyden

by Southclaws
Mozilla Public License 2.0
229
NodeCard.tsx1.2 kB
import { Node } from "src/api/openapi-schema"; import { Timestamp } from "src/components/site/Timestamp"; import { Card } from "@/components/ui/rich-card"; import { LibraryPath, joinLibraryPath } from "@/screens/library/library-path"; import { HStack, WStack } from "@/styled-system/jsx"; import { RichCardVariantProps } from "@/styled-system/recipes"; import { getAssetURL } from "@/utils/asset"; import { LibraryPageMenu } from "./LibraryPageMenu/LibraryPageMenu"; export type NodeCardContext = "library" | "generic"; export type Props = { node: Node; libraryPath: LibraryPath; } & RichCardVariantProps; export function NodeCard({ node, libraryPath, ...rest }: Props) { const slug = joinLibraryPath(libraryPath, node.slug); const url = `/l/${slug}`; const image = getAssetURL(node.primary_image?.path); return ( <Card id={node.id} title={node.name} text={node.description} url={url} image={image} // menu={<LibraryPageMenu node={node} />} controls={ <WStack> <Timestamp created={node.createdAt} href={url} large /> <LibraryPageMenu node={node} /> </WStack> } {...rest} ></Card> ); }

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