Labsco
that1guy15 logo

Tox Testing

โ˜… 5

from that1guy15

Executes tox commands to run Python tests with pytest. Requires the TOX_APP_DIR environment variable to be set.

๐Ÿ”ฅ๐Ÿ”ฅโœ“ VerifiedFreeQuick setup

Tox Testing MCP Server

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

Features

Tools

  • run_tox_tests - Execute tox tests with various modes and options
    • Supports different execution modes:
      • all: Run all tests or tests from a specific group
      • file: Run tests from a specific file
      • case: Run a specific test case
      • directory: Run all tests in a specified directory
    • Test groups supported:
      • clients: Client-related tests
      • api: API endpoint tests
      • auth: Authentication tests
      • uploads: Upload functionality tests
      • routes: Route handler tests

Development

Install dependencies:

npm install

Build the server:

npm run build

For development with auto-rebuild:

npm run watch