Skip to main content
Glama
firetix

MCP Vulnerability Checker Server

by firetix
test_modular_server.pyβ€’1.93 kB
#!/usr/bin/env python3 """ Test script for the modular MCP server structure. """ import asyncio import os import sys import pytest # Add parent directory to path so we can import mcp_simple_tool sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) @pytest.mark.asyncio async def test_imports(): """Test that all imports work correctly.""" print("πŸ§ͺ Testing Modular MCP Server\n") print("βœ… Successfully imported main server function") print("βœ… Successfully imported lookup_cve") print("βœ… Successfully imported check_package_vulnerabilities") print("βœ… Successfully imported get_epss_score") print("βœ… Successfully imported calculate_cvss_score") print("βœ… Successfully imported search_vulnerabilities") print("βœ… Successfully imported get_exploit_availability") print("βœ… Successfully imported get_vulnerability_timeline") print("βœ… Successfully imported get_vex_status") print("\n🎯 All security tool imports working! βœ…") print("\nπŸ“ The server now has the following modular structure:") print(" mcp_simple_tool/") print(" β”œβ”€β”€ server.py (main server)") print(" └── tools/") print(" β”œβ”€β”€ __init__.py") print(" β”œβ”€β”€ cve_lookup.py (CVE vulnerability lookup)") print(" β”œβ”€β”€ epss_lookup.py (EPSS score lookup)") print(" β”œβ”€β”€ cvss_calculator.py (CVSS score calculator)") print(" β”œβ”€β”€ vulnerability_search.py (Advanced vulnerability search)") print(" β”œβ”€β”€ exploit_availability.py (Exploit and PoC detection)") print(" β”œβ”€β”€ vulnerability_timeline.py (Timeline and patch status)") print(" β”œβ”€β”€ vex_status.py (VEX status checking)") print(" └── package_vulnerability.py (Python package vuln check)") if __name__ == "__main__": asyncio.run(test_imports())

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/firetix/vulnerability-intelligence-mcp-server'

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