We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/nightweb/lc-browser-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
check-artifacts.shβ’2.96 KiB
#!/bin/bash
# Check Artifacts Script
# This script helps diagnose and fix artifact download issues
set -e
echo "π LCBro Artifacts Checker"
echo "=========================="
# Function to check if directory exists and has files
check_directory() {
local dir=$1
local name=$2
echo "Checking $name directory: $dir"
if [ -d "$dir" ]; then
file_count=$(find "$dir" -type f | wc -l)
if [ "$file_count" -gt 0 ]; then
echo "β $name directory exists with $file_count files"
echo "Files:"
find "$dir" -type f -exec basename {} \; | head -10
if [ "$file_count" -gt 10 ]; then
echo "... and $((file_count - 10)) more files"
fi
return 0
else
echo "β οΈ $name directory exists but is empty"
return 1
fi
else
echo "β $name directory does not exist"
return 1
fi
}
# Check common artifact directories
echo ""
echo "π Checking artifact directories:"
coverage_exists=false
test_results_exists=false
if check_directory "coverage" "Coverage"; then
coverage_exists=true
fi
if check_directory "test-results" "Test Results"; then
test_results_exists=true
fi
if check_directory "playwright-report" "Playwright Report"; then
test_results_exists=true
fi
# Summary
echo ""
echo "π Summary:"
echo "==========="
if [ "$coverage_exists" = true ]; then
echo "β Coverage reports: Available"
else
echo "β Coverage reports: Missing"
fi
if [ "$test_results_exists" = true ]; then
echo "β Test results: Available"
else
echo "β Test results: Missing"
fi
# Recommendations
echo ""
echo "π‘ Recommendations:"
echo "==================="
if [ "$coverage_exists" = false ]; then
echo "β’ Run 'npm test' to generate coverage reports"
echo "β’ Check if test configuration includes coverage collection"
fi
if [ "$test_results_exists" = false ]; then
echo "β’ Run 'npm run test:e2e' to generate E2E test results"
echo "β’ Check Playwright configuration"
fi
# Check for common issues
echo ""
echo "π§ Common Issues & Solutions:"
echo "============================="
if [ ! -d "node_modules" ]; then
echo "β’ Missing node_modules: Run 'npm install'"
fi
if [ ! -f "package.json" ]; then
echo "β’ Missing package.json: Check if you're in the right directory"
fi
# Check Jest configuration
if [ -f "jest.config.js" ] || [ -f "jest.config.ts" ]; then
echo "β’ Jest configuration found"
if grep -q "coverage" jest.config.* 2>/dev/null; then
echo " β Coverage collection configured"
else
echo " β οΈ Coverage collection may not be configured"
fi
else
echo "β’ No Jest configuration found"
fi
# Check Playwright configuration
if [ -f "playwright.config.ts" ] || [ -f "playwright.config.js" ]; then
echo "β’ Playwright configuration found"
else
echo "β’ No Playwright configuration found"
fi
echo ""
echo "π Artifact check completed!"