We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/gergelyszerovay/mcp-id-date'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
isErrnoException.ts•339 B
import { isError } from '@shared/core/isError';
/**
* Type guard to check if an error is a NodeJS ErrnoException
*
* @param error - The error to check
* @returns True if the error is an ErrnoException
*/
export function isErrnoException(error: unknown): error is NodeJS.ErrnoException {
return isError(error) && 'code' in error;
}