Maintenance
The maintenance command handles ongoing project health — dependency updates, platform version upgrades, API version bumps, and configuration drift.
maintenanceWorkflow
Section titled “Workflow”- Assessment — reads
package.jsonacross all workspaces, runspnpm outdated, checks platform versions against latest stable, runs security audit, checks configuration drift - Maintenance plan — categorises updates by risk (security fixes, patch, minor, major, API version bumps). Presents for approval.
- Apply — applies updates incrementally in risk order (lowest first), validates between each tier
- Verification — full type check, lint, build, dev server start, playwright spot-check
- Summary — before/after versions table, security fixes, files modified, recommended follow-up
What It Checks
Section titled “What It Checks”| Check | Details |
|---|---|
| Dependencies | pnpm outdated --recursive across all workspaces |
| Platform version | Current framework version vs latest stable |
| API version | Current API version vs latest (e.g., Storefront API) |
| Security | pnpm audit for known vulnerabilities |
| Configuration | .mcp.json against current standards, project structure alignment |
When to Run
Section titled “When to Run”- After completing a major build phase (suggested automatically after
audit) - Before starting new feature work on an existing project
- When Shopify announces API deprecations or version changes
- As part of regular project maintenance cycles