UNPKG

navigation-equipment-manuals-mcp-server

Version:

Navigation Equipment Manuals MCP Server for create, update, delete, and search navigation equipment manuals

57 lines 1.53 kB
/** * Simple logger utility for debugging and tracking operations */ export declare const logger: { /** * Log a message to both console and file */ log: (message: string) => void; /** * Log an error message */ error: (message: string, error?: Error) => void; /** * Log a warning message */ warn: (message: string) => void; /** * Log an info message */ info: (message: string) => void; /** * Log a debug message (only in debug mode) */ debug: (message: string) => void; }; /** * Utility function to validate MongoDB ObjectId format */ export declare function isValidObjectId(id: string): boolean; /** * Utility function to sanitize search queries */ export declare function sanitizeSearchQuery(query: string): string; /** * Utility function to validate equipment ID */ export declare function validateEquipmentId(id: any): boolean; /** * Utility function to normalize manual type */ export declare function normalizeManualType(type: string): string; /** * Utility function to normalize equipment category */ export declare function normalizeCategory(category: string): string; /** * Utility function to format results for MCP response */ export declare function formatMcpResponse(data: any, message?: string): any; /** * Utility function to handle pagination parameters */ export declare function getPaginationParams(limit?: number, offset?: number): { limit: number; offset: number; }; //# sourceMappingURL=api.d.ts.map