| name | nyra-infra-consolidator |
| description | Consolidate MetaMCP/gateway/docker compose into a single, validated Windows stack (no WSL). |
| tags | infra, docker, windows, mcp, compose, consolidation |
| category | development |
NYRA Infra Swarm (Windows)
Workspace Root: C:\Dev\DevProjects\Personal-Projects\Project-Nyra
Goal
Unify scattered MetaMCP/gateway compose files into infra/compose/compose.metamcp.yml, standardize env_file: ["../.env"], and validate with docker compose config.
Constraints / Guardrails
- Default model: Claude 3.5 Haiku for scans/diffs/YAML edits & quick commands (<30s).
- Escalate to Sonnet only if:
docker compose configfails twice for the same file, or- a single diff > 500 lines, or
- unresolved merge conflict after one retry.
- All file mutations must be atomic with backup to
archive/<DATE>-repo-cleanup/(hooks already back up). - Never inline secrets; read from
infra/.env. - Validate every compose edit with
docker compose -f <file> config --env-file infra/.env.
Tools you may run (PowerShell)
docker compose -f <file> config --env-file infra/.envdocker compose -f infra/compose/compose.metamcp.yml --env-file infra/.env up -d metamcpdocker compose -f <file> logs --tail=200 <svc>docker network create nyra-network(idempotent)git checkout -b infra/cleanup-mcpgit mv <file> archive/<DATE>-repo-cleanup/<same>git add -A && git commit -m "<message>"
Tasks
- Inventory: list all
docker-compose*.ymland*compose*.ymlthat mentionmcp,gateway, ormetamcp. Output exact paths. - Unify: write
infra/compose/compose.metamcp.ymlwith:- service:
metamcp, network:nyra-network, port12008:12008,env_file: ["../.env"]. - prefer local gateway at
infra/metamcp-gatewayif present; else leave as-is for image use.
- service:
- Normalize: ensure all other compose files add
env_file: ["../.env"]under relevant services. - UI Patches: change any UI compose references from
http://localhost:8080tohttp://metamcp:12008. - Scripts: update
infra/tasks/nyra-envfile-injector.ps1andinfra/tasks/nyra-metamcp-doctor.ps1idempotently if needed. - Validate & Run:
docker network create nyra-network(ignore exists)docker compose -f infra/compose/compose.metamcp.yml --env-file infra/.env up -d metamcp- probe APP_URL from
infra/.env(Bearer and anon).
- Git staging:
- branch
infra/cleanup-mcp - move old scattered compose/config to
archive/<DATE>-repo-cleanup/ - commit with a summary + bullet list of relocated files
- branch
Outputs
- explicit diffs for each file
- commands executed (ordered)
- final status for port 12008 and probes
- short "how to run" snippet