UNPKG

npmplus-mcp-server

Version:

Production-ready MCP server for intelligent JavaScript package management. Works with Claude, Windsurf, Cursor, VS Code, and any MCP-compatible AI editor.

20 lines 809 B
import NodeCache from "node-cache"; export declare class CacheManager { private memoryCache; constructor(); get<T>(key: string): Promise<T | undefined>; set<T>(key: string, value: T, ttl?: number): Promise<boolean>; del(key: string): Promise<boolean>; flush(): Promise<void>; getStats(): NodeCache.Stats; static keys: { packageInfo: (name: string, version?: string) => string; searchResults: (query: string, limit?: number) => string; vulnerabilities: (name: string, version: string) => string; bundleSize: (name: string, version: string) => string; downloads: (name: string, period: string) => string; dependencies: (path: string) => string; }; } export declare const cache: CacheManager; //# sourceMappingURL=cache.d.ts.map