A Model Context Protocol server for reading from and writing to PTY (pseudo-terminal) and named pipe devices. Provides low-level device I/O operations with timeout and data size controls.
PTY MCP Server provides 4 tools with partial schema documentation and basic descriptions. Tool names are action-verb based (pty_read, pty_write, pipe_read, pipe_write) which is good, but descriptions lack depth on when to use each tool and potential consequences. All tools have input schemas with parameter types and descriptions present, which is a strength. However, output schemas are not documented, the code shows tools return structured responses (base64-encoded data, byte counts) but this is not formally declared. Error handling is present in code (MCPError with codes -32001 through -32004) but error responses lack recovery guidance for the LLM. The server is STDIO-only, capping protocolReadiness at 50. Overall definition quality is fair but incomplete by production standards.
Read data from a Windows named pipe with configurable timeout and maximum bytes
Write data to a Windows named pipe with configurable timeout
Read data from a PTY device with configurable timeout and maximum bytes
Write data to a PTY device with configurable timeout
No output schema documentation. Tools return structured data (base64-encoded bytes, write count) but responses are not formally documented. LLMs cannot plan downstream operations without knowing response structure.
Error responses lack recovery guidance. Code throws MCPError with codes (-32001 to -32004) and messages like 'failed to open pty' or 'write timed out', but does not tell the LLM what corrective action to take (e.g., 'retry with increased timeout', 'check if device exists').
Descriptions are generic and lack 'when to use' context. E.g., pty_write says 'Write data to a PTY device' but does not explain when an agent should prefer pty_write over pipe_write, whether the PTY must exist first, or what typical use cases are.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-22 | D | 50 | 2026-07-28+ | v2 |
| 2026-03-09 | F | 38 | - | v1 |
No input validation guidance in parameter descriptions. E.g., max_bytes accepts 1-262144 but the description does not explain what happens if the agent passes 0 or 500000, or suggest reasonable defaults for common cases.
Base64 encoding requirement not prominently documented. Both write tools require base64-encoded data, but the constraint is buried in parameter descriptions. LLMs frequently fail to encode data correctly without explicit examples and warnings.
No idempotency or side-effect documentation. Both read tools are read-only (declared in Risk field) but descriptions do not explicitly state this. Write tools are destructive but lack confirmation or dry-run patterns.