cancel_scan
Stop an active security scan in Intruder.IO by providing the scan ID to terminate ongoing vulnerability assessments.
Instructions
Cancel a running scan.
Args:
scan_id: The ID of the scan to cancel
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scan_id | Yes |
Implementation Reference
- intruder_mcp/server.py:182-191 (handler)The handler function for the 'cancel_scan' tool, registered via @mcp.tool() decorator. It invokes the API client's cancel_scan method and formats the response.@mcp.tool() async def cancel_scan(scan_id: int) -> str: """ Cancel a running scan. Args: scan_id: The ID of the scan to cancel """ result = api.cancel_scan(scan_id) return f"Cancelled scan {scan_id}: {result}"
- intruder_mcp/api_client.py:188-189 (helper)Core implementation of cancel_scan in the IntruderAPI class. Performs the HTTP POST request to the Intruder API endpoint to cancel the specified scan.def cancel_scan(self, scan_id: int) -> str: return self.client.post(f"{self.base_url}/scans/{scan_id}/cancel/").text