The following tools are available for MCP clients to invoke:
Get the ZAP version.
Get basic ZAP information.
Create a ZAP context with the given name, URL and optional include/exclude regexes.
Parameters: name, url, and optionally include_regexes, exclude_regexes
Start the spider. The target can be a URL (creates a temporary context) or the name of an existing context. Returns a scan_id for use with zap_stop_spider and zap_get_spider_status.
Parameters: target - a URL or context name
Stop the spider plan if it is running.
Parameters: scan_id - the ID returned by zap_start_spider
Get the status of the spider plan.
Parameters: scan_id - the ID returned by zap_start_spider
Start the AJAX spider. The target can be a URL (creates a temporary context) or the name of an existing context. Returns a scan_id for use with zap_stop_ajax_spider and zap_get_ajax_spider_status.
Parameters: target - a URL or context name
Stop the AJAX spider plan if it is running.
Parameters: scan_id - the ID returned by zap_start_ajax_spider
Get the status of the AJAX spider plan.
Parameters: scan_id - the ID returned by zap_start_ajax_spider
Start the active scan. The target can be a URL (creates a temporary context) or the name of an existing context. Optionally specify a scan policy. The target URL should be in the sites tree (spider first). Returns a scan_id for use with zap_stop_active_scan and zap_get_active_scan_status.
Parameters: target - a URL or context name, optionally policy - scan policy name (see zap://scan-policies)
Stop the active scan plan if it is running.
Parameters: scan_id - the ID returned by zap_start_active_scan
Get the status of the active scan plan.
Parameters: scan_id - the ID returned by zap_start_active_scan
Get the passive scan queue status. Returns the number of HTTP records waiting to be passively scanned. When the count reaches zero all collected traffic has been analysed. Requires the pscan add-on.
No parameters.
Generate a ZAP report. Use the zap://report-templates resource to discover available template names. Requires the reports add-on.
Parameters: file_path - full path for the output file (e.g. /tmp/report.html), template - template config name (e.g. traditional-html), optionally title - report title