Windows fallbackWindows 回退命令
Use this when a client fails to spawn `npx` directly as a stdio command.当客户端不能直接把 `npx` 作为 stdio 命令拉起时,用这个回退。
cmd /c npx -y ssh-session-mcp --viewerPort=auto
This page puts setup first: Cline, Claude Code, Codex, OpenCode, `npx -y ssh-session-mcp`, Docker, and Windows notes all live here.这个页面把安装放在第一位:Cline、Claude Code、Codex、OpenCode、`npx -y ssh-session-mcp`、Docker 和 Windows 注意事项都集中在这里。
npx -y ssh-session-mcp --viewerPort=autonpx -y ssh-session-mcp --viewerPort=autocmd /c npx -y ssh-session-mcp --viewerPort=autocmd /c npx -y ssh-session-mcp --viewerPort=autoUse the command shape that matches the client you already have open.直接选和你当前 MCP client 对应的那条命令就行。
{
"mcpServers": {
"ssh-session-mcp": {
"command": "npx",
"args": ["-y", "ssh-session-mcp", "--viewerPort=auto"],
"disabled": false,
"autoApprove": []
}
}
}
claude mcp add --transport stdio ssh-session-mcp -- npx -y ssh-session-mcp --viewerPort=auto
codex mcp add ssh-session-mcp -- npx -y ssh-session-mcp --viewerPort=auto
npx -y ssh-session-mcp --viewerPort=auto
This page keeps the setup paths explicit so you can copy the right one quickly.这里把安装路径写得很直接,方便你快速复制正确的那一条。
npx -y ssh-session-mcp --viewerPort=auto
npm install -g ssh-session-mcp
ssh-session-mcp --viewerPort=auto
docker run --rm -i -p 8793:8793 -e VIEWER_PORT=8793 -e VIEWER_HOST=0.0.0.0 docker.io/zwawa/ssh-session-mcp:latest
If Windows stdio launch feels flaky, keep the `cmd /c` fallback in mind.如果 Windows 上的 stdio 拉起不稳定,记住 `cmd /c` 这个回退方案就够了。
Use this when a client fails to spawn `npx` directly as a stdio command.当客户端不能直接把 `npx` 作为 stdio 命令拉起时,用这个回退。
cmd /c npx -y ssh-session-mcp --viewerPort=auto
Use `.env` for one target and `ssh-session-mcp.config.json` for multi-device setups. Keep secrets in environment variables.单目标用 `.env`,多设备用 `ssh-session-mcp.config.json`,secret 保持在环境变量里。
SSH_MCP_CONFIG=/path/to/ssh-session-mcp.config.json
Use these when you already know you want the project and just need the exact setup path.如果你已经确定要用它,只差一条准确的安装路径,就从这里看。
Use `codex mcp add ssh-session-mcp -- npx -y ssh-session-mcp --viewerPort=auto` if you want the lowest-friction install path.如果你要最低摩擦的接入路径,就用 `codex mcp add ssh-session-mcp -- npx -y ssh-session-mcp --viewerPort=auto`。
Use `claude mcp add --transport stdio ssh-session-mcp -- cmd /c npx -y ssh-session-mcp --viewerPort=auto` when native Windows stdio launch needs the `cmd /c` fallback.当原生 Windows 的 stdio 拉起需要 `cmd /c` 回退时,使用 `claude mcp add --transport stdio ssh-session-mcp -- cmd /c npx -y ssh-session-mcp --viewerPort=auto`。
Use `npx -y ssh-session-mcp --viewerPort=auto` by default. Switch to Docker only when you need a pinned runtime, image-based distribution, or a fixed published viewer port.默认优先用 `npx -y ssh-session-mcp --viewerPort=auto`。只有在你需要固定运行时、镜像分发或固定的 viewer 映射端口时,再切到 Docker。
Use `ssh-session-mcp-ctl launch --local --viewerPort=auto` to demo the browser viewer and shared runtime model without touching a real SSH target.用 `ssh-session-mcp-ctl launch --local --viewerPort=auto`,在不接触真实 SSH 目标的情况下演示浏览器 viewer 和共享运行时模型。
From here, the next step is usually links, answers, or examples.从这里继续,下一步通常就是去看链接、答案或例子。