Check the project
yof_checkScan a project or subfolder for leaked API keys and made-up, lookalike, or vulnerable packages before finishing work, with optional offline mode and redacted findings.
Instructions
Scan the project folder on this computer (or one folder inside it) for leaked API keys and for made-up, brand-new, lookalike or vulnerable packages. Use it for a full pass, for example before you say the work is done; after small edits use yof_check_diff, which reads only the changed lines. Files are read locally and never uploaded; only package names and versions go to npm, PyPI and OSV, unless offline is true. It follows .yof.yml and .gitignore, reads at most 20,000 files (stopped_early says so), looks up at most 500 dependencies and gives up after 90 seconds. Returns counts, must_fix_before_done and up to 100 findings with secrets redacted; an empty list means nothing was found within those limits.
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": "yof_check"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | A folder inside the project, relative to the project root, for example "src". Default: the whole project. Paths outside the project are refused. | |
| offline | No | true skips the npm, PyPI and OSV lookups, so nothing leaves this computer; package problems are then not reported. Default false. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| more | No | How many findings were left out of the list, when there are more than 100. | |
| next | Yes | What to do next. | |
| counts | Yes | How many findings of each urgency (all of them, not only the listed ones). | |
| profile | Yes | The .yof.yml profile that decided which urgencies are shown. | |
| project | Yes | The folder scanned, relative to the project root. | |
| findings | Yes | At most 100 findings. kind is key or package; value is a prefix plus REDACTED. | |
| files_scanned | Yes | How many files were read. | |
| stopped_early | Yes | true when the file limit was reached before every file was read. | |
| package_lookups | Yes | "off", or which registries were asked (names and versions only). | |
| dependencies_checked | Yes | How many dependencies were looked up. | |
| must_fix_before_done | Yes | true when at least one fix_now finding is open. |