list_cve_products
Retrieve a list of all products linked to a specific vendor in the CVE database using this tool. Ideal for identifying potential vulnerabilities in vendor-specific software.
Instructions
Get a list of all products associated with a vendor in the CVE database. Source: cve-search.org
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| vendor | Yes | Vendor name to list products for |
Implementation Reference
- src/operations/cves.ts:25-30 (handler)The core handler function that implements the tool logic: fetches the list of CVE products for a given vendor from the cve-search.org API.export async function listCveProducts(vendor: string): Promise<any> { const response = await fetch(`${BASE_URL}/browse/${encodeURIComponent(vendor)}`); if (!response.ok) { throw new Error(`Failed to list products for vendor ${vendor}: ${response.statusText}`); } return response.json();
- src/index.ts:304-306 (schema)Input schema definition used in the tool registration for validating the 'vendor' parameter.inputSchema: zodToJsonSchema(z.object({ vendor: z.string().describe("Vendor name to list products for") })),
- src/index.ts:301-307 (registration)Tool registration in the listTools handler, defining name, description, and input schema.{ name: "list_cve_products", description: "Get a list of all products associated with a vendor in the CVE database. Source: cve-search.org", inputSchema: zodToJsonSchema(z.object({ vendor: z.string().describe("Vendor name to list products for") })), },
- src/index.ts:707-715 (handler)Dispatch handler in the callTool request that parses arguments, calls the core handler, and formats the response.case "list_cve_products": { const args = z.object({ vendor: z.string() }).parse(request.params.arguments); const response = await cves.listCveProducts(args.vendor); return { content: [{ type: "text", text: JSON.stringify(response, null, 2) }], }; }