We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/AI-enthusiasts/crawl4ai-rag-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
run_integration_tests.shโข1.64 kB
#!/bin/bash
# Script to run integration tests with Docker containers
set -e
echo "๐ Starting integration test environment..."
# Check if .env file exists
if [ ! -f .env ]; then
echo "โ Error: .env file not found. Please copy .env.example and configure it."
exit 1
fi
# Start test containers
echo "๐ฆ Starting test containers..."
docker-compose -f docker-compose.test.yml up -d
# Wait for Qdrant to be ready
echo "โณ Waiting for Qdrant to be ready..."
timeout=30
counter=0
until curl -s http://localhost:6333/readyz > /dev/null 2>&1; do
sleep 1
counter=$((counter + 1))
if [ $counter -ge $timeout ]; then
echo "โ Timeout waiting for Qdrant to start"
docker-compose -f docker-compose.test.yml logs qdrant-test
exit 1
fi
done
echo "โ Qdrant is ready!"
# Check if Supabase is configured
if grep -q "SUPABASE_URL=" .env && grep -q "SUPABASE_SERVICE_KEY=" .env; then
echo "โ Supabase configuration found"
else
echo "โ ๏ธ Warning: Supabase not configured. Only Qdrant tests will run."
echo " To test Supabase, add SUPABASE_URL and SUPABASE_SERVICE_KEY to .env"
fi
# Run integration tests
echo "๐งช Running integration tests..."
python -m pytest tests/test_integration.py -v -s --tb=short
# Capture exit code
TEST_EXIT_CODE=$?
# Show container logs if tests failed
if [ $TEST_EXIT_CODE -ne 0 ]; then
echo "โ Tests failed. Showing container logs..."
docker-compose -f docker-compose.test.yml logs
fi
# Cleanup
echo "๐งน Cleaning up test containers..."
docker-compose -f docker-compose.test.yml down
# Exit with test exit code
exit $TEST_EXIT_CODE