Back to Home
josharsh icon

mcp-jest

Verified Safe

by josharsh

Overview

A testing framework for Model Context Protocol (MCP) servers, allowing automated validation of AI agent tools, resources, and prompts.

Installation

Run Command
mcp-jest node <your_mcp_server_script.js> --tools <tool1,tool2> --resources <res1,res2>

Environment Variables

  • UPDATE_SNAPSHOTS

Security Notes

The core `mcp-jest` framework carefully parses string-based expectations without using unsafe `eval()` or `new Function()` for user-provided input, significantly reducing injection risks. It is designed to spawn and interact with user-defined server commands and URLs, which is its intended function and not a vulnerability of the framework itself. While some example test servers within the repository (e.g., `e2e/test-server.js`) might use `Function()` for controlled dynamic execution within their own logic, this does not reflect a security flaw in the `mcp-jest` framework's handling of external input.

Similar Servers

Stats

Interest Score38
Security Score9
Cost ClassLow
Stars13
Forks0
Last Update2026-01-16

Tags

MCPTestingAILLMCI/CD