Skip to main content
Glama
MCP SSH Manager

MCP SSH Manager

by bvisible

ssh_sync

Synchronizes files or directories between local and remote systems using rsync over SSH, with optional dry-run previews and deletion of destination files not present in the source.

Instructions

Synchronizes files or directories between local and remote using rsync over SSH on the named server. Each of source and destination must carry a local: or remote: prefix and one side must be local and the other remote; with no prefix it assumes a push from local to remote. On Windows MCP hosts, provide native Windows local paths such as C:\project or .\project; the tool converts drive-letter and UNC paths to MSYS2 format before spawning rsync. Do not pre-convert a local path to /c/project because Node performs local filesystem checks using Windows path semantics. Mutates the destination. Setting delete true removes destination files absent from source, which is destructive; dryRun true previews without changing anything. Compression is on by default. Password authentication requires sshpass installed locally. Blocked on readonly or restricted servers. On a server with a transferRoot the local side must be inside that folder. Timeout defaults to 30000 ms.

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>",
      "source": "<source>",
      "destination": "<destination>"
    },
    "name": "ssh_sync"
  }
}

Input Schema

NameRequiredDescriptionDefault
deleteNoDelete files in destination not in source
dryRunNoPerform dry run without actual changes
serverYesServer name from configuration
sourceYesSource path with a "local:" or "remote:" prefix. On Windows, use a native local path such as "local:C:\project" or "local:.\project"; do not pre-convert it to MSYS2 /c/... syntax.
excludeNoPatterns to exclude from sync
timeoutNoTimeout in milliseconds (default: 30000)
verboseNoShow detailed progress
checksumNoUse checksum instead of timestamp for comparison
compressNoCompress during transfer
destinationYesDestination path with a "local:" or "remote:" prefix. On Windows, use a native local path such as "local:C:\output" or "local:.\output"; do not pre-convert it to MSYS2 /c/... syntax.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv3.8.5
    • removedInput schema / additionalProperties
      Removed value: -false
  2. Changed2 schema fields changedv3.8.0
    • changedInput schema / properties / destination / description
      Previous value: -"Destination path (use \"local:\" or \"remote:\" prefix)"New value: +"Destination path with a \"local:\" or \"remote:\" prefix. On Windows, use a native local path such as \"local:C:\\output\" or \"local:.\\output\"; do not pre-convert it to MSYS2 /c/... syntax."
    • changedInput schema / properties / source / description
      Previous value: -"Source path (use \"local:\" or \"remote:\" prefix)"New value: +"Source path with a \"local:\" or \"remote:\" prefix. On Windows, use a native local path such as \"local:C:\\project\" or \"local:.\\project\"; do not pre-convert it to MSYS2 /c/... syntax."
  3. Addedv1.0.0

TDQS

A4.5/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations supplied, the description carries the full burden and does so: it states the destination is mutated, that delete=true is destructive, that dryRun previews, that compression defaults on, that sshpass is required for password auth, that the timeout defaults to 30000 ms, and that readonly/restricted servers are refused. It also discloses a non-obvious host quirk (Windows drive-letter/UNC paths are converted to MSYS2 format and must not be pre-converted by the caller).

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with purpose, then proceeds in a tight sequence of rules and caveats with no filler sentences. It is a dense single block without bullets, which costs some scannability for a ten-parameter tool, but almost every clause carries operational information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a ten-parameter mutation tool with no output schema, the description covers path semantics, authentication prerequisites, destructive flags, server-side restrictions, and timeout defaults. The remaining gap is what a successful call returns (rsync summary/transfer stats, exit semantics), which an agent cannot infer from the schema alone.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline would be 3, but the description adds meaning the schema does not: the local:/remote: prefix contract and the no-prefix push default for source/destination, delete's destructive consequence, dryRun's preview semantics, and the compress default. exclude, checksum, and verbose are left to their schema text, which is reasonable given full coverage.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Opens with a specific verb and resource: 'Synchronizes files or directories between local and remote using rsync over SSH on the named server.' That mechanism (rsync-based bidirectional-capable sync with prefixed sides) is concrete enough to separate it from single-purpose siblings like ssh_download or ssh_execute without needing to name them.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives real operating conditions: the prefix rules, the no-prefix default of push from local to remote, the transferRoot containment rule, and the fact that readonly/restricted servers are blocked. It stops short of naming a sibling alternative (e.g., 'use ssh_download for a one-way file fetch'), so it is strong context but not full when/when-not routing.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.