vul_vendors
Retrieve a JSON list of all vendors from the CVE-Search API to identify potential vulnerabilities and assess security risks efficiently.
Instructions
To get a JSON with all the vendors
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- main.py:29-34 (handler)The main handler function for the 'vul_vendors' tool. It is registered via the @mcp.tool() decorator and calls the get_requests helper to fetch a list of all vendors from the CVE search API at https://cve.circl.lu/api/browse.def vul_vendors() -> Dict[str, Any]: """ To get a JSON with all the vendors """ return get_requests("browse")
- main.py:15-26 (helper)Helper function used by vul_vendors (and other tools) to make HTTP GET requests to the CVE API and return JSON data or error.def get_requests(uri: str) -> Dict[str, Any]: """To get a JSON with all the requests""" session = requests.Session() url = f"{BASE_URL}{uri}" try: response = session.get(url, timeout=15) response.raise_for_status() return response.json() except requests.exceptions.RequestException as e: logger.error(f"api request failed: {url} - {str(e)}") return {"error": str(e)}
- main.py:29-29 (registration)The @mcp.tool() decorator registers the vul_vendors function as an MCP tool.def vul_vendors() -> Dict[str, Any]: