delete_target
Remove a specified target using its unique ID with this tool from the intruder-mcp server. Simplifies target management and cleanup.
Instructions
Delete a target.
Args:
target_id: The ID of the target to delete
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target_id | Yes |
Implementation Reference
- intruder_mcp/server.py:193-202 (handler)The main handler function for the MCP 'delete_target' tool. It is decorated with @mcp.tool() which serves as both the handler implementation and registration. Calls the api helper to perform the deletion and returns a confirmation message.@mcp.tool() async def delete_target(target_id: str) -> str: """ Delete a target. Args: target_id: The ID of the target to delete """ api.delete_target(target_id) return f"Deleted target {target_id}"
- intruder_mcp/api_client.py:195-196 (helper)Supporting helper in the API client that executes the actual HTTP DELETE request to remove the target from the Intruder API.def delete_target(self, target_id: str) -> None: self.client.delete(f"{self.base_url}/targets/{target_id}/")