
AI Engineering
How to Test an MCP Server: Vitest, In-Memory Transport, Streamable HTTP and the Inspector CLI
A tested way to test MCP servers in TypeScript: unit tests for tool logic, in-memory contract tests with the official SDK client, Streamable HTTP checks (406, 405, no session) and MCP Inspector CLI commands.