Secure Model Context Protocol server for safe, sandboxed terminal access for AI assistants
Terminal Guardian has 25 tools with complete input schemas and descriptions, but quality is uneven. Naming is strong (verb_noun pattern, clear intent). Descriptions average ~120 chars, adequate but often lack WHEN/WHY context and recovery guidance. Parameters are well-typed with enums where appropriate (e.g., docker_exec, git_suggest_commit), but many lack actionable constraints (e.g., timeout ranges, file size limits). Output schemas are not documented, LLMs cannot predict response structure. Error handling is minimal; no recovery guidance or categorization. Security is a strength: no secrets in params, risk levels declared. Composition is good: single-responsibility tools, clear chains (e.g., analyze_command → run_command). Major gaps: no output schema documentation, no error recovery patterns, descriptions lack dependency hints.
Analyze a shell command for safety risks without executing it. Returns risk level (SAFE/WARNING/DANGEROUS/BLOCKED), reasons, and recommendations.
Scaffold a new project from a template. Creates files and directories in the target path within the workspace. Safe — cannot write outside workspace root.
Perform DNS lookup for a hostname. Returns IP addresses and record type.
Execute a command inside a Docker container with timeout and output capture.
Retrieve logs from a Docker container.
List Docker containers with their status, image, and port information.
Restart a Docker container. Requires allowContainerRestart to be enabled in configuration.
No output schemas documented. LLMs cannot predict response structure (fields, types, pagination). Forces agents to guess what data is available after each call.
Descriptions lack recovery guidance and dependency hints. E.g., 'analyze_command' does not say 'Call this before run_command to check safety.' Agents cannot plan multi-step sequences efficiently.
Inferred effective spec: <=2025-11-25.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | D | 57 | <=2025-11-25 | v2 |
Get real-time resource usage statistics for a Docker container.
Get environment variables. Sensitive variables (passwords, tokens, keys) are redacted.
Show Git diff for working tree or staged changes.
Show Git commit history with author, date, and message.
Get the current Git repository status including staged, unstaged, and untracked files.
Generate AI-powered commit message suggestions from git diff using Claude. Returns conventional commit format suggestions with type, scope, and subject. Requires ANTHROPIC_API_KEY environment variable.
Make an HTTP request to a URL. Supports GET, POST, PUT, DELETE, PATCH. Returns status, headers, and body.
Terminate a process by PID. Uses SIGTERM by default (graceful). SIGKILL requires confirmed=true. System processes are protected.
List files and directories within the workspace. Access is restricted to allowed paths.
List running system processes with CPU, memory usage, and command info. Supports filtering by name and sorting.
List available workspace templates for scaffolding new projects. Includes Node.js, TypeScript, Python, FastAPI, React, Next.js, Express, and MCP server templates.
Ping a host to check network connectivity and measure latency.
Read the contents of a file within the workspace. Access is restricted to allowed paths and file size limits.
Execute a shell command in a secure sandboxed environment with risk analysis, timeout enforcement, and output capture. Commands are analyzed for safety before execution.
Search for text across files in the workspace. Returns matching lines with context.
Execute a command on a remote SSH server using a configured profile. Returns stdout, stderr, and exit code.
List all configured SSH profiles with their connection details (host, port, username). Passwords and private keys are not exposed.
Test SSH connection to a remote server using a configured profile. Returns connection status, latency, and server version.
Numeric parameters lack explicit ranges. E.g., 'timeout' in run_command, docker_exec, ssh_exec has no min/max. 'tail' in docker_logs, 'limit' in git_log, 'count' in git_suggest_commit lack bounds. LLMs may pass absurd values.
Error handling is minimal. No recovery guidance (e.g., 'If command times out, try with a longer timeout or simpler command'). No error categorization (retryable vs user-fixable vs fatal). Agents cannot self-correct.
Destructive tools (docker_restart, kill_process) lack explicit confirmation/dry-run patterns in descriptions. Agents may execute irreversible operations without user consent.