Write automated tests for an MCP server by connecting an SDK Client to it in-process (no socket, no subprocess), then list its tools, call a tool, and assert on the result — using the Python SDK's in-memory Client or the TypeScript SDK's in-process handler.fetch / InMemoryTransport.
9 steps · 3 gotchas · unrated