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
| Name | Required | Description | Default |
|---|---|---|---|
| mutation_id | No | ||
| venv_path | No |
Implementation Reference
- mutmut_mcp.py:109-118 (handler)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)