Stdio MCP server that exposes terminal session management, SSH/serial connections, file transfer, and device profile management to AI clients (Claude Desktop, Claude Code, etc.) via HTTP bridge to running Prateek-Term Electron app
14 tools with complete schemas and descriptions. Naming follows verb_noun convention (list_, connect, run_, send_, etc.). Descriptions are adequate (50-150 chars typical) but lack LLM-optimized guidance on when to use each tool vs. alternatives. Parameters are well-typed with enums where appropriate (protocol, baudRate constraints). Critical gap: no error handling guidance, tools return raw errors without recovery hints. No tool annotations (readOnlyHint, destructiveHint) despite clear risk stratification (READ_ONLY, WRITE, DESTRUCTIVE). Output schemas not documented, LLMs cannot predict response structure for chaining. Missing idempotency guarantees and confirmation patterns for destructive ops (delete_profile).
Create and save a new device connection profile in Prateek-Term. The profile is persisted immediately and the sidebar refreshes automatically. Note: aiEnabled defaults to false; set it to true to make the profile AI-accessible.
Open a new terminal session. Use profileName to connect via a saved profile, or specify protocol="local" for a local shell.
Delete a saved device connection profile by name.
Close a terminal session.
Download a file from a remote device to the local Mac via SCP. Uses the saved profile credentials.
Get the current state of a session: idle (at shell prompt), running_command, waiting_for_input (password/confirmation prompt), busy, or disconnected.
No tool annotations (readOnlyHint, destructiveHint, idempotentHint) despite clear risk stratification. delete_profile, upload_file, download_file, run_command marked as DESTRUCTIVE/WRITE but lack formal annotations for LLM safety.
No output schemas documented. LLMs cannot predict response structure (e.g., does list_profiles return {profiles: [...]} or {data: [...]}?). Breaks tool chaining and forces agents to infer field names.
No error handling guidance. Tools return raw errors without recovery hints. E.g., 'Connection failed' tells LLM nothing; should be 'Connection failed: host unreachable. Verify host/port with list_profiles or check network.'
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | C | 62 | 2026-07-28+ | v2 |
List SSH and serial connection profiles saved in Prateek-Term that are tagged as AI-accessible (tagged "ai").
List available serial ports on the machine.
List active terminal sessions currently open in Prateek-Term.
Read and clear buffered output from a session since the last read (or since connect). Useful for monitoring interactive sessions.
Run a shell command in an active session and return its output and exit code. The session must be at a shell prompt.
Send raw input to a session (useful for interactive prompts, Ctrl+C, etc.).
Update an existing device connection profile. Only the fields you provide are changed; omitted fields are left as-is.
Upload a local file to a remote device via SCP. Uses the saved profile credentials (password or key). The file is transferred from the Mac to the remote host.
delete_profile lacks confirmation/dry-run pattern. Destructive operation with no undo. LLM could accidentally delete critical profiles. Recommend adding a 'confirm' parameter or separate 'confirm_delete_profile' tool.
Descriptions lack LLM-optimized guidance on when to use each tool. E.g., connect vs. run_command distinction unclear, when should LLM call connect first? Descriptions should state prerequisites and common workflows.