homelab-brain/chatlogger/chatlogger-api.service
Homelab Cursor 2fa011fa2a chatlogger: add tailscale-only HTTP API + Hermes MCP wrapper
- chatlogger/api.py — read-only HTTP API (stdlib http.server, bearer-token
  auth, bound to 100.123.47.7:8770) with /list_chats, /recent, /search,
  /since, /stats, /healthz
- chatlogger/chatlogger-api.service — hardened systemd unit
- chatlogger/api.env.example — env template (token + bind + db)
- mac-clients/chatlog_mcp.py — stdio MCP wrapper for Hermes Agent on the
  Mac (4 tools: chatlog_list_chats / recent / search / since), uses only
  Python stdlib, talks to the REST API via Tailscale.

Hermes registers as 4th MCP server (chatlog) — verified live with
76 tool(s) from 4 server(s) in gateway.log.
2026-05-01 12:55:38 +02:00

25 lines
613 B
Desktop File

[Unit]
Description=Chatlogger read-only HTTP API (Tailscale-only)
After=network-online.target chatlogger-bot@arakawa.service
Wants=network-online.target
[Service]
Type=simple
WorkingDirectory=/opt/homelab-brain/chatlogger
EnvironmentFile=/opt/chatlogger/api.env
Environment=PYTHONUNBUFFERED=1
ExecStart=/opt/bot-venv/bin/python /opt/homelab-brain/chatlogger/api.py
Restart=always
RestartSec=5
KillMode=control-group
TimeoutStopSec=10
ProtectSystem=strict
ReadOnlyPaths=/opt/homelab-brain
ReadWritePaths=/opt/chatlogger
ProtectHome=true
PrivateTmp=true
NoNewPrivileges=true
[Install]
WantedBy=multi-user.target