Skip to main content
Glama

Ultra MCP

utils.ts838 B
import { type ClassValue, clsx } from 'clsx'; import { twMerge } from 'tailwind-merge'; export function cn(...inputs: ClassValue[]) { return twMerge(clsx(inputs)); } export function formatCost(cost: number): string { return new Intl.NumberFormat('en-US', { style: 'currency', currency: 'USD', minimumFractionDigits: 2, maximumFractionDigits: 4, }).format(cost); } export function formatNumber(num: number): string { return new Intl.NumberFormat('en-US').format(num); } export function formatDate(date: string | Date): string { const d = typeof date === 'string' ? new Date(date) : date; // Check if the date is invalid if (isNaN(d.getTime())) { return 'Invalid Date'; } return new Intl.DateTimeFormat('en-US', { month: 'short', day: 'numeric', year: 'numeric', }).format(d); }

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/RealMikeChong/ultra-mcp'

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