/**
* Checks to see if a value is not only a `Date` object,
* but a *valid* `Date` object that can be converted to a
* number. For example, `new Date('blah')` is indeed an
* `instanceof Date`, however it cannot be converted to a
* number.
*/
export function isValidDate(value: any): value is Date {
return value instanceof Date && !isNaN(value as any);
}
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/samihalawa/brevo-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server