tox-testing

tox-testing

4

The Tox Testing MCP Server is a tool designed to facilitate the execution of Python tests using tox and pytest. It provides a flexible testing environment, supporting a variety of test execution modes and configurations, making it ideal for handling comprehensive Python testing scenarios.

Tox Testing MCP Server

An MCP server that executes tox commands to run Python tests within a project using pytest. It provides a convenient way to manage and execute tests through the Model Context Protocol (MCP).

Features

  • Tools
    • run_tox_tests: Execute tox tests with options including:
      • Running all tests or from a specific group
      • Running tests from a specific file or directory
      • Running a specific test case
    • Supports test groups such as clients, api endpoints, authentication, uploads, and routes.

Installation

Add the server config to your MCP settings file to use with VSCode.

Usage

The run_tox_tests tool can be utilized in various modes: all, group-specific, file-specific, case-specific, and directory-specific tests.

Using with Cline

Appropriate configurations and workflows can be set up to efficiently manage test execution.

Configuration Options

  • env.TOX_TIMEOUT: Optional timeout for test execution.
  • env.TOX_APP_DIR: Required directory path where tox commands will be executed.