Tox Testing

•
5
•

Executes tox commands to run Python tests within a project using pytest via the Model Context Protocol (MCP).

This tool provides a convenient way to run and manage Python tests through the Model Context Protocol (MCP). It functions as an MCP server, allowing you to execute tox commands and manage tests within your Python project using pytest. The server supports various execution modes, including running all tests, specific test files, individual test cases, or tests within a directory. It also allows you to target specific test groups like API, authentication, or upload functionality tests.

Key Features

01Supports execution of tox tests in different modes (all, file, case, directory).
02Allows targeting specific test groups (e.g., API, authentication).
03Provides a configuration option for setting a test execution timeout.
04Integrates with VSCode through MCP settings.
05Enables focused debugging by isolating failed test cases.

Use Cases

01Running a full test suite before committing code changes.
02Debugging a specific failing test case identified in a CI/CD pipeline.
03Validating API endpoint functionality by running targeted tests.