Skip to main content
Glama
detail-dialog.tsx862 B
import { Dialog, DialogContent, DialogDescription, DialogHeader, DialogTitle } from "@repo/ui/components/ui/dialog"; import { ScrollArea } from "@repo/ui/components/ui/scroll-area"; interface DetailDialogProps { title: string; description?: string; isOpen: boolean; onOpenChange: (open: boolean) => void; children: React.ReactNode; } export function DetailDialog({ title, description, isOpen, onOpenChange, children, }: DetailDialogProps) { return ( <Dialog open={isOpen} onOpenChange={onOpenChange}> <DialogContent className="max-w-2xl max-h-[80vh]"> <DialogHeader> <DialogTitle>{title}</DialogTitle> {description && <DialogDescription>{description}</DialogDescription>} </DialogHeader> <ScrollArea className="pr-4">{children}</ScrollArea> </DialogContent> </Dialog> ); }

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/metacode0602/open-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server