Back to Home
josharsh icon

mcp-jest

Verified Safe

by josharsh

Overview

Automated testing, discovery, and validation framework for Model Context Protocol (MCP) servers.

Installation

Run Command
npx mcp-jest node ./your-mcp-server.js --tools your_tool_name

Environment Variables

  • UPDATE_SNAPSHOTS
  • MCP_JEST_DEBUG

Security Notes

The project is a testing framework designed to execute arbitrary server commands (the MCP server under test) and connect to user-specified URLs. While this is its core purpose, it means user vigilance is required when configuring the server to be tested. The expectation evaluation logic for user-provided strings is implemented with a custom, safe parser, avoiding direct `eval()` on user input within the core framework. The use of `Function()` for expression evaluation is confined to mock server implementations and test utilities, not the main `mcp-jest` runtime logic for `expect` clauses. File system operations are localized to snapshot management. Overall, it appears well-designed for its purpose with appropriate safeguards against arbitrary code execution from test configurations themselves.

Similar Servers

Stats

Interest Score38
Security Score9
Cost ClassLow
Stars11
Forks0
Last Update2025-11-27

Tags

TestingMCPAutomationProtocol ValidationCI/CD