A minimal MCP server for secure SSH automation using fast_mcp_server. Exposes SSH tools via the Model Context Protocol (MCP). Compatible with Claude/Cline and other MCP clients.
Server has 3 tools with explicit names, descriptions, and input schemas visible in main.py. However, there are significant quality gaps. Tool descriptions are adequate but brief (34-58 chars, below the 194 char baseline). Schemas are present with all parameter types and basic descriptions, but lack important constraints (no enums for valid values, no explicit format specifications, no minimum/maximum bounds for numeric types). Parameters accept credentials directly (host, username, password, privateKey) which violates secret-injection patterns. Error handling is minimal, errors return generic exception messages rather than actionable recovery guidance. Output is unstructured text concatenation rather than typed JSON objects. The tools lack idempotency guarantees and have no confirmation step for destructive operations (ssh_execute_command with arbitrary command, sftp_upload with overwrite risk). Composition is reasonable (3 separate concerns), but parameter naming could be more consistent (privateKey vs snake_case for other params). No tool annotations (readOnlyHint, destructiveHint, idempotentHint) are present despite one being READ_ONLY and two being WRITE operations.
Download a file from a remote server via SFTP.
Upload a file to a remote server via SFTP.
Execute a command on a remote server via SSH.
Credentials exposed as tool parameters: host, username, password, and privateKey are direct parameters. Agent traces and logs will record sensitive authentication data.
No input validation or error recovery guidance. Errors return raw exception messages (e.g., 'SSH error: {str(e)}') instead of actionable guidance. LLM cannot determine if error is retryable, user-fixable, or fatal.
Missing parameter constraints: numeric parameters (port, timeout) lack minimum/maximum bounds; no enum for port (always 22 unless SSH service on alternate port). Parameter descriptions do not specify ranges or format restrictions beyond 'default: X'.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-22 | F | 47 | 2026-07-28+ | v2 |
| 2026-03-09 | F | 47 | - | v1 |
No permission gates or scope declarations. ssh_execute_command allows arbitrary command execution; no confirmation step or dry-run mode. sftp_upload will overwrite remote files silently without user confirmation.
Tool annotations missing. ssh_execute_command and sftp_upload are marked as WRITE (destructive) but have no 'destructiveHint' annotation. sftp_download is READ_ONLY but lacks 'readOnlyHint'. These annotations help LLMs reason about side effects.
Inconsistent parameter naming: 'privateKey' uses camelCase while other params use snake_case (host, username, local_path, remote_path). Naming inconsistency confuses LLMs when composing tools.
Output is unstructured concatenated text instead of typed JSON. Responses are: 'stdout:\n...\nstderr:\n...\nexit_code: N' (text) instead of {stdout: string, stderr: string, exit_code: int}. LLM must parse unstructured output.
No idempotency guarantees documented. sftp_upload and sftp_download can fail mid-operation and retry, risking partial transfers or duplicate operations. No checksum, resume, or transaction semantics.