get_latest_30_cves
Retrieve the 30 most recent CVEs with CAPEC, CWE, and CPE expansions from cve-search.org for security monitoring and vulnerability assessment.
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)The core handler function that fetches the latest 30 CVEs from the CVE Search API (https://cve.circl.lu/api/last). 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:471-475 (registration)Registration of the 'get_latest_30_cves' tool in the ListToolsRequest handler, defining its name, description, and parameterless 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:1330-1337 (handler)Execution handler in the CallToolRequest switch statement that calls the getLatest30Cves function from cves module and returns the JSON-formatted response.case "get_latest_30_cves": { const response = await cves.getLatest30Cves(); return { content: [ { type: "text", text: JSON.stringify(response, null, 2) }, ], }; }
- src/index.ts:474-474 (schema)Input schema definition for the tool: empty object since the tool takes no parameters."Get the latest/newest 30 CVEs including CAPEC, CWE and CPE expansions. Source: cve-search.org",
- src/operations/cves.ts:4-4 (helper)Base URL constant used by all CVE-related functions, including getLatest30Cves.const BASE_URL = "https://cve.circl.lu/api";