UNPKG

mcp-use

Version:

Opinionated MCP Framework for TypeScript (@modelcontextprotocol/sdk compatible) - Build MCP Agents, Clients and Servers with support for ChatGPT Apps, Code Mode, OAuth, Notifications, Sampling, Observability and more.

25 lines 921 B
/** * Cross-runtime utilities for Node.js and Deno compatibility */ export declare const isDeno: boolean; /** * Get an environment variable in a cross-runtime compatible way * Works in both Node.js and Deno environments * * @param key - The environment variable key * @returns The value of the environment variable, or undefined if not set */ export declare function getEnv(key: string): string | undefined; export declare function getCwd(): string; export declare const fsHelpers: { readFileSync(path: string, encoding?: string): Promise<string>; readFile(path: string): Promise<ArrayBuffer>; existsSync(path: string): Promise<boolean>; readdirSync(path: string): Promise<string[]>; }; export declare const pathHelpers: { join(...paths: string[]): string; relative(from: string, to: string): string; }; export declare function generateUUID(): string; //# sourceMappingURL=runtime.d.ts.map