MCP server giving AI agents fluent SSH: persistent PTY sessions, virtual keyboard, screen model, SFTP
Strong tool naming (verb_noun pattern throughout: ssh_open, ssh_close, ssh_shell, ssh_read, ssh_write). All 14 tools have descriptions (avg ~120 chars, within baseline 34-392). Input schemas are comprehensive with types and descriptions for nearly all parameters. Output schemas documented for most tools. Key gaps: no tool annotations (readOnlyHint/destructiveHint), limited error recovery guidance, and some parameter descriptions could be more prescriptive about constraints. ssh_open has excellent parameter documentation (20+ params with clear descriptions); ssh_shell, ssh_expect, ssh_screen show good schema depth. Error handling present but generic (internal/invalid error helpers without recovery hints).
Add or update a named server entry in ~/.ssh-pty-mcp/servers.toml
Close an open SSH session
Wait for a regex pattern to appear in the output stream or rendered screen
List all open SSH sessions with their status and idle time
List directory contents on the remote host via SFTP
List named servers from ~/.ssh-pty-mcp/servers.toml and ~/.ssh/config
Open a persistent SSH session with optional proxy jump, command policy, and authentication methods
No tool annotations (readOnlyHint, destructiveHint, idempotentHint). LLMs cannot distinguish safe read-only tools (ssh_list, ssh_screen, ssh_read) from destructive ones (ssh_shell, ssh_write, ssh_signal) without explicit hints.
Error handling lacks recovery guidance. Functions return generic internal/invalid errors without actionable next steps. E.g., connection failure should suggest 'Check host/port with ssh_list_servers()' or 'Verify proxy_jump session is open'.
Parameter constraints not fully formalized. ssh_open.mode accepts 'unrestricted|readonly|restricted' but no enum in schema; ssh_expect.mode accepts 'stream|screen' but no enum. Descriptions mention valid values but JSON Schema should enforce them.
Inferred effective spec: <=2025-11-25.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | C | 69 | <=2025-11-25 | v2 |
Press a key or key combination on the virtual keyboard
Read a file from the remote host via SFTP
Get the current rendered terminal screen with optional wait for changes
Run a shell command in a persistent session and capture output
Send a Unix signal to the remote shell process
Write text verbatim to the PTY (no implicit newline)
Write a file to the remote host via SFTP with optional overwrite control
ssh_shell, ssh_type, ssh_press lack idempotency guarantees. Agents retrying on timeout risk duplicate command execution or text input. No mention of idempotent behavior or deduplication strategy.
No confirmation/dry-run pattern for destructive operations. ssh_write with mode='overwrite' and ssh_signal with 'sigkill' can cause data loss or process termination without agent confirmation.