Scan a repository
scan_repoScans a local project offline and read-only for hardcoded secrets, code-execution sinks, API routes, trust boundaries, vulnerable runtimes, and header, cookie, CORS and rate-limit settings, returning a prioritized brief.
Instructions
White-box scan of a local project folder: hardcoded secrets, code-execution sinks, API routes and trust boundaries, runtime versions with known advisories, and security headers, cookie flags, CORS and login rate limits as the code sets them. Offline and read-only. Use it first on a project. For third-party packages use check_dependencies, for AI agent config audit_ai_tooling, for a running app scan_url; pass any finding's rule to explain_finding. Returns the brief first (verdict, act on, check first, likely noise, not checked), then findings most severe first with rule, severity, confidence and file:line evidence; truncated says if more were left out.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "scan_repo"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Project folder to scan, relative to the workspace root or absolute inside it; nothing outside the workspace is read. Default: the workspace root. | |
| max_findings | No | How many findings to return, most severe first (default 50). The brief always counts all of them. |