smart_scan
Execute AI-driven security scans with parallel tool selection to identify vulnerabilities on specified targets using configurable objectives.
Instructions
Execute intelligent scan using AI-driven tool selection with parallel execution.
Args: target: Target domain, IP, or URL objective: Scan objective (comprehensive, fast, stealth, targeted)
Returns: Smart scan results with AI-optimized execution
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| objective | No | comprehensive | |
| target | Yes |
Implementation Reference
- src/mcp_server/app.py:1589-1609 (handler)MCP tool handler for 'smart_scan'. Proxies POST request to REST API /api/intelligence/smart-scan endpoint with target and objective parameters. Handles logging and returns the API response.def smart_scan(target: str, objective: str = "comprehensive") -> dict[str, Any]: """Run AI-driven smart scan with parallel execution. Args: target: Target domain, IP, or URL objective: Scan objective (comprehensive, fast, stealth, targeted) Returns: Smart scan results with AI-optimized execution """ data = {"target": target, "objective": objective} logger.info(f"🚀 Executing smart scan for {target} with {objective} objective") result = api_client.safe_post("api/intelligence/smart-scan", data) if result.get("success"): logger.info(f"✅ Smart scan completed for {target}") else: logger.error(f"❌ Smart scan failed for {target}") return result
- src/mcp_server/app.py:1589-1589 (registration)Registration of the 'smart_scan' tool using FastMCP @mcp.tool() decorator.def smart_scan(target: str, objective: str = "comprehensive") -> dict[str, Any]: