How are you testing your MCP servers? (I built a framework for it)

There are over 12,000 MCP servers on GitHub and npm right now. I checked a bunch of them. Almost none have tests.
It’s not because the developers are lazy. It’s because there was no standard, obvious way to test an MCP server. You’d have to wire up the…


This content originally appeared on DEV Community and was authored by lachy

There are over 12,000 MCP servers on GitHub and npm right now. I checked a bunch of them. Almost none have tests.
It's not because the developers are lazy. It's because there was no standard, obvious way to test an MCP server. You'd have to wire up the SDK manually, handle stdio transport, write your own assertions...
So I built @lachytonner/mcp-test — a Vitest-based testing framework that works like Jest but for MCP servers...
(continue with code examples from README)


This content originally appeared on DEV Community and was authored by lachy


Print Share Comment Cite Upload Translate Updates
APA

lachy | Sciencx (2026-04-06T02:54:52+00:00) How are you testing your MCP servers? (I built a framework for it). Retrieved from https://www.scien.cx/2026/04/06/how-are-you-testing-your-mcp-servers-i-built-a-framework-for-it/

MLA
" » How are you testing your MCP servers? (I built a framework for it)." lachy | Sciencx - Monday April 6, 2026, https://www.scien.cx/2026/04/06/how-are-you-testing-your-mcp-servers-i-built-a-framework-for-it/
HARVARD
lachy | Sciencx Monday April 6, 2026 » How are you testing your MCP servers? (I built a framework for it)., viewed ,<https://www.scien.cx/2026/04/06/how-are-you-testing-your-mcp-servers-i-built-a-framework-for-it/>
VANCOUVER
lachy | Sciencx - » How are you testing your MCP servers? (I built a framework for it). [Internet]. [Accessed ]. Available from: https://www.scien.cx/2026/04/06/how-are-you-testing-your-mcp-servers-i-built-a-framework-for-it/
CHICAGO
" » How are you testing your MCP servers? (I built a framework for it)." lachy | Sciencx - Accessed . https://www.scien.cx/2026/04/06/how-are-you-testing-your-mcp-servers-i-built-a-framework-for-it/
IEEE
" » How are you testing your MCP servers? (I built a framework for it)." lachy | Sciencx [Online]. Available: https://www.scien.cx/2026/04/06/how-are-you-testing-your-mcp-servers-i-built-a-framework-for-it/. [Accessed: ]
rf:citation
» How are you testing your MCP servers? (I built a framework for it) | lachy | Sciencx | https://www.scien.cx/2026/04/06/how-are-you-testing-your-mcp-servers-i-built-a-framework-for-it/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.