Pre-Commit Secret & Artifact Guard
scan_precommit_guardScan repositories, diffs, or file lists for leaked secrets, private keys, large blobs, and build artifacts before commit; get masked findings, a risk score, and PASS/WARN/BLOCK remediation guidance.
Instructions
Scan a repository, unified diff, or file list for leaked .env files, cloud/LLM API keys, JWTs, private keys, high-entropy secrets, large/binary blobs, local DBs, and build artifacts. Returns masked findings, 0-100 risk score, PASS/WARN/BLOCK verdict, and remediation commands.
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_precommit_guard"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| diff | No | Optional raw unified diff text to scan in memory. | |
| files | No | Optional array of files and contents to scan in memory. | |
| repoPath | No | Repository path to scan (read-only). Defaults to current working directory if diff and files are omitted. | |
| allowedPaths | No | Optional allowlisted relative paths to skip. | |
| includeUntracked | No | Include untracked files in repository scans (default: true). | |
| largeFileThresholdBytes | No | Large blob warning threshold in bytes (default: 1048576 = 1 MiB). |