check_client_secrets
Detect secrets exposed in client-side code by scanning projects for dangerous NEXT_PUBLIC_ env vars, hardcoded API keys, and PEM private keys, returning findings with severity and fixes.
Instructions
Detect secrets exposed in client-side code. Checks for dangerous NEXT_PUBLIC_ env vars (service_role keys, database URLs, Stripe secret keys), hardcoded API keys (Supabase, Stripe, AWS, OpenAI, GitHub), and PEM private keys in browser-accessible code. Returns findings with severity, masked evidence, and fix instructions.
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_client_secrets"
}
}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. |