suggest_remediation
Scans a project and its Git history for exposed secrets, then returns an ordered remediation checklist: rotate credentials, check for misuse, purge from the working tree, rewrite history, and prevent recurrence.
Instructions
Scan a project (working tree and git history, if it is a repository) and return an ORDERED remediation checklist: rotate first, look for misuse, remove from the tree, optionally rewrite history, prevent recurrence. History rewriting is given as git filter-repo and BFG command text for you to run; this server never executes them and never prints the secret values they need (you fill in a replacements file yourself).
Args: path: project directory. max_commits: history depth to scan if the directory is 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": "suggest_remediation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| max_commits | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |