32 lines
1.2 KiB
Desktop File
32 lines
1.2 KiB
Desktop File
# /etc/systemd/system/hyperstition-mcp.service
|
|
[Unit]
|
|
Description=Stateless Read-Only Model Context Protocol (MCP) HTTP Server for hyperstitionstud.io (127.0.0.1:8095)
|
|
After=network.target local-fs.target hyperstition-tmpfs-sync.service
|
|
Before=caddy.service
|
|
|
|
[Service]
|
|
Type=simple
|
|
WorkingDirectory=/srv/hyperstitionstud.io/repos
|
|
StateDirectory=hyperstitionstud.io
|
|
Environment="HYPERSTITIONSTUDIO_CONFIG=/srv/hyperstitionstud.io/repos/workspace.toml"
|
|
Environment="PYTHONPATH=/srv/hyperstitionstud.io/repos/hyperstitionstudio-core/src"
|
|
Environment="HYPERSTITION_TELEMETRY_DB_PATH=/var/lib/hyperstitionstud.io/api-telemetry.db"
|
|
Environment="HYPERSTITION_SQLITE_MAX_MB=100"
|
|
ExecStart=/srv/hyperstitionstud.io/repos/.venv/bin/python3 /srv/hyperstitionstud.io/repos/hyperstitionstudio-core/src/hyperstitionstud_io/mcp/server.py --transport http --host 127.0.0.1 --port 8095
|
|
Restart=always
|
|
RestartSec=2
|
|
NoNewPrivileges=true
|
|
PrivateTmp=true
|
|
PrivateDevices=true
|
|
ProtectHome=true
|
|
ProtectSystem=strict
|
|
ProtectKernelTunables=true
|
|
ProtectKernelModules=true
|
|
ProtectControlGroups=true
|
|
RestrictSUIDSGID=true
|
|
ReadOnlyPaths=/srv/hyperstitionstud.io/repos
|
|
ReadWritePaths=/var/lib/hyperstitionstud.io /tmp
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|