A custom MCP (Model Context Protocol) server implementation using MQTT transport for SSH command execution and weather information retrieval
This MCP server has 2 tools with schemas visible, but multiple critical quality gaps. The ssh_execute_command tool exposes credentials (password parameter) as a required input parameter, violating the secret-injection pattern. Both tools have minimal descriptions (under 50 chars) that lack actionable context for LLM selection. The weather tool lacks required field documentation in its parameter schema. Neither tool documents output schemas. Error handling is minimal and non-recoverable. The custom MQTT transport with a non-standard mcp_over_mqtt implementation adds protocol uncertainty. Overall, this reads as a demo/prototype, not production-ready.
Get the real-time weather of the specified city
Execute command on remote server via SSH
CRITICAL: ssh_execute_command exposes password as a required parameter. Credentials must never be tool parameters, use server-side secret injection via environment variables or vault. Agent traces log all parameters, causing secrets to leak into logs and prompt history.
CRITICAL: Tool descriptions are too short (<20 chars) to guide LLM selection. ssh_execute_command: 'Execute command on remote server via SSH' (44 chars, bare imperative). get_weather: 'Get the real-time weather of the specified city' (48 chars, no context on when to use or what it returns). Expand to 50-200 chars explaining WHAT, WHEN, and WHAT IT RETURNS.
CRITICAL: No output schemas documented. LLMs cannot plan downstream tool calls or extract needed fields without knowing what structure is returned. ssh_execute_command returns a string (error or stdout); get_weather returns a dict with weather fields. Both should be explicitly documented in a 'returns' or 'output' schema block.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-22 | F | 32 | 2026-07-28+ | v2 |
| 2026-03-09 | F | 35 | - | v1 |
HIGH: get_weather parameter schema lacks 'required' field declaration. The city_name parameter is marked in properties but no 'required' array exists, making it unclear to the MCP client whether the parameter is mandatory.
HIGH: Error handling is minimal and non-actionable. ssh_execute_command catches exceptions but returns bare strings ('SSH authentication failed', 'unknown error: ...') with no guidance on what the LLM should try next. No retry hints, no available alternatives. get_weather returns error strings from the weather API without categorization (retryable vs user-fixable vs fatal).
MEDIUM: ssh_execute_command has optional 'port' parameter with no default documented. SSH typically defaults to 22, but this is not stated. Without an explicit default, the LLM may pass invalid values or forget the parameter entirely, causing connection failures.
MEDIUM: Parameter descriptions are generic. 'Remote server IP or domain name' for host, 'SSH port number' for port, these lack format/range constraints. No mention of valid port range (1-65535), IP format validation, or domain name patterns. No guidance on timeout behavior (the code has a 10-second timeout hardcoded, invisible to the LLM).
MEDIUM: ssh_execute_command is inherently destructive (executes arbitrary shell commands) but has no warning in the description. The description should clarify: 'WARNING: This tool executes arbitrary commands on the remote server. Exercise caution. Consider blocking dangerous patterns (rm, dd, format, etc.) in the agent's system prompt.'
LOW: No tool annotations present. ssh_execute_command should declare destructiveHint=true and readOnlyHint=false to flag it as a state-modifying operation. get_weather should declare readOnlyHint=true. Tool annotations help agents reason about side effects.