Persistent, stateful remote SSH sessions for AI agents via MCP. Keep cwd, env & shell state across commands — powered by your local OpenSSH. Works with Claude, Cursor & any MCP host.
接入配置
选择客户端,复制配置,再按项目文档补齐环境变量。
claude mcp add remote-ssh -- npx -y @zyluo/remote-ssh-mcp~/.codex/config.toml
[mcp_servers.remote-ssh]
command = "npx"
args = ["-y", "@zyluo/remote-ssh-mcp"]
# codex mcp add remote-ssh -- npx -y @zyluo/remote-ssh-mcp~/.cursor/mcp.json
{
"mcpServers": {
"remote-ssh": {
"command": "npx",
"args": [
"-y",
"@zyluo/remote-ssh-mcp"
]
}
}
}.vscode/mcp.json
{
"servers": {
"remote-ssh": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@zyluo/remote-ssh-mcp"
]
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"remote-ssh": {
"command": "npx",
"args": [
"-y",
"@zyluo/remote-ssh-mcp"
]
}
}
}claude_desktop_config.json
{
"mcpServers": {
"remote-ssh": {
"command": "npx",
"args": [
"-y",
"@zyluo/remote-ssh-mcp"
]
}
}
}.trae/mcp.json
{
"mcpServers": {
"remote-ssh": {
"command": "npx",
"args": [
"-y",
"@zyluo/remote-ssh-mcp"
]
}
}
}