mcp-test-runner
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@mcp-test-runnerrun pytest on tests/ and show coverage"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
mcp-test-runner
MCP server for deterministic local test execution and normalized test result reporting.
mcp-test-runner is the verification layer for codebase onboarding agents. It exposes focused MCP tools for running pytest and Jest, parsing test output, and summarizing coverage so downstream agents can mark claims as verified, unverified, or contradicted by real execution.
Codebase Onboarding Stack
mcp-test-runner is the verification layer in a three-server MCP tool stack for Project 6 wayfinder, a codebase onboarding agent.
mcp-repo-mappermaps repository structure, languages, entry points, framework evidence, and Python dependency edges.mcp-ast-explorerprovides symbol-grounded Python definition, signature, reference, call-chain, and class-hierarchy lookups.mcp-test-runnerruns local pytest/Jest checks and coverage summaries so agent claims can be verified against execution.
In wayfinder, this server turns high-risk code understanding claims into verified, unverified, or contradicted evidence from real test execution.
Related MCP server: MCP Testing Assistant
Status
This repository is a Python-first v1 MCP test runner. It supports bounded pytest execution, Jest command execution, single-test targeting, pytest coverage summaries, and normalized pytest/Jest JSON parsing.
The server does not use an LLM. Test results come from subprocess execution and structured parser output.
Tools
Tool | Purpose |
| Returns |
| Run pytest in a bounded working directory and return raw command output. |
| Run Jest through |
| Run one pytest node id or one Jest test-name pattern. |
| Normalize test runner JSON output. |
| Return pytest-cov JSON coverage totals. |
Supported Scope
Python 3.11+ package.
FastMCP 2.x server.
pytest execution with JSON report output via
pytest-json-report.Jest command execution via
npx jest --json --outputFile.pytest and Jest JSON normalization into one
TestRunResultschema.Single pytest node id execution and Jest test-name targeting.
pytest-cov coverage summary from
.coverage.json.Subprocess timeout plus POSIX
resource.setrlimitCPU / memory caps.
Current Limitations
v1 does not use Docker. It uses cwd validation, subprocess timeouts, and POSIX resource limits.
Resource limits require a POSIX platform that supports
resource.setrlimit.Jest execution expects Node.js plus project-local or
npx-resolvable Jest.Jest single-test targeting uses
--testNamePattern; it does not parse Jest file-specific node ids.Coverage summary is pytest-only in v1.
Tools return raw command output for execution; call
parse_test_outputto normalize framework JSON.
Local Development
Install dependencies:
uv sync --extra devThe PyPI distribution name is lovranran-mcp-test-runner because mcp-test-runner is already taken on PyPI. The installed console script remains mcp-test-runner.
Run the MCP server:
uv run mcp-test-runnerRun verification:
uv run ruff check .
uv run mypy
uv run pytestLicense
MIT
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/LovRanRan/mcp-test-runner'
If you have feedback or need assistance with the MCP directory API, please join our Discord server