Vitest-native testing for Model Context Protocol (MCP) servers - matchers, snapshots, interaction doubles, and real external servers, on both SDK majors.
This is a test harness library, not a production MCP server. The 4 tools in test/servers/stdio-server.mjs are minimal fixtures for testing the harness itself. Tool descriptions are extremely brief (10-34 chars, well below the 194-char baseline). Input schemas are present but minimal, most tools have 0-1 parameters with no parameter descriptions. No output schemas documented. No error handling guidance. The tools are intentionally simple test doubles, not production-grade implementations. Naming is acceptable (echo, ask, list-roots, spawn-info) but descriptions lack context for LLM selection.
Asks the user via elicitation
Echoes back the message
Lists the client's roots
Reports env and cwd
All tool descriptions are under 20 characters, providing minimal context for LLM selection. 'Echoes back the message' (23 chars) and 'Asks the user via elicitation' (29 chars) lack WHEN to use, prerequisites, or return value details.
No parameter descriptions provided. The 'message' parameter in echo and 'question' parameter in ask lack type hints, constraints, or usage guidance. LLMs cannot infer parameter semantics from names alone.
No output schemas documented. Tools return content arrays with text fields, but LLMs have no formal specification of return structure. This forces LLMs to infer output shape from examples.
Inferred effective spec: 2026-07-28+.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | F | 41 | 2026-07-28+ | v2 |
No error handling guidance. Tools provide no recovery hints if they fail. E.g., if 'ask' is declined, the response is 'declined' with no guidance on what the agent should do next.
Tool 'list-roots' uses deprecated Roots capability (removed in 2026-07-28 spec). Roots should be passed via tool parameters, resource URIs, or configuration instead of server-initiated queries.