Skip to main content
Glama

Storyden

by Southclaws
Mozilla Public License 2.0
229
PermissionList.tsx1.49 kB
import { PermissionList } from "@/api/openapi-schema"; import * as Popover from "@/components/ui/popover"; import { Box, LStack } from "@/styled-system/jsx"; import { Button } from "../ui/button"; import { PermissionBadge } from "./PermissionBadge"; type Props = { permissions: PermissionList; }; export function PermissionSummary({ permissions }: Props) { const permissionCount = permissions.length; const permissionCountLabel = permissionCount === 1 ? "permission" : "permissions"; const permissionLabel = `${permissionCount} ${permissionCountLabel}`; return ( <Popover.Root positioning={{ slide: true, shift: 16, }} > <Popover.Trigger asChild> <Button size="xs" variant="link"> {permissionLabel} </Button> </Popover.Trigger> <Popover.Positioner> <Popover.Content p="2" borderRadius="2xl"> <Popover.Arrow> <Popover.ArrowTip /> </Popover.Arrow> <Popover.Description> <LStack overflowY="scroll"> {permissions.length > 0 ? ( permissions.map((p) => ( <PermissionBadge key={p} permission={p} /> )) ) : ( <Box pl="4"> <p>No permissions.</p> </Box> )} </LStack> </Popover.Description> </Popover.Content> </Popover.Positioner> </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