Add Docker support with HTTP transport for SSH MCP Server#2
Conversation
- Dockerfile: multi-stage build (node:22-alpine builder + slim runtime) - docker-entrypoint.sh: maps HTTP_HOST/HTTP_PORT/HTTP_PATH/HTTP_API_KEY/SSH_CONFIG_FILE env vars to CLI args - .dockerignore: exclude dev artifacts from build context - .github/workflows/docker.yml: build and push multi-platform image (amd64/arm64) to ghcr.io on push to main and version tags - README.md: new Docker section with docker run example, Docker Compose, and MCP client HTTP config snippets for Claude Desktop and Claude Code https://claude.ai/code/session_01GuVvEMLNxVPgyQjkDvA2Qu
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 33dbf52cc5
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| docker pull ghcr.io/someblackmagic/ssh-mcp-server:latest | ||
|
|
||
| # Specific release | ||
| docker pull ghcr.io/someblackmagic/ssh-mcp-server:1.8.2 |
There was a problem hiding this comment.
Point Docker commands at the published GHCR image
The workflow publishes to ghcr.io/${{ github.repository }}, and this README identifies the repository as classfang/ssh-mcp-server, so these commands direct users to ghcr.io/someblackmagic/ssh-mcp-server instead of the image this CI will build. Anyone following the Docker instructions will pull or run the wrong/nonexistent package unless the namespace matches the repository that owns the workflow.
Useful? React with 👍 / 👎.
Summary
This PR adds comprehensive Docker support to the SSH MCP Server, enabling users to run the server in containerized environments with HTTP transport. This includes a production-ready Dockerfile, GitHub Actions CI/CD pipeline for automated image builds, and detailed documentation.
Key Changes
main(tagged aslatest)linux/amd64andlinux/arm64Notable Implementation Details
HTTP_HOST,HTTP_PORT,HTTP_PATH,HTTP_API_KEY,SSH_CONFIG_FILE), allowing flexible configuration without image rebuildshttps://claude.ai/code/session_01GuVvEMLNxVPgyQjkDvA2Qu