UNPKG

xmcp

Version:

The TypeScript MCP framework

21 lines (20 loc) • 799 B
/** * Web-compatible pathToToolName using djb2 hash. * Used for Cloudflare Workers where node:crypto is not available. */ export declare function pathToToolNameDjb2(path: string): string; /** * Node.js pathToToolName using MD5 hash. * Used for backwards compatibility with existing Node.js deployments. * * Note: For Cloudflare builds, crypto is resolved to an empty module * via bundler fallback config. This is safe because pathToToolNameDjb2 * is used instead in Cloudflare Workers. */ export declare function pathToToolNameMd5(path: string): string; /** * Default export for backwards compatibility. * In Cloudflare Workers, use pathToToolNameDjb2 directly. * In Node.js, this uses MD5 for backwards compatibility. */ export declare const pathToToolName: typeof pathToToolNameMd5;