c5884d6a97e811ddfea1e61861da553618a69ed9
Original draft assumed `brew install lua luasocket` works. It doesn't: luasocket isn't a brew formula (install via luarocks), and default `lua` is 5.5 while the rest of the fleet is on 5.4. Fix tested on riemann (Intel Mac, macOS 14.8.3): - Pin to lua@5.4 (keg-only brew formula) — matches fleet library paths. - Install luasocket via luarocks into the user-local rocks tree. - Source brew shellenv ourselves so non-login bash shells can find brew. - Bake LUA_PATH / LUA_CPATH into the LaunchAgent plist so the service resolves `require 'socket'` from ~/.luarocks/. 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%