export function formatCustomerId(customerId: string | number): string {
// Ensure string
let s = String(customerId);
// Remove any non-digit characters
s = s.replace(/\D+/g, "");
// Pad to 10 digits
return s.padStart(10, "0");
}
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/martechery/mcp-google-ads-ts'
If you have feedback or need assistance with the MCP directory API, please join our Discord server