You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
doctor: detect snap-docker on host and surface the systemd drop-in needed when the deb runs alongside it #457
When the mcpproxy deb is installed on a host with Docker installed via snap (Ubuntu 24.04 default), every upstream MCP server that shells out to docker run fails. The deb's hardened systemd unit fights snap-confine on four orthogonal axes:
Failure
Root cause
Sorry, home directories outside of /home needs configuration
snap rejects non-/home HOME — packaged unit sets HOME=/var/lib/mcpproxy
The fix is host-specific (snap-docker + system-user-service combo), and once you know it, the drop-in is ~10 lines. Discovering it from the error messages is a 30+ minute investigation. Same class of failure already documented for scanners (see internal/security/scanner/docker.go::ClassifyScannerExecFailure).
Proposed fix
Extend mcpproxy doctor with a host-environment check. When all of:
Host has snap docker (docker version output contains snap, OR /snap/bin/docker exists)
mcpproxy is running under systemd as a non-root user whose \$HOME is outside /home/
At least one configured upstream uses docker run / docker-isolation=true
…emit a doctor warning in the Environment section with:
The exact /etc/systemd/system/mcpproxy.service.d/snap-docker.conf snippet
The three one-time host commands (loginctl enable-linger, snap set system homedirs=/var/lib, systemctl restart snapd && snap restart docker)
TDD: table-driven unit tests for the detection function.
Update doctor pretty output to render an Environment section.
Context
Discovered during a manual-install → deb migration on kubic (Ubuntu 24.04, snap docker 28.4.0, mcpproxy 0.30.0). See also #455 (migration docs) and the auto-update-conffile issue.
Activity
feat(doctor): surface snap-docker override hint when host needs it (#460