UNPKG

mcp-cve-intelligence-server-lite-test

Version:

Lite Model Context Protocol server for comprehensive CVE intelligence gathering with multi-source exploit discovery, designed for security professionals and cybersecurity researchers - Alpha Release

36 lines 1.63 kB
/** * Utility functions for CVE data normalization and processing */ import { CVEDescription, RawDescriptionData } from '../types/cve.js'; /** * Get English description from CVE descriptions array with fallback * @param descriptions Array of CVE descriptions * @returns English description string or fallback message */ export declare function getEnglishDescription(descriptions?: CVEDescription[]): string; /** * Normalize CVE descriptions array to ensure consistent format * @param descriptions Raw descriptions data from various sources * @returns Normalized descriptions array */ export declare function normalizeDescriptions(descriptions: RawDescriptionData | RawDescriptionData[] | string | null | undefined): CVEDescription[]; /** * Transform CVE object to replace descriptions array with single description string * @param cve CVE object with descriptions array * @returns CVE object with description as string */ export declare function transformCVEForDisplay(cve: any): any; /** * Transform CVE search result to replace descriptions arrays with description strings * @param result CVE search result * @returns Transformed search result with description strings */ export declare function transformCVESearchResultForDisplay(result: any): any; /** * Deep transform any object that might contain CVE objects with descriptions * This handles nested structures like reports, arrays, etc. * @param obj Object that might contain CVE objects * @returns Transformed object with description strings */ export declare function deepTransformCVEsForDisplay(obj: any): any; //# sourceMappingURL=cve-utils.d.ts.map