secret-scanner
v1.1.1Scans files for leaked secrets and API keys
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
scan_text
Scan a text string or code snippet for exposed secrets and API keys
| Parameter | Type | Description |
|---|---|---|
content * | string | The text content to scan |
entropy | boolean | Also flag random-looking values assigned to secret-like names (default true) |
label | string | Optional label shown in findings (e.g. filename) |
scan_file
Scan a single file for exposed secrets and API keys
| Parameter | Type | Description |
|---|---|---|
path * | string | Absolute or relative path to the file to scan |
entropy | boolean | Also flag random-looking values assigned to secret-like names (default true) |
scan_directory
Recursively scan a directory for exposed secrets and API keys. Automatically skips node_modules, .git, dist, and binary files.
| Parameter | Type | Description |
|---|---|---|
path * | string | Absolute or relative path to the directory to scan |
baseline | string | Path to a baseline file: only findings not in it are reported |
entropy | boolean | Also flag random-looking values assigned to secret-like names (default true) |
exclude | array | Skip files/dirs whose path contains one of these strings |
include | array | Only scan files whose path contains one of these strings (e.g. [".env", ".ts"]) |
maxFiles | integer | Maximum number of files to scan (default: 5000) |
scan_git
Scan a git repository for secrets in what git says was added: the staged changes (before a commit) or every commit's added lines (history). History finds secrets that were deleted from the files but are still in the repository.
| Parameter | Type | Description |
|---|---|---|
mode * | string | staged: lines added in the index; history: lines added by each commit |
path * | string | A directory inside the git repository |
baseline | string | Path to a baseline file: only findings not in it are reported |
entropy | boolean | Also flag random-looking values assigned to secret-like names (default true) |
maxCommits | integer | History only: stop after this many commits |
range | string | History only: a revision range such as main..HEAD (default: all refs) |
scan_agent_history
Scan the transcripts coding agents keep on this machine (Claude Code, Codex, Gemini CLI, Continue) for secrets that were pasted into a chat or printed by a command. Such a secret was already sent to the model provider and should be rotated. Each secret is reported once with how often it appears.
| Parameter | Type | Description |
|---|---|---|
entropy | boolean | Also flag random-looking values assigned to secret-like names (default false here: transcripts hold a lot of code) |
list_patterns
List all secret patterns that the scanner can detect