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.

24 lines 874 B
/** * Resolves a directory path, handling relative paths like "." properly * * @param cwd - The directory path that might be relative * @returns Absolute path to the directory * @throws Error if the path doesn't exist or isn't a directory */ export declare function resolveCwd(cwd: string): string; /** * Validates that a directory contains a package.json file * * @param cwd - The directory path to check * @returns True if package.json exists */ export declare function isNodeProject(cwd: string): boolean; /** * Resolves and validates a Node.js project directory * * @param cwd - The directory path that should contain a Node.js project * @returns Absolute path to the project directory * @throws Error if not a valid Node.js project directory */ export declare function resolveProjectCwd(cwd: string): string; //# sourceMappingURL=path-resolver.d.ts.map