Skip to main content
Glama
Cards.tsx559 B
"use client"; import type { ReactNode } from "react"; interface CardsProps { children: ReactNode; cols?: 1 | 2 | 3 | 4; } /** * Generic Cards wrapper used inside MDX docs. * Renders children in a responsive grid with reasonable spacing. */ export default function Cards({ children, cols = 3 }: CardsProps) { const colClass = { 1: "grid-cols-1", 2: "sm:grid-cols-2", 3: "sm:grid-cols-2 lg:grid-cols-3", 4: "sm:grid-cols-2 lg:grid-cols-4", }[cols]; return ( <div className={`grid gap-4 ${colClass}`}>{children}</div> ); }

Latest Blog Posts

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/mcpauth/mcpauth'

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