scan_agent_configs
Audit AI agent and MCP client config files for hardcoded secrets, scanning project and user-level settings and flagging git-tracked files so leaks are caught before commit.
Instructions
Audit AI agent and MCP client configuration files for hardcoded secrets.
Checks the project's .mcp.json, .claude/settings*.json, .cursor/mcp.json, .vscode/mcp.json, .gemini/, .codex/ and other client configs, plus agent instruction files (CLAUDE.md, AGENTS.md, GEMINI.md, .cursorrules...), and the user-level configs of Claude Code, Claude Desktop, Cursor, VS Code, Cline, Windsurf, Gemini CLI, Codex, Kiro, Continue, Zed and others. Project files report whether git tracks them: a key in a tracked .mcp.json ships with the repository.
Args: project_path: Absolute path to the project to audit (optional). include_user: Also scan configs in the user's home folder (default true). include_transcripts: Also scan the newest Claude Code / Codex session transcripts (default false; slower). max_findings: List at most this many findings, most severe first.
Returns: The standard redacted report plus "agent_files": [{"client", "scope", "path", "findings", "tracked_by_git", "hint"}] for every file found.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| include_user | No | ||
| max_findings | No | ||
| project_path | No | ||
| include_transcripts | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| clean | Yes | ||
| summary | Yes | ||
| findings | Yes | ||
| baselined | No | ||
| top_files | No | ||
| truncated | No | ||
| suppressed | No | ||
| agent_files | Yes | ||
| files_scanned | Yes | ||
| total_findings | No | ||
| counts_by_pattern | No | ||
| counts_by_severity | No |