How to Test an MCP Server: Vitest, In-Memory Transport, Streamable HTTP and the Inspector CLI
Testing an MCP server means checking three layers: the pure functions behind your tools, the MCP contract (tool list, schemas, results and errors), and the transport your clients actually use. You can