mirror of
https://github.com/Dasemu/remote-mcp-manager.git
synced 2026-11-26 15:26:27 +00:00
feat: add a panel button to update the manager itself
The manager clones SELF_UPDATE_REPO_URL, builds a new image in the shared build queue and hands over to a short-lived updater container (new image) that swaps the manager container, health-checks it and rolls back on failure. Exposed as GET/POST /api/system behind requireAuth; installation changes answer 409 while an update runs. Session cookie is now SameSite=Lax. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
5fb1d6b0b4
commit
4b3c8f213a
23 files changed
+705
-5
No files matched your search
@@ -54,3 +54,10 @@ manager can only reach sibling MCP containers (by IP on `mcp-net`) when it is it
|
||||
attached to that network — running it directly on the host only works for routes that
|
||||
don't need to reach a sibling container (e.g. `/health`, `/api/auth`). See the README's
|
||||
"Local development (Podman)" section and `LESSONS.md` for the operational detail.
|
||||
|
||||
## Self-update
|
||||
|
||||
`system/selfUpdate.ts` (state, clone + build in the shared build queue, hand-over) and
|
||||
`system/selfUpdateHelper.ts` (the updater container's entry point: swap, health check, rollback)
|
||||
implement the panel's *Update manager* button, exposed as `GET /api/system` and
|
||||
`POST /api/system/update` behind `requireAuth`. See `docs/operations.md`.
|
||||
Reference in new issue
Block a user