Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| b81b021b5b |
@@ -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
|
||||
@@ -468,7 +468,7 @@ math.randomseed(os.time())
|
||||
|
||||
local server = lmcp.new(os.getenv("LMCP_NAME") or "hub-tools", {
|
||||
port = tonumber(os.getenv("LMCP_PORT") or arg[1]) or 8090,
|
||||
version = "0.5.3",
|
||||
version = "0.5.4",
|
||||
conf = os.getenv("LMCP_HUB_CONF") or "/opt/herding/etc/lmcp-hub.conf",
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user