7e62f71931141e6304530850fb7d46fcfa105fd2
windows/ was previously an untracked working tree with manually- copied .lua files that drifted ~6 months out of date (missed every feature added since April 2026). #18 introduces Option 1 from the issue body: build-time sync. New tracked files: - windows/sync.sh — copies root {lmcp,server,json}.lua to pkg/. Idempotent; run before WiX. Catches missing source files; logs each sync. - windows/README.md — workflow doc + tracked-vs-generated map. - windows/lmcp.wxs — MSI manifest (Version bumped 0.1.0 → 1.1.0). - windows/pkg/{install_service,start}.bat — Windows service installer + launcher (now tracked; they were already in pkg/). New .gitignore at repo root: - windows/pkg/{lmcp,server,json}.lua — regenerated by sync.sh - windows/pkg/lua/ — bundled Lua + LuaSocket runtime (downloaded separately, not in git) - editor noise (*.swp, *.swo, .DS_Store) Verification (Phase 7): $ ./windows/sync.sh synced lmcp.lua synced server.lua synced json.lua $ diff lmcp.lua windows/pkg/lmcp.lua → empty $ git ls-files -o --exclude-standard windows/ windows/README.md windows/lmcp.wxs windows/pkg/install_service.bat windows/pkg/start.bat windows/sync.sh $ git check-ignore windows/pkg/{lmcp,server,json}.lua → all 3 ignored The "missed every feature since April" failure mode this fixes: running sync.sh before each MSI build now guarantees pkg/ matches master. Forgetting to run it is failure-loud (the MSI ships the last sync's snapshot, easy to spot in QA), not silent (the manifest points at fresh files that mismatch root). Closes v1.1.0 milestone with #11, #20. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
lmcp — Lua MCP server
Lightweight Model Context Protocol (MCP) server in pure Lua.
Runtime dependencies
- Lua 5.1+
- luasocket — needed for the TCP
listener. Packaged as
lua-socketon Arch/ALARM,lua-socketon Debian.
Files
| File | Role |
|---|---|
lmcp.lua |
library: protocol handling, tool registration |
server.lua |
HTTP server loop |
json.lua |
vendored JSON encoder/decoder |
example_server.lua |
sample server with a couple of tools |
Install
Packaged as lmcp in the marfrit overlay repo:
# Arch / ALARM
sudo pacman -S lmcp
# Debian
sudo apt install lmcp
Files land under /usr/share/lua/5.4/ (Lua LUA_PATH).
The example server installs as /usr/bin/lmcp-example.
Description
Releases
1
Languages
Lua
93.1%
Shell
6.2%
Batchfile
0.7%