Skip to main content
Glama

rerun_mutmut_on_survivor

Rerun mutation tests on surviving mutations after test updates to verify fixes and improve test coverage in Python projects using mutmut CLI.

Instructions

Rerun mutmut on specific surviving mutations or all survivors after test updates using the mutmut CLI. Returns the plain text output.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
mutation_idNo
venv_pathNo

Implementation Reference

  • The handler function 'rerun_mutmut_on_survivor' executes the mutmut CLI command with either --rerun or --rerun-all based on the provided mutation_id.
    def rerun_mutmut_on_survivor(mutation_id: Optional[str] = None, venv_path: Optional[str] = None) -> str:
        """
        Rerun mutmut on specific surviving mutations or all survivors after test updates using the mutmut CLI.
        Returns the plain text output.
        """
        if mutation_id:
            return _run_mutmut_cli(["run", "--rerun", mutation_id], venv_path)
        else:
            return _run_mutmut_cli(["run", "--rerun-all"], venv_path)
  • mutmut_mcp.py:185-185 (registration)
    Registration of 'rerun_mutmut_on_survivor' as an MCP tool using mcp.tool().
    mcp.tool()(rerun_mutmut_on_survivor)

Latest Blog Posts

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/wdm0006/mutmut-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server