check_gitignore
Detect tracked or unignored secret-bearing files (like .env, *.pem, id_rsa) in a git repo so you can fix ignore rules before committing credentials.
Instructions
Check whether secret-bearing files (.env, *.pem, *.key, id_rsa, credentials.json, *.tfvars, ...) are ignored and untracked in a git repository.
Reports: secret-looking files that ARE tracked (an ignore rule no longer helps; includes the
git rm --cached command as text), untracked-but-not-ignored ones that the next git add . would commit,
common secret file names that no ignore rule covers yet, and tracked files that match .gitignore anyway.
Looks at file names only; use scan_tree to look inside files.
Args: path: a directory inside a git repository.
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": {
"path": "<path>"
},
"name": "check_gitignore"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |