get_latest_30_cves
Retrieve the most recent 30 CVEs with CAPEC, CWE, and CPE expansions from cve-search.org for vulnerability analysis in Kubernetes and cloud environments.
Instructions
Get the latest/newest 30 CVEs including CAPEC, CWE and CPE expansions. Source: cve-search.org
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/operations/cves.ts:53-59 (handler)Core handler function that fetches the latest 30 CVEs from the cve-search.org API ('/last' endpoint). This is the exact implementation of the tool logic.export async function getLatest30Cves(): Promise<any> { const response = await fetch(`${BASE_URL}/last`); if (!response.ok) { throw new Error(`Failed to get last CVEs: ${response.statusText}`); } return response.json(); }
- src/index.ts:318-322 (registration)Registers the tool in the MCP server's list of available tools, specifying name, description, and empty input schema.{ name: "get_latest_30_cves", description: "Get the latest/newest 30 CVEs including CAPEC, CWE and CPE expansions. Source: cve-search.org", inputSchema: zodToJsonSchema(z.object({})), },
- src/index.ts:730-735 (handler)Wrapper handler in the main tool dispatch switch that calls the core cves.getLatest30Cves() and returns the response in MCP format.case "get_latest_30_cves": { const response = await cves.getLatest30Cves(); return { content: [{ type: "text", text: JSON.stringify(response, null, 2) }], }; }
- src/index.ts:321-321 (schema)Defines the input schema as an empty object (no parameters required). Note: this line is part of the registration block.inputSchema: zodToJsonSchema(z.object({})),
- src/operations/cves.ts:4-4 (helper)Base URL constant used by all CVE tools, including getLatest30Cves.const BASE_URL = "https://cve.circl.lu/api";