Clean up and organize the flask-shopdb repository for better maintainability and discoverability: ## Changes - Update .gitignore for build artifacts (publish/, data/, 122M total) - Reorganize .claude/ into 6 subdirectories with README navigation - Consolidate overlapping MCP setup guides into MCP-QUICK-START.md - Move deployment docs from root to docs/deployment/ - Archive dated status reports to .claude/archived/ - Delete temporary files (logs, backups, empty reports, ~50K) ## New Structure .claude/ organized into: - setup/ - MCP, VM, Hyper-V, GitHub setup guides + scripts (17 files) - plans/ - Feature plans and protocols (5 files) - maintenance/ - Deployment checklists and reports (4 files) - archived/ - Historical documentation (9 files) - skills/ - Claude Code automation (5 files) - workflows/ - Security audit workflow (1 file) docs/deployment/ created with 6 deployment guides: - LOCAL-DEV-SETUP.md, DOCKER-SETUP.md, DOCKER-PREBUILT-APPROACH.md - PRODUCTION-READINESS.md, DEPLOY-TO-VM.md, README.md Root directory cleaned to essential docs only: - CLAUDE.md, README.md, CONTRIBUTING.md, CHANGELOG.md Benefits: - Clear navigation via README.md in each subdirectory - No duplicate/overlapping documentation - Large artifacts properly gitignored (won't bloat repository) - Historical context preserved in archived/ See .claude/CLEANUP-SUMMARY.md for complete details. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
4.1 KiB
4.1 KiB
Flask-ShopDB Dev Environment Startup Checklist
Quick reference for starting the complete development environment with all MCP servers and multi-agent collaboration.
Pre-Launch (First Time Only)
These items are already configured and will persist:
- ✅
.mcp.json- MCP server configurations (gortex, mysql, browser, vm, coordinator) - ✅
.claude/settings.json- Auto-enables project MCP servers + SessionEnd hook - ✅
start-dev.cmd- Updated withNODE_TLS_REJECT_UNAUTHORIZED=0for Vite - ✅
stop-dev.cmd- Auto-runs when Claude Code session closes
Launch Sequence
Step 1: Start Development Environment
./start-dev.cmd
What this does:
- Checks MCP Coordinator daemon - starts it if not running (for multi-agent collaboration)
- Starts Flask API (Docker) - https://192.168.100.1:5001
- Starts MySQL DB (Docker) - healthy check
- Starts Vite dev server - http://192.168.100.1:5173
- Note: Vite window will pop up (this is normal)
- Vite now has
NODE_TLS_REJECT_UNAUTHORIZED=0to connect to Flask's HTTPS
Verify it's running:
- Frontend: http://192.168.100.1:5173
- Backend: https://192.168.100.1:5001
Step 3: Open Claude Code Session
# In project directory
claude
On first launch after MCP config changes, you'll be prompted to approve:
- ✅ gortex (C:\Users\270015376\Documents\gortex.exe)
- ✅ mysql (database access)
- ✅ browser (browser automation)
- ✅ vm / vm-shopfloor (SSH to test VM)
- ✅ coordinator (multi-agent collaboration)
Auto-loaded MCP servers:
- github, shopdb, amber (from user config)
- Plus all project servers from
.mcp.json
What's Automated
On Dev Environment Start (./start-dev.cmd):
- ✅ MCP Coordinator daemon auto-starts (if not already running)
- ✅ Flask API (Docker)
- ✅ MySQL DB (Docker)
- ✅ Vite dev server (with TLS fix)
On Claude Code Session Start:
- ✅ All approved MCP servers auto-connect
- ✅
enableAllProjectMcpServers: trueloads project servers
On Session Close:
- ✅
./stop-dev.cmdruns automatically (SessionEnd hook) - ✅ MCP Coordinator daemon stops
- ✅ Docker containers stop
- ✅ Vite dev server stops
- ✅ No manual cleanup needed
Troubleshooting
Vite Proxy Errors (TLS)
If you see http proxy error: /api/... in Vite window:
- Check Vite was started with
NODE_TLS_REJECT_UNAUTHORIZED=0 - Restart Vite: Kill the window, run
./start-dev.cmdagain
MCP Servers Not Loading
- Restart Claude Code session
- Check
.mcp.jsonexists in project root (not.claude/mcp-servers.json) - Verify
enableAllProjectMcpServers: truein.claude/settings.json
Coordinator Not Working
# Check daemon status
npx mcp-coordinator server status
# Restart if needed
npx mcp-coordinator server stop
npx mcp-coordinator server start --daemon
Flask Not Responding
# Check Docker containers
docker ps --filter "name=flask-shopdb"
# Restart if needed
./stop-dev.cmd
./start-dev.cmd
Quick Status Check
# Check all services at once
docker ps --filter "name=flask-shopdb" && \
curl -s http://localhost:5173 > /dev/null && echo "✅ Vite OK" && \
curl -sk https://localhost:5001/api/auth/me 2>&1 | grep -q "Authorization" && echo "✅ Flask OK" && \
curl -s http://localhost:3100/health > /dev/null && echo "✅ Coordinator OK"
Login Credentials
ShopDB App:
- Username:
270015376ortestadmin - Password:
admin123
Test VM (192.168.100.10):
- SupportUser:
vos313 - shopfloor:
vos313
Current MCP Servers
| Server | Purpose | Status |
|---|---|---|
| github | GitHub API access | Auto-loaded |
| shopdb | ShopDB-specific tools | Auto-loaded |
| amber | GE internal tools | Auto-loaded |
| gortex | Custom Gortex tool | Needs approval |
| mysql | Direct DB access | Needs approval |
| browser | Browser automation | Needs approval |
| vm | SSH to test VM (SupportUser) | Needs approval |
| vm-shopfloor | SSH to test VM (shopfloor) | Needs approval |
| coordinator | Multi-agent collaboration | Needs approval |
Last updated: 2026-09-10