Skip to main content
Glama

Storyden

by Southclaws
Mozilla Public License 2.0
229
LinkCard.tsx1.09 kB
import { LinkReference } from "src/api/openapi-schema"; import { LinkButton } from "@/components/ui/link-button"; import { Card } from "@/components/ui/rich-card"; import { ButtonVariantProps, RichCardVariantProps, } from "@/styled-system/recipes"; import { getAssetURL } from "@/utils/asset"; export type Props = { link: LinkReference; } & RichCardVariantProps; export function LinkCard({ link, ...rest }: Props) { const title = link.title || link.url; const asset = link.primary_image; const linkPagePath = `/links/${link.slug}`; return ( <Card id={link.slug} title={title} url={linkPagePath} text={link.description || "(no description)"} image={getAssetURL(asset?.path)} shape="row" {...rest} > <LinkRefButton link={link} /> </Card> ); } type LinkRefButtonProps = { link: LinkReference } & ButtonVariantProps; export function LinkRefButton({ link, ...rest }: LinkRefButtonProps) { return ( <LinkButton size="xs" variant="subtle" href={link.url} {...rest}> {link.domain} </LinkButton> ); }

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