hardcoded_secretsrc/client.pyMove the credential to an environment variable before completing this change.
MCP privacy preflight
agentleak mcp exposes four local tools for code scanning, trace checks, redaction and change-aware preflight. Before an agent says the work is done, it can see what is new, what it fixed and what remains open.
$ privacy_preflight workspacehardcoded_secretsrc/client.pyMove the credential to an environment variable before completing this change.
The MCP surface runs the same analyzer as the CLI, directly inside Claude Code, Cursor or any compatible client.
Preflight compares the current scan with the previous check and separates new, fixed and still-open findings instead of returning an isolated score.
History stays in the project as capped, redacted JSONL. Without a project key, no result leaves the machine.
The mental model
A static score does not tell an agent whether its latest edit improved the system. Preflight makes privacy part of the completion loop: scan, identify the new disclosure, change the code, and verify that the same finding is gone.
The agent finishes when the code compiles.
The agent finishes when its change introduces no new privacy finding.
How it works
Install agentleak[mcp] in the same local environment your coding client can launch.
Add agentleak mcp to the client MCP configuration. It communicates over standard input and output.
The agent scans the workspace and receives new, fixed and still-open findings with concrete remediation.
Re-run the same tool before completion. A project key can optionally sync the result to a shared workspace.
Register the local MCP server
{
"mcpServers": {
"agentleak": {
"command": "agentleak",
"args": ["mcp"]
}
}
}FAQ
Ready when you are
Create a local workspace, run a bundled scenario, then wire AgentLeak into CI or let your agent onboard itself.