Skip to main content
Glama
verify-reorganization.sh•5.96 kB
#!/bin/bash # EuConquisto Composer MCP - Reorganization Verification Script # This script verifies the reorganized structure works correctly PROJECT_ROOT="/Users/ricardokawasaki/Desktop/euconquisto-composer-mcp-poc" cd "$PROJECT_ROOT" echo "šŸ” EuConquisto Composer MCP - Reorganization Verification" echo "========================================================" echo "" # Check essential files in root echo "šŸ“‹ Checking Root Directory (should be clean)" echo "============================================" root_files=$(find . -maxdepth 1 -type f | grep -v '.git' | wc -l) echo "Root files count: $root_files (target: ≤15)" if [ "$root_files" -le 15 ]; then echo "āœ… Root directory is clean" else echo "āš ļø Root directory still has too many files" echo "Files in root:" find . -maxdepth 1 -type f | grep -v '.git' | sort fi echo "" # Check new directory structure echo "šŸ“ Checking New Directory Structure" echo "==================================" directories=("bin" "config" "archive" "logs" "temp" "src" "docs" "tests" "tools") for dir in "${directories[@]}"; do if [ -d "$dir" ]; then file_count=$(find "$dir" -type f | wc -l) echo "āœ… $dir/ exists ($file_count files)" else echo "āŒ $dir/ missing" fi done echo "" # Check critical files exist echo "šŸ”§ Checking Critical Files" echo "=========================" critical_files=( "package.json" "README.md" ".gitignore" "bin/start-working-implementation.sh" "config/claude-desktop-working.json" "dist/browser-automation-api-direct-save-v4.0.3.js" ) for file in "${critical_files[@]}"; do if [ -f "$file" ]; then echo "āœ… $file exists" else echo "āŒ $file missing" fi done echo "" # Check .gitignore effectiveness echo "🚫 Checking .gitignore Effectiveness" echo "==================================" if [ -f ".gitignore" ]; then echo "āœ… .gitignore exists" # Check if logs/ directory would be ignored if grep -q "logs/" .gitignore; then echo "āœ… logs/ directory will be ignored" else echo "āš ļø logs/ directory not in .gitignore" fi # Check if temp files would be ignored if grep -q "*.tmp" .gitignore; then echo "āœ… Temporary files will be ignored" else echo "āš ļø Temporary files not in .gitignore" fi # Check if debug files would be ignored if grep -q "debug-\*.png" .gitignore; then echo "āœ… Debug files will be ignored" else echo "āš ļø Debug files not in .gitignore" fi else echo "āŒ .gitignore missing" fi echo "" # Check git status echo "šŸ“ Checking Git Status" echo "=====================" if [ -d ".git" ]; then echo "Git repository status:" git status --porcelain | head -10 echo "" echo "Git tags:" git tag | tail -5 echo "" echo "Recent commits:" git log --oneline -5 else echo "āŒ Not a git repository" fi echo "" # Test key functionality echo "āš™ļø Testing Key Functionality" echo "============================" # Check if main entry point is accessible if [ -f "$(node -p "require('./package.json').main")" ]; then echo "āœ… Package.json main entry point exists" else echo "āŒ Package.json main entry point missing" fi # Check if startup script is executable if [ -x "bin/start-working-implementation.sh" ]; then echo "āœ… Startup script is executable" else echo "āŒ Startup script not executable or missing" fi # Verify Claude Desktop config syntax if [ -f "config/claude-desktop-working.json" ]; then if jq empty config/claude-desktop-working.json 2>/dev/null; then echo "āœ… Claude Desktop config is valid JSON" else echo "āŒ Claude Desktop config has invalid JSON" fi else echo "āŒ Claude Desktop config missing" fi echo "" # Archive statistics echo "šŸ“¦ Archive Statistics" echo "===================" if [ -d "archive" ]; then legacy_count=$(find archive/legacy -type f 2>/dev/null | wc -l) total_archive=$(find archive -type f 2>/dev/null | wc -l) echo "āœ… Legacy files archived: $legacy_count" echo "āœ… Total archived files: $total_archive" else echo "āš ļø Archive directory missing" fi echo "" # Size comparison (if backup exists) echo "šŸ“Š Size Analysis" echo "===============" backup_dirs=$(find ../euconquisto-composer-mcp-poc_backup_* -maxdepth 0 -type d 2>/dev/null | head -1) if [ -n "$backup_dirs" ]; then original_size=$(du -sh "$backup_dirs" 2>/dev/null | cut -f1) current_size=$(du -sh . | cut -f1) echo "Original size: $original_size" echo "Current size: $current_size" else echo "No backup directory found for comparison" fi echo "" # Final recommendations echo "šŸŽÆ Final Recommendations" echo "=======================" issues_found=0 # Check for remaining version-suffixed files versioned_files=$(find . -name "*-v[0-9]*" -o -name "*-fixed*" -o -name "*-clean*" | grep -v archive | wc -l) if [ "$versioned_files" -gt 0 ]; then echo "āš ļø Found $versioned_files remaining versioned files outside archive" issues_found=$((issues_found + 1)) fi # Check root file count if [ "$root_files" -gt 15 ]; then echo "āš ļø Root directory still has $root_files files (should be ≤15)" issues_found=$((issues_found + 1)) fi if [ "$issues_found" -eq 0 ]; then echo "šŸŽ‰ Reorganization successful! No issues found." echo "" echo "āœ… Next steps:" echo "1. Update Claude Desktop to use: config/claude-desktop-working.json" echo "2. Test functionality with: bin/start-working-implementation.sh" echo "3. Commit any final adjustments" echo "4. Remove backup directory after verification" else echo "āš ļø Found $issues_found issues that need attention" echo " Review the output above and fix issues before proceeding" fi echo "" echo "šŸ” Verification completed at $(date)"

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/rkm097git/euconquisto-composer-mcp-poc'

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