v0.5.4: ship examples/lmcp.service template
Companion to lmcp-hub.service. Gives a copy-and-edit starting point for per-host lmcp instances (foo-tools style). Handles the Arch-vs-Debian /usr/bin/lua vs /usr/bin/lua5.4 split via a comment pointing users to override ExecStart. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
[Unit]
|
||||
Description=lmcp MCP Server
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=root
|
||||
# Arch ships the Lua 5.4 binary as /usr/bin/lua; Debian ships /usr/bin/lua5.4.
|
||||
# Override ExecStart if your distro differs.
|
||||
ExecStart=/usr/bin/lua /usr/share/lua/5.4/server.lua
|
||||
# Distinct name per host: foo-tools appears in /mcp listings and logs.
|
||||
Environment=LMCP_NAME=CHANGEME-tools
|
||||
Environment=LMCP_PORT=8080
|
||||
# Bearer token. Generate with: openssl rand -hex 24
|
||||
# For untrusted networks, bind to LAN-only via firewall; the server itself
|
||||
# listens on 0.0.0.0 by default.
|
||||
Environment=LMCP_TOKEN=CHANGEME
|
||||
Restart=on-failure
|
||||
RestartSec=5
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user