mcp-servers/ssh-mcp/Dockerfile
Zac Gaetano c387d80d1b Replace docker-mcp with ssh-mcp
SSH access to TrueNAS covers all Docker management needs (docker compose,
logs, restarts) making a dedicated Docker MCP redundant.

- Add ssh-mcp (port 8600): execute shell commands, read files, list dirs,
  tail logs, find files, check disk usage on the TrueNAS host via asyncssh
- Remove docker-mcp (port 9000): redundant given SSH access to the host
- Update docker-compose.yml: wire in ssh-mcp service, remove docker-mcp
  service and its MCP_BACKEND_DOCKER gateway env var
2026-03-31 23:25:10 -04:00

23 lines
559 B
Docker
Executable file

FROM python:3.12-slim-bookworm
WORKDIR /app
# Install OpenSSH client libs needed by asyncssh
RUN apt-get update && apt-get install -y --no-install-recommends \
libssl-dev \
&& rm -rf /var/lib/apt/lists/*
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY ssh_mcp.py .
COPY entrypoint.py .
ENV PORT=8600
EXPOSE 8600
HEALTHCHECK --interval=30s --timeout=5s --start-period=15s \
CMD python3 -c "import urllib.request; urllib.request.urlopen('http://localhost:8600/mcp', timeout=5)"
CMD ["python3", "entrypoint.py"]