AI agents (MCP)
yawast mcp is a Model Context Protocol server. Agents can list checks, run scans from one check on one parameter to a full scan, and read the findings and evidence. You set the limits.
Connect an agent
Claude Code:
claude mcp add yawast -- yawast mcp --allow-target '*.staging.example.com'
Claude Desktop, or any MCP client that starts servers over stdio, in its configuration file:
{
"mcpServers": {
"yawast": {
"command": "/opt/homebrew/bin/yawast",
"args": ["mcp", "--allow-target", "*.staging.example.com", "--max-level", "safe"]
}
}
}
Use the full path to yawast (which yawast), since desktop apps don’t share your shell’s PATH.
What agents can ask
Agents pick the scan that answers the question:
| Question | Scan |
|---|---|
Is id on this page injectable? |
scan {target: "https://shop.example.com/item.php?id=1", checks: ["inject.sqli"], options: {param: ["id"]}} |
| Which algorithms does this certificate chain use? | scan {mode: "tls", target: "mail.example.com:443", checks: ["tls.certificate"]} |
| How is this domain protected against spoofing? | scan {mode: "mail", target: "example.com", checks: ["mail.spf", "mail.dmarc", "mail.dkim"]} |
| What’s wrong with this site? | scan {target: "https://staging.example.com"} |
A targeted question is answered in seconds. The SQL injection question above takes about four requests, with no crawl.
Tools
| Tool | Does |
|---|---|
list_checks |
The checks, with what each tests, its level, and the rules it reports. Filter by mode, tag, or text. |
list_rules, explain_rule |
The kinds of finding, with severity, description, remediation, CWE, and references. |
list_options |
The scan options for a mode, and which ones the agent may set. |
scan |
Starts a scan. It waits up to wait_seconds (60 by default, 300 at most) for the results, then returns a scan_id. |
get_scan |
A scan’s status, or its results once finished. |
get_results |
Pages through findings and observations, filtered by severity, rule, check, or kind. |
get_finding |
One finding’s HTTP evidence, with the rule’s remediation. |
list_scans, cancel_scan |
The server’s scans. |
The tools are generated from yawast’s checks, rules, and options, so new checks reach agents without any change to the server.
Your limits
Whoever runs yawast mcp decides what agents may do:
| Flag | Effect |
|---|---|
--allow-target |
Host name patterns (*.staging.example.com) or networks (10.0.0.0/8) agents may scan. It is checked again after redirects, and for mail servers and endpoints. Repeatable. Without it, any target is allowed. |
--max-level |
The highest --level agents may use. The default is no cap; each scan still defaults to safe. |
--max-scans |
How many scans may run at once (2). |
--proxy, --rate, data and wordlist files, --browser, --trust-store |
Set on the server’s command line and applied to every scan. Agents can’t change them. |
Agents cannot sign in to sites. Credentials would pass through the agent, which could send them to any target it chose.
yawast sends real attack payloads. Give agents an allowlist of systems you’re authorized to test, and a level you’re comfortable with.