Skip to main content
Glama
roadwy

cve-search_mcp

vul_vendor_products

Retrieve a JSON list of all products associated with a specific vendor from the CVE-Search API using the MCP server. Simplify vendor-product mapping for vulnerability management.

Instructions

To get a JSON with all the products associated to a vendor

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
vendorYes

Implementation Reference

  • main.py:36-42 (handler)
    The handler function for the 'vul_vendor_products' tool. It constructs a URI for the given vendor and calls get_requests to fetch the list of products from the CVE API.
    @mcp.tool()
    def vul_vendor_products(vendor: str) -> Dict[str, Any]:
        """
        To get a JSON with all the products associated to a vendor
        """
        uri = f"browse/{vendor}"
        return get_requests(uri)
  • main.py:15-26 (helper)
    Helper function used by vul_vendor_products (and other tools) to make HTTP GET requests to the CVE API base URL and return JSON 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:36-36 (registration)
    The @mcp.tool() decorator registers the vul_vendor_products function as an MCP tool.
    @mcp.tool()

Tool Definition Quality

Score is being calculated. Check back soon.

Install Server

Other Tools

Related Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/roadwy/cve-search_mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server