cancel_scan
Stop an active scan on Intruder.IO by specifying the scan ID, ensuring immediate cancellation of ongoing vulnerability assessments.
Instructions
Cancel a running scan.
Args:
scan_id: The ID of the scan to cancel
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scan_id | Yes |
Input Schema (JSON Schema)
{
"properties": {
"scan_id": {
"title": "Scan Id",
"type": "integer"
}
},
"required": [
"scan_id"
],
"title": "cancel_scanArguments",
"type": "object"
}
Implementation Reference
- intruder_mcp/server.py:182-191 (handler)The MCP tool handler for 'cancel_scan'. Decorated with @mcp.tool() to register it as an MCP tool. Accepts a scan_id parameter and delegates to the IntruderAPI.cancel_scan method, returning a formatted success message.@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)Helper method in the IntruderAPI class that executes the HTTP POST request to the Intruder API endpoint to cancel a specific scan by ID.def cancel_scan(self, scan_id: int) -> str: return self.client.post(f"{self.base_url}/scans/{scan_id}/cancel/").text