UNPKG

@kya-os/mcp-i

Version:

COMING SOON:Production-ready MCP Identity with automatic registration, key rotation, and optimized performance

74 lines 1.92 kB
/** * Platform detection and client info generation for MCP-I * Provides accurate runtime information across all deployment environments */ /** * Client information sent with registry requests */ export interface ClientInfo { /** * SDK version from package.json */ sdkVersion: string; /** * Programming language of the SDK (always 'javascript' at runtime) */ language: string; /** * Runtime platform (node, deno, browser, edge-light, etc.) */ platform: string; /** * Detailed runtime information */ runtime?: { name: string; version?: string; environment?: string; }; /** * Processing mode preference */ processingMode?: 'sync' | 'async'; /** * Additional platform-specific metadata */ metadata?: Record<string, any>; } /** * Platform detection result */ export interface PlatformInfo { platform: string; runtime: string; version?: string; environment?: string; capabilities: { fileSystem: boolean; asyncRuntime: boolean; persistentStorage: boolean; longRunning: boolean; }; } /** * Detect the current runtime platform */ export declare function detectPlatform(): PlatformInfo; /** * Generate client info for registry requests */ export declare function generateClientInfo(options?: { processingMode?: 'sync' | 'async'; customMetadata?: Record<string, any>; }): ClientInfo; /** * Get recommended configuration based on platform */ export declare function getPlatformRecommendations(platformInfo?: PlatformInfo): { storage: "file" | "memory" | "auto"; transport: "fetch" | "axios" | "auto"; processingMode: "sync" | "async"; logLevel: "debug" | "info" | "warn" | "error" | "silent"; }; export declare function getCachedPlatformInfo(): PlatformInfo; //# sourceMappingURL=platform-info.d.ts.map