Skip to main content
Glama

mcp-google-sheets

data-list.tsx1.22 kB
import React from 'react'; type DataListProps = { data?: Record<string, any>; className?: string; }; function formatValue(value: any): string { if (Array.isArray(value)) return value.join(', '); if (value === null || value === undefined) return ''; if (typeof value === 'object') return JSON.stringify(value); return String(value); } export const DataList: React.FC<DataListProps> = ({ data = {}, className = '', }) => { const entries = Object.entries(data).filter( ([_, value]) => value !== null && value !== undefined, ); if (entries.length === 0) { return ( <div className={`text-sm text-muted-foreground italic ${className}`}> No data available </div> ); } return ( <dl className={`grid gap-y-2 text-sm leading-relaxed ${className}`} style={{ wordBreak: 'break-word' }} > {entries.map(([key, value]) => ( <div key={key} className="grid grid-cols-[auto,1fr] gap-x-3 items-start" > <dt className="font-medium text-muted-foreground capitalize"> {key} </dt> <dd className="text-primary">{formatValue(value)}</dd> </div> ))} </dl> ); };

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

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