export function isDate(value: unknown): value is Date {
return (
value instanceof Date ||
// date created in other JS context (for example, worker)
Object.prototype.toString.call(value) === '[object Date]'
)
}
export function isValidDate(date: Date) {
return date.toString() !== 'Invalid Date'
}
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/prisma/prisma'
If you have feedback or need assistance with the MCP directory API, please join our Discord server