Migrate remaining backends (boltzmann, meitner, higgs, ampere, riemann, broglie) from custom server.lua to packaged #2
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Today (2026-04-20)
hertz-toolsandteslawere migrated from hand-written/opt/lmcp/server.luato the packaged/usr/share/lua/5.4/server.lua(v0.5.2) invoked directly by the systemd unit, so futureapt/pacman upgradeautomatically picks up new tools (e.g.shell_bg) without per-host patching.Remaining backends still on custom
server.lua(each in active use; swap cost: ~2 min downtime + smoke-test):/opt/lmcp/boltzmann.conf→ unit envLMCP_TOKEN).cmdparameter (now accepts bothcmdandcommand, see closed bug on DokuWiki 2f41f2d). Migration loses the legacycmdalias — anything still sendingcmdwill break. Likely nothing does; verify first.scripts/lmcp-install-macos.sh, Bearer auth + LaunchAgent. macOS path differs from the Linux apt/pacman flow — migration here is:git pullthe lmcp repo on the Mac, re-run the install script (which already uses packaged-style paths under$(brew --prefix)/share/lua/5.4/). Actually riemann may already match — double-check during migration.Per-host migration recipe
sudo apt install --only-upgrade lmcp/sudo pacman -Syu lmcp(ensures v0.5.2+ is on disk)./opt/lmcp/server.lua→server.lua.pre-package-<date>.bak./etc/systemd/system/lmcp.service:ExecStart=/usr/bin/lua5.4 /usr/share/lua/5.4/server.luaEnvironment=LMCP_NAME=<host>-toolsEnvironment=LMCP_TOKEN=<hex>(for Bearer backends)Environment=LMCP_PORT=8080systemctl daemon-reload && systemctl restart lmcp.curl -s http://127.0.0.1:8080/mcp -d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}' -H 'Content-Type: application/json' -H 'Authorization: Bearer <hex>'expecting 7 tools.Caveats
hub-tools::remote_shell host=<X> command=...is the replacement for most of them.lua54+lua54-socket(the defaultluais 5.5);lmcppackage depends onluawhich pulls 5.4 aliases on most distros — verify per-host.Priority
Low. Current custom servers work; this is a hygiene/upgrade-ergonomics migration. Do it opportunistically per host (e.g. when touching a host for another reason).
Progress audit + drive-by 2026-04-29:
/usr/bin/lua5.4 /usr/share/lua/5.4/server.lua, token inLMCP_TOKEN=, packagelmcp 0.5.2-1from packages.reauktion.de./opt/lmcp/server.luagone, only legacyboltzmann.confremains as no-op. ✅scripts/lmcp-install-macos.shfrom a fresh clone — token preserved (existing/usr/local/etc/lmcp/tokenreused), .lua files refreshed from 2026-04-18/19 → 2026-04-29 (now v0.5.4), LaunchAgent reloaded, smoke-test green,shell_bgnow intools/list. ✅Net: 4 of 6 effectively done (hertz + tesla from filing + now boltzmann + riemann). 3 hosts remain (meitner / higgs / ampere), all currently offline. Not closing — pickup when those three come online.
Will revisit on the next dynamic-loop wakeup if any of meitner/higgs/ampere pop up.
Drive-by 2026-04-29 (#2 of N):
lmcp-meitner.serviceExecStart=/opt/lmcp/server.lua. Upgraded apt pkg → 0.5.4-1, retiredlmcp-meitner.service, customserver.luaarchived toserver.lua.pre-package-2026-04-29.bak, new/etc/systemd/system/lmcp.servicewith packaged path + LMCP_NAME=meitner-tools+ LMCP_TOKEN preserved from/opt/lmcp/lmcp.conf.godparticle. Smoke-test passes, 7 tools includingshell_bgnow present. ✅Net: 4 of 6 done now (boltzmann + riemann + meitner + the original hertz/tesla pair). 2 hosts pending (higgs/ampere), both offline. Verified no
cmd=calls in 30 days of meitner journal before dropping the legacy alias.Final round 2026-04-29 — all reachable hosts done.
/var/lib/pacman/db.lckfrom an interrupted earlier session). Unit name still legacylmcp-ampere.servicenotlmcp.service— cosmetic, deferred. ✅lmcp 0.5.4-1installed via apt (no prior pkg), custom/opt/lmcp/server.luaarchived toserver.lua.pre-package-2026-04-29.bak, unit rewritten withLMCP_PORT=8080/LMCP_NAME=higgs-tools(no Bearer token — LAN-only per OP), service active,shell_bg+edit_filenow available. ✅All 6 actionable hosts on packaged: hertz, tesla, boltzmann, meitner, riemann, ampere, higgs. broglie remains parked per OP (deferred; lowest priority).
Closing as done.