check_env_exposure
Scans a project's .env files for exposed secrets, verifies .gitignore excludes them, and checks for .env.example, returning severity-rated findings with fix snippets.
Instructions
Check environment variable security in a project. Scans .env files for exposed secrets (Supabase service_role keys, Stripe secret keys, AWS credentials, database URLs, etc.), verifies .gitignore excludes .env files, and checks for .env.example. Returns findings with severity (critical/high/medium/low), file paths, masked evidence, and fix code snippets.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"project_path": "<project_path>"
},
"name": "check_env_exposure"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_path | Yes | Absolute path to the project directory to audit. Must be a directory you own or manage. |