dgx-spark-playbooks/nvidia/dgx-spark-mcp-server/deploy/dgx-spark-mcp.service
Aaron Brewbaker 2d52e1aab3 feat: add DGX Spark MCP Server playbook
This playbook installs the DGX Spark MCP Server, a tool for hardware-aware Spark optimization on DGX systems.
Includes:
- Installation script (npm based)
- Systemd service configuration
- Default configuration
- Documentation
2025-11-25 19:22:44 -05:00

49 lines
918 B
Desktop File

[Unit]
Description=DGX Spark MCP Server
Documentation=https://github.com/raibid-labs/dgx-spark-mcp
After=network.target
Wants=network-online.target
[Service]
Type=simple
User=dgx
Group=dgx
# Environment variables
Environment="NODE_ENV=production"
Environment="DGX_MCP_CONFIG_PATH=/etc/dgx-spark-mcp/config.json"
# Start the service
# Assumes installed globally via npm
ExecStart=/usr/local/bin/dgx-spark-mcp
# Restart policy
Restart=on-failure
RestartSec=10
StartLimitInterval=600
StartLimitBurst=5
# Resource limits
LimitNOFILE=65536
LimitNPROC=4096
# Security hardening
NoNewPrivileges=true
PrivateTmp=true
ProtectSystem=strict
ProtectHome=true
# Allow write access to logs
ReadWritePaths=/var/log/dgx-spark-mcp
# Logging
StandardOutput=journal
StandardError=journal
SyslogIdentifier=dgx-spark-mcp
# Process management
KillMode=mixed
KillSignal=SIGTERM
TimeoutStopSec=30
[Install]
WantedBy=multi-user.target