Skip to main content
Glama

Storyden

by Southclaws
Mozilla Public License 2.0
227
ErrorTooltip.tsx1 kB
import { Portal } from "@ark-ui/react"; import { WarningIcon } from "@/components/ui/icons/Warning"; import * as Popover from "@/components/ui/popover"; import { deriveError } from "@/utils/error"; import { IconButton } from "./icon-button"; type Props = { error?: unknown; }; export function ErrorTooltip({ error }: Props) { if (!error) { return null; } const errorMessage = deriveError(error); return ( <Popover.Root> <Popover.Trigger asChild> <IconButton type="button" size="xs" variant="ghost" aria-label="Show error details" > <WarningIcon color="fg.error" /> </IconButton> </Popover.Trigger> <Portal> <Popover.Positioner> <Popover.Content> <Popover.Arrow> <Popover.ArrowTip /> </Popover.Arrow> {errorMessage} </Popover.Content> </Popover.Positioner> </Portal> </Popover.Root> ); }

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