Package Lifecycle Tools

These tools expose the same package lifecycle contract used by the REST API, CLI, and embedded dashboard. Package listing, cleanup preview, cleanup apply, and exact block package removal all delegate to crate::packages::PackageLifecycleService, so MCP clients see the same artifact/ref model and cleanup decisions as other Stackie surfaces.

MCP tools return JSON strings containing shared package lifecycle DTOs. The cleanup apply and exact removal tools may uninstall packages and mutate Stackie’s package tracking tables.