/** * @fileoverview Tool for finding CVEs affecting a specific product and version by CPE. * @module src/mcp-server/tools/definitions/nvd-audit-cpe */ import { z } from '@cyanheads/mcp-ts-core'; import { JsonRpcErrorCode } from '@cyanheads/mcp-ts-core/errors'; export declare const nvdAuditCpe: import("@cyanheads/mcp-ts-core").ToolDefinition; virtualMatchString: z.ZodOptional; versionStart: z.ZodOptional; versionStartType: z.ZodDefault>; versionEnd: z.ZodOptional; versionEndType: z.ZodDefault>; severityMin: z.ZodOptional>; allLanguages: z.ZodDefault; limit: z.ZodDefault; offset: z.ZodDefault; }, z.core.$strip>, z.ZodObject<{ cves: z.ZodArray>; cvssScores: z.ZodArray; }, z.core.$strip>>; severity: z.ZodOptional>; weaknesses: z.ZodArray; }, z.core.$strip>>; configurationNodes: z.ZodArray; nodeOperator: z.ZodOptional; cpeMatch: z.ZodArray; versionStartExcluding: z.ZodOptional; versionEndIncluding: z.ZodOptional; versionEndExcluding: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>>; references: z.ZodOptional; tags: z.ZodOptional>; }, z.core.$strip>>>; cisaKev: z.ZodOptional>; }, z.core.$strip>>; }, z.core.$strip>, readonly [{ readonly reason: "missing_cpe_input"; readonly code: JsonRpcErrorCode.ValidationError; readonly when: "Neither cpeName nor virtualMatchString was provided."; readonly recovery: "Provide either cpeName (exact CPEv2.3 string) or virtualMatchString (partial match pattern) — use nvd_search_cpes to find the correct CPE."; }, { readonly reason: "conflicting_cpe_inputs"; readonly code: JsonRpcErrorCode.ValidationError; readonly when: "Both cpeName and virtualMatchString were provided simultaneously."; readonly recovery: "Provide only one of cpeName or virtualMatchString per call, not both."; }, { readonly reason: "version_range_without_match_string"; readonly code: JsonRpcErrorCode.ValidationError; readonly when: "versionStart or versionEnd was provided without virtualMatchString."; readonly recovery: "Version range parameters require virtualMatchString; provide that parameter or use cpeName for exact-version queries."; }, { readonly reason: "invalid_cpe_format"; readonly code: JsonRpcErrorCode.ValidationError; readonly when: "cpeName or virtualMatchString does not start with \"cpe:2.3:\", or NVD rejected it as a malformed CPE parameter — cpeName rejects anything short of a complete CPEv2.3 name, virtualMatchString only genuinely malformed characters."; readonly recovery: "Provide a valid CPEv2.3 string starting with \"cpe:2.3:\". Use nvd_search_cpes to find the correct CPE name."; }, { readonly reason: "rate_limited"; readonly code: JsonRpcErrorCode.RateLimited; readonly when: "NVD returned HTTP 403 indicating the rate limit was exceeded."; readonly retryable: true; readonly recovery: "Wait for the NVD rate window to reset or set the NVD_API_KEY environment variable for higher limits."; }], { readonly totalCount: z.ZodNumber; readonly returned: z.ZodNumber; readonly offset: z.ZodNumber; readonly auditTarget: z.ZodString; readonly severityMin: z.ZodOptional; readonly filteredCount: z.ZodOptional; readonly notice: z.ZodOptional; }>; //# sourceMappingURL=nvd-audit-cpe.tool.d.ts.map