Skip to main content
Glama
run_load_limited.sh1.11 kB
#!/bin/bash # Script to load limited CVE data using GitHub API loader # Quick test with ~100 CVEs from 2024 set -e # Exit on error echo "=========================================" echo "Loading Limited CVE Data (API Loader)" echo "=========================================" echo "" # Default parameters (can be overridden via command line) YEAR="${1:-2024}" LIMIT="${2:-100}" echo "Configuration:" echo " Year: $YEAR" echo " Limit: $LIMIT CVEs" echo "" # Check if virtual environment is activated if [ -z "$VIRTUAL_ENV" ]; then echo "Warning: Virtual environment not detected." echo "Activate it with: source venv/bin/activate" echo "" read -p "Continue anyway? (y/N) " -n 1 -r echo if [[ ! $REPLY =~ ^[Yy]$ ]]; then exit 1 fi fi # Run the loader echo "Starting data load..." echo "" python -m src.data_ingestion.loader --year "$YEAR" --limit "$LIMIT" echo "" echo "=========================================" echo "Data load complete!" echo "=========================================" echo "" echo "Verify with:" echo " python tests/test_database.py" echo ""

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/davidculver/cve-mcp-server'

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