ssh_deploy
Deploy local files to remote server paths with automatic backups, permissions, ownership, and optional post-deploy commands. Update remote files safely while preserving existing versions.
Instructions
Deploys a list of local files to remote paths on the named server, uploading each to a temporary location first and then moving it into place. Mutates remote state. By default it backs up any existing target file before overwriting; backup can be disabled per call. Options can set owner and permissions, supply a sudo password, and give a shell command to run afterward (restart, for example "sudo systemctl restart nginx"), which runs as written on the server as the SSH user and is shown in full to whoever approves the deploy. Detects sensible owner and permission defaults from the remote path. Runs pre and post deploy hooks. Blocked entirely on servers in readonly or restricted security mode.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"server": "<server>",
"files": "<files>"
},
"name": "ssh_deploy"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | Yes | Array of files to deploy | |
| server | Yes | Server name or alias | |
| options | No | Deployment options |