mcp-jest
Verified Safeby josharsh
Overview
Automated testing, discovery, and validation framework for Model Context Protocol (MCP) servers.
Installation
npx mcp-jest node ./your-mcp-server.js --tools your_tool_nameEnvironment 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
spec-workflow-mcp
Model Context Protocol (MCP) server for structured, spec-driven software development with real-time dashboard and VSCode extension integration.
mcp-interviewer
A Python CLI tool designed to evaluate, test, and generate reports on Model Context Protocol (MCP) servers to ensure compatibility and quality for LLM agent use cases.
mcp-k8s
A Kubernetes MCP (Model Control Protocol) server that enables natural language interaction with Kubernetes clusters and Helm for resource and release management.
1xn-vmcp
An open-source platform for composing, customizing, and extending multiple Model Context Protocol (MCP) servers into a single logical, virtual MCP server, enabling fine-grained context engineering for AI workflows and agents.