How are you testing your MCP servers? (I built a framework for it)
Source: Dev.to
Introduction
There are over 12,000 MCP servers on GitHub and npm right now. I checked a bunch of them—almost none have tests.
Why there are no tests
It’s not because the developers are lazy. There simply isn’t a standard, obvious way to test an MCP server. You’d have to wire up the SDK manually, handle stdio transport, write your own assertions, and so on.
A solution: mcp‑test
I built @lachytonner/mcp-test — a Vitest‑based testing framework that works like Jest but for MCP servers.
(Code examples from the README would normally follow here.)