pare-remote

v0.24.2
io.github.Dave-London/pare-remote Checked 6 hours ago Published 3 days ago

Pare Remote — Structured SSH and rsync operations (ssh-run, ssh-test, rsync) as typed JSON.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

ssh-run SSH Run Command

Executes a command on a remote host via SSH. WARNING: This runs commands on a remote machine. Ensure the host and command are correct before executing. Returns structured output with stdout, stderr, exit code, and duration.

ParameterTypeDescription
command *stringCommand to execute on the remote host
host *stringRemote host to connect to (hostname or IP address)
compactbooleanPrefer compact output
identityFilestringPath to SSH private key file
optionsarrayAdditional SSH options as -o key=value pairs (e.g. StrictHostKeyChecking=no)
portnumberSSH port number (default: 22)
userstringSSH username (if not specified, uses SSH config default)

ssh-test SSH Test Connection

Tests SSH connectivity to a remote host using `ssh -T`. Returns whether the host is reachable and any banner message.

ParameterTypeDescription
host *stringRemote host to test connectivity to (hostname or IP address)
compactbooleanPrefer compact output
connectTimeoutnumberConnection timeout in seconds (default: 10)
identityFilestringPath to SSH private key file
portnumberSSH port number (default: 22)
userstringSSH username (if not specified, uses SSH config default)

ssh-keyscan SSH Keyscan

Retrieves public host keys from a remote SSH server using `ssh-keyscan`. Useful for populating known_hosts or verifying host key fingerprints.

ParameterTypeDescription
host *stringRemote host to scan for public keys (hostname or IP address)
compactbooleanPrefer compact output
keyTypestringSpecific key type to request (default: all types)
portnumberSSH port number (default: 22)
timeoutnumberTimeout in seconds for the keyscan operation (default: 5)

rsync Rsync File Sync

Syncs files between local and remote locations using rsync. WARNING: Defaults to dry-run mode for safety — set dryRun=false to actually transfer files. Returns structured transfer statistics.

ParameterTypeDescription
destination *stringDestination path (local path or remote user@host:path)
source *stringSource path (local path or remote user@host:path). Use trailing / to sync directory contents.
archivebooleanArchive mode: preserves permissions, timestamps, symlinks (rsync -a)
compactbooleanPrefer compact output
compressbooleanCompress data during transfer (rsync -z)
deletebooleanDelete files in destination that don't exist in source. Use with caution!
dryRunbooleanPreview what would be transferred without making changes (default: true for safety). Set to false to actually transfer.
excludearrayPatterns to exclude from sync (e.g. node_modules, .git)
identityFilestringSSH private key file for remote transfers
includearrayPatterns to include in sync
pathstringProject root path
sshPortnumberSSH port for remote transfers
verbosebooleanVerbose output showing transferred files (rsync -v)