Skip to main content
Glama
utils.ts528 B
export function toKey(s: string): string { return s.toLowerCase().replace(/[^a-z0-9♀♂-]+/g, ' ').trim().replace(/\s+/g, ' '); } // Normaliza nombres a la convención de PokeAPI (kebab-case) export function normName(s: string): string { return s .toLowerCase() .replace(/[\s_.]/g, '-') .replace(/♀/g, '-f') .replace(/♂/g, '-m') .replace(/'/g, '') .replace(/[^a-z0-9-]/g, '') .replace(/-+/g, '-') .trim(); } export function unique<T>(arr: T[]): T[] { return Array.from(new Set(arr)); }

Implementation Reference

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/EscasanN/MCP_Pokemon'

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