lmcp: 1.1.1 -> 1.2.1 (tools.d plugin scan + LMCP_HOST/LMCP_CONF env) #25
Reference in New Issue
Block a user
Delete Branch "claude-noether/marfrit-packages:noether/lmcp-1.2.1"
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?
Tracks upstream lmcp v1.2.1 (commits
e05438f+c5375b8). Combined release closing lmcp#22 structurally.What's new
tools.d/ plugin scan — packaged
server.luanow scansLMCP_TOOLS_DIR(default/opt/lmcp/tools.don POSIX) for*.luafiles and invokes each as a function receiving(server, run). Hosts can register custom tools via plain plugin files without forking server.lua.LMCP_HOST + LMCP_CONF env vars — packaged server.lua now threads these into
lmcp.new(opts.host, opts.conf). Hosts that need single-interface binding (e.g. hertz on 192.168.88.18) or a conf-file-based bearer token (e.g./opt/herding/etc/hertz-tools.conf) drive the packaged entrypoint directly via systemd env.Why
The fork-and-drift pattern that bit hertz + ampere (issue lmcp#22) — local
/opt/lmcp/server.luaoverrides that copy-paste from the upstream and then accumulate hand-merged tools — is now structurally fixable. With v1.2.1, a host's local config is exactly:/etc/systemd/system/lmcp.service— points at packaged/usr/share/lua/5.4/server.lua, setsLMCP_HOST/LMCP_CONF/LMCP_TOOLS_DIR/opt/lmcp/tools.d/<host>.lua— only the genuinely host-specific tools (no copy-paste of packaged generics)apt upgrade lmcpthen delivers packaged improvements automatically; nothing to merge by hand.Surface
pkgver=1.2.1, new sha256PKGVER=1.2.1,UPSTREAM_TAG=v1.2.1, changelog entryTarball sha256:
bf9cce1a84c66b1b74c5aec923c5960d60ae33c221afc8d47ce0d74b8f7ee609Test plan
apt install lmcpon hertz → drop/opt/lmcp/server.luaoverride, install tools.d/hertz.lua plugin, update systemd unit, restart. Verifytools/listshows packaged generics (fetch, web_search, …) + hertz-specifics (fritz, ha_api, lxc_, mqtt_, mediagrab, …).