Offload and reinstall apps through the MCP server
The problem
Follow-up to FEAT-102. Offload and Reinstall work well in 1.47.0. We tested them on a 3-container app: the unique image was removed, the shared alpine/socat image was kept, compose, env, mounted folders and the Cloudflare route stayed, and Reinstall pulled the same digest back. An app whose images are all shared is correctly refused.
The gap: there is no MCP tool for any of it. An agent cannot see which apps are offloaded, cannot free disk space when a server runs low, and cannot bring an app back before it needs it. Today the user has to click in the desktop app while the agent checks the server by hand.
Proposed tools, mirroring the dialog:
- offload_app_preview(serverId, stackId): the same plan the dialog shows (containers to remove, each image with size, removed or kept and why, mounted folders, routes, bytes freed), or the reason the app can't be offloaded.
- offload_app(serverId, stackId): do it and return the freed bytes and the manifest. Same permission tier as stop_app or higher.
- reinstall_app(serverId, stackId): pull or restore the images from the manifest and start the app; return a job or deploymentId to poll, like redeploy_app.
- offloaded status in list_apps and get_app (offloadedAt, freed bytes, image list), so an agent can list what is offloaded on each server.
Small related note: Reinstall does not add an entry to the app's deployment history. It would help to record offload and reinstall there (or in an activity log), so you can see when an app was last offloaded or brought back.
Use case: "Oracle disk is above 80%, offload the apps nobody opened this month", and "reinstall headlamp-sc before I need it", done by an agent end to end with a dry run first.
Roadmap progress
PENDING
REVIEWING
—
PLANNED
—
IN PROGRESS
—
COMPLETED
—
- — thanhlinh9191 submitted this request
Discussion0
Newest first- No comments yet. Add context or ask a question below.
Sign in to comment, vote and follow this request.
Sign in to reply