# MCP Test Runner [Health: Active]

**Category:** 💻 Developer Tools  
**Repository:** https://github.com/LovRanRan/mcp-test-runner  
**GitHub Stars:** 0  
**Views:** 1  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/mcp-test-runner

## Description
Local test execution and coverage summaries for onboarding agents.

## Claude Desktop Quick Installation
No generated config for this server: it installs through its own setup steps.

The project's own setup steps (from https://github.com/LovRanRan/mcp-test-runner), copied verbatim. Follow them in order; they are not an mcpServers config.

1. Start the server:

```sh
uv run mcp-test-runner
```

## Documentation

## What MCP Test Runner MCP server does

The MCP Test Runner MCP server provides a verification layer for agents that need to check claims against real test execution. It runs tests in a selected working directory, captures the command result, and can convert pytest or Jest JSON output into a normalized `TestRunResult` structure.

The server is intended for local codebase workflows, including onboarding systems that classify findings as verified, unverified, or contradicted. It does not use an LLM; execution and reporting come from subprocesses and parsers. The implementation is Python-first and supports Python 3.11 or newer.

## How it works

Execution tools launch the selected framework as a subprocess. Pytest uses JSON reporting through `pytest-json-report`. Jest is invoked through `npx jest --json --outputFile`, so the project must provide Jest locally or make it resolvable through `npx`.

Runs can be bounded by a timeout, CPU limit, and memory limit. CPU and memory controls use POSIX `resource.setrlimit`, while timeout handling limits how long the subprocess may run. This means resource controls depend on a POSIX platform that supports that API; the server does not isolate tests with Docker.

Raw execution output remains available from the test-running tools. A separate parser converts framework JSON into the common result format, so callers should invoke parsing when they need structured cross-framework data.

## Setup and configuration

Install the package dependencies with:

```bash
uv sync --extra dev
```

Start the server locally with:

```bash
uv run mcp-test-runner
```

The PyPI package is named `lovranran-mcp-test-runner`, while the installed command is `mcp-test-runner`. The project verification commands use Ruff, mypy, and pytest.

Jest use additionally requires Node.js and either a project-local Jest installation or a version that `npx` can resolve.

## Tools and capabilities

The MCP Test Runner MCP server exposes these operations:

- `health()` returns `ok` for smoke checks.
- `run_pytest()` runs pytest in a bounded directory and returns raw command output.
- `run_jest()` runs Jest through `npx` and returns raw command output.
- `run_single_test()` targets one pytest node ID or one Jest test-name pattern.
- `parse_test_output()` normalizes pytest or Jest JSON output.
- `get_coverage_summary()` returns pytest-cov JSON totals.

Single-test Jest execution uses `--testNamePattern`; it does not accept Jest file-specific node IDs. Coverage summaries are limited to pytest in this version and rely on `.coverage.json`.

## Limitations and notes

The runner is bounded but not containerized. Its CPU and memory restrictions are unavailable on platforms without the required POSIX resource interface. Jest execution is dependent on the local Node.js and Jest setup. Test execution returns raw output by design, so structured consumers must make a separate parsing call. The supported coverage summary is pytest-only, even though test execution and output normalization cover both pytest and Jest.

_Full upstream README: https://allmcps.com/mcp/mcp-test-runner/readme_

