We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/pshempel/mcp-time-server-node'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
cacheKeyHash.ts•364 B
import * as crypto from 'crypto';
/**
* Hash a cache key using SHA-256 to ensure filesystem safety
* and prevent issues with special characters
*
* @param key The raw cache key string
* @returns A 64-character hex string (SHA-256 hash)
*/
export function hashCacheKey(key: string): string {
return crypto.createHash('sha256').update(key).digest('hex');
}