MIGRATION_EXECUTION_GUIDE.md•4.34 kB
# EuConquisto Composer MCP - Migration Execution Guide
## Pre-Migration Checklist
Before executing the migration, ensure:
- [ ] Claude Desktop is closed
- [ ] No active development processes running
- [ ] Current directory is the project root
- [ ] You have sufficient disk space for backup (~500MB)
## Execution Steps
### Step 1: Open Terminal
```bash
cd /Users/ricardokawasaki/Desktop/euconquisto-composer-mcp-poc
```
### Step 2: Verify Scripts are Executable
```bash
ls -la migrate-project-comprehensive.sh
# Should show -rwxr-xr-x permissions
```
### Step 3: Review What Will Happen
```bash
# Read the migration plan
cat PROJECT_REORGANIZATION_PLAN.md
# Check current state
ls -la | wc -l # Should show 44+ files
```
### Step 4: Execute the Comprehensive Migration
```bash
./migrate-project-comprehensive.sh
```
When prompted "Do you want to proceed? (y/N):", type `y` and press Enter.
## What Happens During Migration
1. **Backup Creation** (~30 seconds)
- Full project backup to `euconquisto-composer-mcp-poc_backup_[timestamp]`
- Git snapshot with tag `v4.0.3-pre-migration`
2. **File Reorganization** (~10 seconds)
- Creates clean directory structure
- Moves files to appropriate locations
- Archives versioned files
3. **Reference Updates** (~20 seconds)
- Updates all import statements
- Fixes configuration paths
- Updates shell script references
4. **Validation** (~5 seconds)
- Verifies critical files exist
- Checks executable permissions
- Validates configuration syntax
5. **Git Commit** (~5 seconds)
- Commits all changes
- Tags as `v4.1.0-comprehensive-migration`
Total time: ~1-2 minutes
## Post-Migration Verification
### 1. Check the Results
```bash
# Verify clean root directory (should show ~10-15 files)
ls -la | wc -l
# Check new structure
tree -L 2 -d
# Review migration log
cat comprehensive-migration.log
```
### 2. Test Core Functionality
```bash
# Test the working implementation
./bin/start-working-implementation.sh
```
### 3. Update Claude Desktop Configuration
```bash
# View the new config location
cat config/claude-desktop-working.json
# The config now points to:
# "command": "/Users/ricardokawasaki/Desktop/euconquisto-composer-mcp-poc/bin/start-working-implementation.sh"
```
### 4. Verify Git State
```bash
# Check git tags
git tag
# View recent commits
git log --oneline -5
```
## If Something Goes Wrong
### Option 1: Revert Using Git
```bash
# Revert to pre-migration state
git reset --hard v4.0.3-pre-migration
```
### Option 2: Restore from Backup
```bash
# Find your backup directory
ls -la ../euconquisto-composer-mcp-poc_backup_*
# Restore it (replace timestamp with actual)
rm -rf /Users/ricardokawasaki/Desktop/euconquisto-composer-mcp-poc
mv ../euconquisto-composer-mcp-poc_backup_[timestamp] /Users/ricardokawasaki/Desktop/euconquisto-composer-mpc-poc
```
## Expected Final Structure
```
euconquisto-composer-mcp/
├── README.md (essential docs only in root)
├── CHANGELOG.md
├── package.json
├── .gitignore
├── bin/ (all executable scripts)
│ ├── start-working-implementation.sh
│ └── start-*.sh
├── config/ (all configuration files)
│ ├── claude-desktop-working.json
│ └── *.json
├── src/ (source code - unchanged internally)
├── dist/ (compiled output)
├── docs/ (all documentation)
├── tests/ (all test files)
├── tools/ (development tools)
└── archive/legacy/ (old versions archived)
```
## Success Indicators
✅ Root directory has only ~10-15 files (not 44+)
✅ All startup scripts in `bin/` directory
✅ All configs in `config/` directory
✅ Git shows clean working tree after migration
✅ `bin/start-working-implementation.sh` runs successfully
✅ No "file not found" errors in logs
## Next Steps After Successful Migration
1. **Update Claude Desktop** with new config path
2. **Test your typical workflow** to ensure everything works
3. **Remove backup** after 24 hours of successful use:
```bash
rm -rf ../euconquisto-composer-mcp-poc_backup_*
```
4. **Enjoy** your clean, professional project structure!
---
Migration Guide Created: $(date)