Tox Testing icon

Tox Testing

Createdthat1guy15

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

About

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

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

Use Cases

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