A robust MCP server for executing commands locally and remotely via SSH with enhanced session management and error handling
Server provides 5 tools with complete input schemas and reasonable descriptions. Naming follows verb_noun patterns (execute_command, transfer_file, terminal_ls, terminal_grep, terminal_cat). However, descriptions lack depth on WHEN to use tools vs alternatives, parameter descriptions are present but minimal for some fields, output schemas are not documented, and error handling lacks recovery guidance. Most parameters have types and descriptions, but descriptions are often generic (e.g., 'Remote host (optional)' without format/requirement details). No documentation of return structures for agents. Security considerations (command validation, rate limiting mentioned in tool description but not reflected in schema) are underdocumented.
Execute commands on remote hosts or locally. Returns a JSON object with 'command', 'exitCode', 'stdout', and 'stderr'. Commands are validated for dangerous patterns. Output is truncated if exceeding size limits. Rate limited per session.
Read file contents safely on remote or local hosts.
Search for a pattern in files safely on remote or local hosts.
List directory contents safely on remote or local hosts. Avoids shell quoting issues.
Transfer files between local machine and remote hosts via SFTP, or copy files locally. Supports upload, download, and local copy operations with size limits and validation.
Output schemas not documented. Tools describe what they return in prose (e.g., 'Returns a JSON object with command, exitCode, stdout, stderr') but MCP server does not expose structured return schemas. Agents cannot reliably parse or plan downstream tool chaining.
Parameter descriptions lack specificity on format, constraints, and dependencies. Example: 'Host to connect to (optional, if not provided the command will be executed locally)', does not specify hostname format, IPv4/IPv6, port syntax, or SSH key path resolution. 'Validated for dangerous patterns' is mentioned but validation rules are not enumerated.
Inferred effective spec: <=2025-11-25.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-22 | D | 56 | <=2025-11-25 | v2 |
No error classification or recovery guidance. Tool descriptions mention 'Commands are validated for dangerous patterns', 'Rate limited per session', and timeouts, but the tool definitions do not document what errors can occur, how to recover, or what the agent should do next (retry? check syntax? validate security pattern?).
Tool annotations (readOnlyHint, destructiveHint, idempotentHint) not present. execute_command and transfer_file are destructive/stateful (marked Risk: WRITE) but schema does not include destructiveHint annotation. terminal_* tools are read-only (marked Risk: READ_ONLY) but schema does not include readOnlyHint annotation. This forces LLMs to infer intent from names alone.
Parameter 'useRtk' is unexplained in schema. Appears in execute_command, terminal_ls, terminal_grep, terminal_cat with description 'Whether to apply RTK token optimization and rewriting (default: true). Set to false for interactive commands or sudo.' But no explanation of what RTK is, why optimization helps, or when disabling it is necessary beyond the vague 'interactive commands or sudo'.
No documented result format or field definitions. From prose description: execute_command returns 'exitCode, stdout, stderr' but the actual JSON object structure is not formally defined. No mention of whether stdout/stderr are truncated, at what byte limit, or how truncation is signaled. Agents cannot safely assume structure.
Session parameter lacks validation rules. Description says '1-64 alphanumeric chars, underscores, hyphens' but schema does not enforce pattern or maxLength. Agents could pass invalid session names that fail silently or are silently rejected.
Timeout parameter has max but no min constraint in description. 'default: 30000, max: 600000', what is the minimum? Can an agent pass timeout: 0? -1? No schema validation present (e.g., minimum, multipleOf).