check_env_for_secrets
Scans a local env file (default: .env) for exposed API keys, tokens, private keys, and passwords, returning only a sanitized report with line numbers, secret types, and variable names.
Instructions
Check a local env file (default: .env) for exposed secrets such as API keys, tokens, private keys and passwords. Returns only a sanitized report (line numbers, secret types, variable names). Secret values are NEVER returned, so it is safe to call. Do not try to read the env file directly.
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": "check_env_for_secrets"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Env file path relative to the project root. Defaults to ".env". |