{"at":"2026-11-23T01:44:01.019Z","dir":"sent","era":"server_discover","message":{"id":1,"jsonrpc":"2.0","method":"server/discover","params":{"_meta":{"io.modelcontextprotocol/clientCapabilities":{},"io.modelcontextprotocol/clientInfo":{"name":"didrun-lab","version":"0.1.0"},"io.modelcontextprotocol/protocolVersion":"2026-07-28"}}}}
{"at":"2026-11-23T01:44:01.894Z","dir":"received","era":"server_discover","message":{"id":1,"jsonrpc":"2.0","result":{"_meta":{"io.modelcontextprotocol/serverInfo":{"name":"mcp-secret-sentinel","version":"0.3.0"}},"cacheScope":"private","capabilities":{"prompts":{"listChanged":true},"resources":{"listChanged":true,"subscribe":true},"tools":{"listChanged":true}},"instructions":"Secret Sentinel scans code for exposed credentials and never returns a secret in full: every finding is redacted. Run scan_git_staged before every commit and scan_git_range before every push, and scan any snippet with scan_text before writing it to a file. Use redact_text before quoting logs, configs or command output that may hold credentials, and scan_agent_configs to audit MCP client configs for pasted API keys. When a finding is reported, remove the literal and load it from the environment instead, and tell the user to rotate the credential if it was ever committed or shared.","resultType":"complete","supportedVersions":["2026-07-28"],"ttlMs":0}}}
{"at":"2026-11-23T01:44:01.894Z","dir":"sent","era":"server_discover","message":{"id":2,"jsonrpc":"2.0","method":"tools/list","params":{"_meta":{"io.modelcontextprotocol/clientCapabilities":{},"io.modelcontextprotocol/protocolVersion":"2026-07-28"}}}}
{"at":"2026-11-23T01:44:01.896Z","dir":"received","era":"server_discover","message":{"id":2,"jsonrpc":"2.0","result":{"_meta":{"io.modelcontextprotocol/serverInfo":{"name":"mcp-secret-sentinel","version":"0.3.0"}},"cacheScope":"private","resultType":"complete","tools":[{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true},"description":"Scan a snippet of text or code for exposed secrets.\n\n64 detectors: GitHub/GitLab/npm/PyPI tokens; OpenAI, Anthropic, xAI,\nDeepSeek, Perplexity, OpenRouter, Groq, NVIDIA, Hugging Face, Replicate,\nTogether, Cerebras, LangSmith, Langfuse, Pinecone, Firecrawl and Tavily\nkeys; AWS (incl. Bedrock), Azure, Google, DigitalOcean, Cloudflare,\nVercel, Supabase, Neon, PlanetScale, Fly.io, Databricks, Vault and\nDoppler credentials; Stripe, Square, Shopify, SendGrid, Resend,\nMailchimp, Twilio, Slack, Discord, Telegram, Linear, Notion, Atlassian,\nPostman, Sentry, Grafana and PostHog tokens; JWTs, private and age keys,\ncredentialed connection strings and URLs, generic password/secret/token\nassignments, plus high-entropy strings. Placeholders ($VAR, ${VAR},\n{{ templates }}, changeme, masked values...) are skipped, and a line\ncarrying \"secret-sentinel: ignore\", \"pragma: allowlist secret\" or\n\"gitleaks:allow\" is counted in \"suppressed\" instead of reported.\n\nArgs:\n    text: The raw text to scan (code, config, diff output, logs...).\n    source_name: Label used in each finding's \"file\" field.\n    max_findings: List at most this many findings, most severe first\n        (default 200, 0 = no limit). When capped, the result adds\n        truncated, total_findings, counts_by_severity, counts_by_pattern\n        and top_files.\n\nReturns:\n    {\"clean\", \"findings\": [{\"file\", \"line\", \"pattern\", \"severity\",\n    \"redacted\", \"advice\"}], \"files_scanned\", \"summary\"}. Secret values\n    are ALWAYS redacted (at most 4 chars, never more than a quarter of\n    the value, + length); the full value is never included.\n","inputSchema":{"properties":{"max_findings":{"default":200,"title":"Max Findings","type":"integer"},"source_name":{"default":"input","title":"Source Name","type":"string"},"text":{"title":"Text","type":"string"}},"required":["text"],"title":"scan_textArguments","type":"object"},"name":"scan_text","outputSchema":{"$defs":{"FileCount":{"properties":{"file":{"title":"File","type":"string"},"findings":{"title":"Findings","type":"integer"}},"required":["file","findings"],"title":"FileCount","type":"object"},"Finding":{"properties":{"advice":{"title":"Advice","type":"string"},"commit":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Commit"},"file":{"title":"File","type":"string"},"line":{"title":"Line","type":"integer"},"pattern":{"title":"Pattern","type":"string"},"redacted":{"title":"Redacted","type":"string"},"severity":{"enum":["critical","high","medium"],"title":"Severity","type":"string"}},"required":["file","line","pattern","severity","redacted","advice"],"title":"Finding","type":"object"}},"properties":{"baselined":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Baselined"},"clean":{"title":"Clean","type":"boolean"},"counts_by_pattern":{"anyOf":[{"additionalProperties":{"type":"integer"},"type":"object"},{"type":"null"}],"title":"Counts By Pattern"},"counts_by_severity":{"anyOf":[{"additionalProperties":{"type":"integer"},"type":"object"},{"type":"null"}],"title":"Counts By Severity"},"files_scanned":{"title":"Files Scanned","type":"integer"},"findings":{"items":{"$ref":"#/$defs/Finding"},"title":"Findings","type":"array"},"summary":{"title":"Summary","type":"string"},"suppressed":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Suppressed"},"top_files":{"anyOf":[{"items":{"$ref":"#/$defs/FileCount"},"type":"array"},{"type":"null"}],"title":"Top Files"},"total_findings":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Total Findings"},"truncated":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Truncated"}},"required":["clean","findings","files_scanned","summary"],"title":"ScanReport","type":"object"}},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true},"description":"Return the text with every detected secret replaced by [REDACTED:<detector>].\n\nUse it before quoting logs, stack traces, configs, command output or\ndiffs that may contain credentials, in the conversation, an issue, a\ncommit message or a document. Everything that is not a secret is kept\nexactly as it was.\n\nArgs:\n    text: The text to clean.\n\nReturns:\n    {\"text\": the redacted text, \"redactions\": how many secrets were\n    replaced, \"by_pattern\": {detector name: count}}\n","inputSchema":{"properties":{"text":{"title":"Text","type":"string"}},"required":["text"],"title":"redact_textArguments","type":"object"},"name":"redact_text","outputSchema":{"properties":{"by_pattern":{"additionalProperties":{"type":"integer"},"title":"By Pattern","type":"object"},"redactions":{"title":"Redactions","type":"integer"},"text":{"title":"Text","type":"string"}},"required":["text","redactions","by_pattern"],"title":"Redaction","type":"object"}},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true},"description":"Scan a single file for exposed secrets.\n\nUTF-8, UTF-16 and UTF-32 text is decoded by byte-order mark. Binary files\n(null-byte heuristic) and files larger than 5 MB are skipped and reported\nas such in the summary. The project's .secret-sentinel.toml and baseline\napply.\n\nArgs:\n    path: Absolute path to the file to scan.\n    max_findings: List at most this many findings, most severe first\n        (default 200, 0 = no limit).\n\nReturns:\n    The standard redacted findings report (see scan_text). Returns an\n    error result if the file does not exist.\n","inputSchema":{"properties":{"max_findings":{"default":200,"title":"Max Findings","type":"integer"},"path":{"title":"Path","type":"string"}},"required":["path"],"title":"scan_fileArguments","type":"object"},"name":"scan_file","outputSchema":{"$defs":{"FileCount":{"properties":{"file":{"title":"File","type":"string"},"findings":{"title":"Findings","type":"integer"}},"required":["file","findings"],"title":"FileCount","type":"object"},"Finding":{"properties":{"advice":{"title":"Advice","type":"string"},"commit":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Commit"},"file":{"title":"File","type":"string"},"line":{"title":"Line","type":"integer"},"pattern":{"title":"Pattern","type":"string"},"redacted":{"title":"Redacted","type":"string"},"severity":{"enum":["critical","high","medium"],"title":"Severity","type":"string"}},"required":["file","line","pattern","severity","redacted","advice"],"title":"Finding","type":"object"}},"properties":{"baselined":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Baselined"},"clean":{"title":"Clean","type":"boolean"},"counts_by_pattern":{"anyOf":[{"additionalProperties":{"type":"integer"},"type":"object"},{"type":"null"}],"title":"Counts By Pattern"},"counts_by_severity":{"anyOf":[{"additionalProperties":{"type":"integer"},"type":"object"},{"type":"null"}],"title":"Counts By Severity"},"files_scanned":{"title":"Files Scanned","type":"integer"},"findings":{"items":{"$ref":"#/$defs/Finding"},"title":"Findings","type":"array"},"summary":{"title":"Summary","type":"string"},"suppressed":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Suppressed"},"top_files":{"anyOf":[{"items":{"$ref":"#/$defs/FileCount"},"type":"array"},{"type":"null"}],"title":"Top Files"},"total_findings":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Total Findings"},"truncated":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Truncated"}},"required":["clean","findings","files_scanned","summary"],"title":"ScanReport","type":"object"}},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true},"description":"Recursively scan a directory tree for exposed secrets.\n\nInside a git repository the file list comes from git (tracked files plus\nuntracked files no .gitignore excludes), so every ignore rule is\nhonoured. Always skips .git, node_modules, virtualenvs, caches, dist,\nbuild, minified bundles, lockfiles, binaries, files over 5 MB and the\npaths the project's .secret-sentinel.toml excludes.\n\nArgs:\n    path: Absolute path to the directory to scan.\n    max_files: Stop after scanning this many files (default 500).\n    max_findings: List at most this many findings, most severe first\n        (default 200, 0 = no limit).\n\nReturns:\n    The standard redacted findings report; finding paths are relative to\n    the scanned root, using forward slashes.\n","inputSchema":{"properties":{"max_files":{"default":500,"title":"Max Files","type":"integer"},"max_findings":{"default":200,"title":"Max Findings","type":"integer"},"path":{"title":"Path","type":"string"}},"required":["path"],"title":"scan_directoryArguments","type":"object"},"name":"scan_directory","outputSchema":{"$defs":{"FileCount":{"properties":{"file":{"title":"File","type":"string"},"findings":{"title":"Findings","type":"integer"}},"required":["file","findings"],"title":"FileCount","type":"object"},"Finding":{"properties":{"advice":{"title":"Advice","type":"string"},"commit":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Commit"},"file":{"title":"File","type":"string"},"line":{"title":"Line","type":"integer"},"pattern":{"title":"Pattern","type":"string"},"redacted":{"title":"Redacted","type":"string"},"severity":{"enum":["critical","high","medium"],"title":"Severity","type":"string"}},"required":["file","line","pattern","severity","redacted","advice"],"title":"Finding","type":"object"}},"properties":{"baselined":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Baselined"},"clean":{"title":"Clean","type":"boolean"},"counts_by_pattern":{"anyOf":[{"additionalProperties":{"type":"integer"},"type":"object"},{"type":"null"}],"title":"Counts By Pattern"},"counts_by_severity":{"anyOf":[{"additionalProperties":{"type":"integer"},"type":"object"},{"type":"null"}],"title":"Counts By Severity"},"files_scanned":{"title":"Files Scanned","type":"integer"},"findings":{"items":{"$ref":"#/$defs/Finding"},"title":"Findings","type":"array"},"summary":{"title":"Summary","type":"string"},"suppressed":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Suppressed"},"top_files":{"anyOf":[{"items":{"$ref":"#/$defs/FileCount"},"type":"array"},{"type":"null"}],"title":"Top Files"},"total_findings":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Total Findings"},"truncated":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Truncated"}},"required":["clean","findings","files_scanned","summary"],"title":"ScanReport","type":"object"}},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true},"description":"Scan ONLY the lines currently staged for commit (git diff --cached).\n\nThis is the pre-commit checkpoint: it inspects exactly the content the\nnext commit would publish, and reports the file and post-commit line\nnumber of every added secret. Local diff settings (external diff tools,\ntextconv filters, prefixes, path quoting) are overridden, and git runs\nno configured programs.\n\nArgs:\n    repo_path: Absolute path to a git repository (or any path inside one).\n    max_findings: List at most this many findings, most severe first\n        (default 200, 0 = no limit).\n\nReturns:\n    The standard redacted findings report. If nothing is staged the result\n    is clean with an explanatory summary.\n","inputSchema":{"properties":{"max_findings":{"default":200,"title":"Max Findings","type":"integer"},"repo_path":{"title":"Repo Path","type":"string"}},"required":["repo_path"],"title":"scan_git_stagedArguments","type":"object"},"name":"scan_git_staged","outputSchema":{"$defs":{"FileCount":{"properties":{"file":{"title":"File","type":"string"},"findings":{"title":"Findings","type":"integer"}},"required":["file","findings"],"title":"FileCount","type":"object"},"Finding":{"properties":{"advice":{"title":"Advice","type":"string"},"commit":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Commit"},"file":{"title":"File","type":"string"},"line":{"title":"Line","type":"integer"},"pattern":{"title":"Pattern","type":"string"},"redacted":{"title":"Redacted","type":"string"},"severity":{"enum":["critical","high","medium"],"title":"Severity","type":"string"}},"required":["file","line","pattern","severity","redacted","advice"],"title":"Finding","type":"object"}},"properties":{"baselined":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Baselined"},"clean":{"title":"Clean","type":"boolean"},"counts_by_pattern":{"anyOf":[{"additionalProperties":{"type":"integer"},"type":"object"},{"type":"null"}],"title":"Counts By Pattern"},"counts_by_severity":{"anyOf":[{"additionalProperties":{"type":"integer"},"type":"object"},{"type":"null"}],"title":"Counts By Severity"},"files_scanned":{"title":"Files Scanned","type":"integer"},"findings":{"items":{"$ref":"#/$defs/Finding"},"title":"Findings","type":"array"},"summary":{"title":"Summary","type":"string"},"suppressed":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Suppressed"},"top_files":{"anyOf":[{"items":{"$ref":"#/$defs/FileCount"},"type":"array"},{"type":"null"}],"title":"Top Files"},"total_findings":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Total Findings"},"truncated":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Truncated"}},"required":["clean","findings","files_scanned","summary"],"title":"ScanReport","type":"object"}},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true},"description":"Scan the lines added by the most recent commits (git log -p).\n\nEach finding is tagged with the short hash of the commit that introduced\nit. A secret that was later deleted is still reported — history retains\nit, so the credential must be rotated regardless.\n\nArgs:\n    repo_path: Absolute path to a git repository (or any path inside one).\n    max_commits: How many commits back to inspect (default 50).\n    all_branches: Walk every branch, tag and the stash instead of only\n        the history of HEAD (default false).\n    max_findings: List at most this many findings, most severe first\n        (default 200, 0 = no limit).\n\nReturns:\n    The standard redacted findings report, with a \"commit\" field on each\n    finding.\n","inputSchema":{"properties":{"all_branches":{"default":false,"title":"All Branches","type":"boolean"},"max_commits":{"default":50,"title":"Max Commits","type":"integer"},"max_findings":{"default":200,"title":"Max Findings","type":"integer"},"repo_path":{"title":"Repo Path","type":"string"}},"required":["repo_path"],"title":"scan_git_historyArguments","type":"object"},"name":"scan_git_history","outputSchema":{"$defs":{"FileCount":{"properties":{"file":{"title":"File","type":"string"},"findings":{"title":"Findings","type":"integer"}},"required":["file","findings"],"title":"FileCount","type":"object"},"Finding":{"properties":{"advice":{"title":"Advice","type":"string"},"commit":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Commit"},"file":{"title":"File","type":"string"},"line":{"title":"Line","type":"integer"},"pattern":{"title":"Pattern","type":"string"},"redacted":{"title":"Redacted","type":"string"},"severity":{"enum":["critical","high","medium"],"title":"Severity","type":"string"}},"required":["file","line","pattern","severity","redacted","advice"],"title":"Finding","type":"object"}},"properties":{"baselined":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Baselined"},"clean":{"title":"Clean","type":"boolean"},"counts_by_pattern":{"anyOf":[{"additionalProperties":{"type":"integer"},"type":"object"},{"type":"null"}],"title":"Counts By Pattern"},"counts_by_severity":{"anyOf":[{"additionalProperties":{"type":"integer"},"type":"object"},{"type":"null"}],"title":"Counts By Severity"},"files_scanned":{"title":"Files Scanned","type":"integer"},"findings":{"items":{"$ref":"#/$defs/Finding"},"title":"Findings","type":"array"},"summary":{"title":"Summary","type":"string"},"suppressed":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Suppressed"},"top_files":{"anyOf":[{"items":{"$ref":"#/$defs/FileCount"},"type":"array"},{"type":"null"}],"title":"Top Files"},"total_findings":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Total Findings"},"truncated":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Truncated"}},"required":["clean","findings","files_scanned","summary"],"title":"ScanReport","type":"object"}},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true},"description":"Scan the commits in base..head: by default, what `git push` would send.\n\nRun this before pushing. With the defaults it scans every commit on the\ncurrent branch that its upstream does not have yet. If the branch has no\nupstream, the error says so: pass the branch you will push to as base\n(for example \"origin/main\").\n\nArgs:\n    repo_path: Absolute path to a git repository (or any path inside one).\n    base: Commits reachable from here are excluded (default \"@{upstream}\").\n    head: Last commit to include (default \"HEAD\").\n    max_commits: Scan at most this many of the newest commits in the range.\n    max_findings: List at most this many findings, most severe first\n        (default 200, 0 = no limit).\n\nReturns:\n    The standard redacted findings report with a \"commit\" field on each\n    finding, plus \"commits_scanned\" and \"range\".\n","inputSchema":{"properties":{"base":{"default":"@{upstream}","title":"Base","type":"string"},"head":{"default":"HEAD","title":"Head","type":"string"},"max_commits":{"default":200,"title":"Max Commits","type":"integer"},"max_findings":{"default":200,"title":"Max Findings","type":"integer"},"repo_path":{"title":"Repo Path","type":"string"}},"required":["repo_path"],"title":"scan_git_rangeArguments","type":"object"},"name":"scan_git_range","outputSchema":{"$defs":{"FileCount":{"properties":{"file":{"title":"File","type":"string"},"findings":{"title":"Findings","type":"integer"}},"required":["file","findings"],"title":"FileCount","type":"object"},"Finding":{"properties":{"advice":{"title":"Advice","type":"string"},"commit":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Commit"},"file":{"title":"File","type":"string"},"line":{"title":"Line","type":"integer"},"pattern":{"title":"Pattern","type":"string"},"redacted":{"title":"Redacted","type":"string"},"severity":{"enum":["critical","high","medium"],"title":"Severity","type":"string"}},"required":["file","line","pattern","severity","redacted","advice"],"title":"Finding","type":"object"}},"properties":{"baselined":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Baselined"},"clean":{"title":"Clean","type":"boolean"},"commits_scanned":{"title":"Commits Scanned","type":"integer"},"counts_by_pattern":{"anyOf":[{"additionalProperties":{"type":"integer"},"type":"object"},{"type":"null"}],"title":"Counts By Pattern"},"counts_by_severity":{"anyOf":[{"additionalProperties":{"type":"integer"},"type":"object"},{"type":"null"}],"title":"Counts By Severity"},"files_scanned":{"title":"Files Scanned","type":"integer"},"findings":{"items":{"$ref":"#/$defs/Finding"},"title":"Findings","type":"array"},"range":{"title":"Range","type":"string"},"summary":{"title":"Summary","type":"string"},"suppressed":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Suppressed"},"top_files":{"anyOf":[{"items":{"$ref":"#/$defs/FileCount"},"type":"array"},{"type":"null"}],"title":"Top Files"},"total_findings":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Total Findings"},"truncated":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Truncated"}},"required":["clean","findings","files_scanned","summary","commits_scanned","range"],"title":"RangeReport","type":"object"}},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true},"description":"Audit AI agent and MCP client configuration files for hardcoded secrets.\n\nChecks the project's .mcp.json, .claude/settings*.json, .cursor/mcp.json,\n.vscode/mcp.json, .gemini/, .codex/ and other client configs, plus agent\ninstruction files (CLAUDE.md, AGENTS.md, GEMINI.md, .cursorrules...),\nand the user-level configs of Claude Code, Claude Desktop, Cursor,\nVS Code, Cline, Windsurf, Gemini CLI, Codex, Kiro, Continue, Zed and\nothers. Project files report whether git tracks them: a key in a\ntracked .mcp.json ships with the repository.\n\nArgs:\n    project_path: Absolute path to the project to audit (optional).\n    include_user: Also scan configs in the user's home folder (default true).\n    include_transcripts: Also scan the newest Claude Code / Codex session\n        transcripts (default false; slower).\n    max_findings: List at most this many findings, most severe first.\n\nReturns:\n    The standard redacted report plus \"agent_files\": [{\"client\", \"scope\",\n    \"path\", \"findings\", \"tracked_by_git\", \"hint\"}] for every file found.\n","inputSchema":{"properties":{"include_transcripts":{"default":false,"title":"Include Transcripts","type":"boolean"},"include_user":{"default":true,"title":"Include User","type":"boolean"},"max_findings":{"default":200,"title":"Max Findings","type":"integer"},"project_path":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Project Path"}},"title":"scan_agent_configsArguments","type":"object"},"name":"scan_agent_configs","outputSchema":{"$defs":{"AgentFile":{"properties":{"client":{"title":"Client","type":"string"},"findings":{"title":"Findings","type":"integer"},"hint":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Hint"},"path":{"title":"Path","type":"string"},"scope":{"enum":["project","user","transcript"],"title":"Scope","type":"string"},"tracked_by_git":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Tracked By Git"}},"required":["client","scope","path","findings"],"title":"AgentFile","type":"object"},"FileCount":{"properties":{"file":{"title":"File","type":"string"},"findings":{"title":"Findings","type":"integer"}},"required":["file","findings"],"title":"FileCount","type":"object"},"Finding":{"properties":{"advice":{"title":"Advice","type":"string"},"commit":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Commit"},"file":{"title":"File","type":"string"},"line":{"title":"Line","type":"integer"},"pattern":{"title":"Pattern","type":"string"},"redacted":{"title":"Redacted","type":"string"},"severity":{"enum":["critical","high","medium"],"title":"Severity","type":"string"}},"required":["file","line","pattern","severity","redacted","advice"],"title":"Finding","type":"object"}},"properties":{"agent_files":{"items":{"$ref":"#/$defs/AgentFile"},"title":"Agent Files","type":"array"},"baselined":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Baselined"},"clean":{"title":"Clean","type":"boolean"},"counts_by_pattern":{"anyOf":[{"additionalProperties":{"type":"integer"},"type":"object"},{"type":"null"}],"title":"Counts By Pattern"},"counts_by_severity":{"anyOf":[{"additionalProperties":{"type":"integer"},"type":"object"},{"type":"null"}],"title":"Counts By Severity"},"files_scanned":{"title":"Files Scanned","type":"integer"},"findings":{"items":{"$ref":"#/$defs/Finding"},"title":"Findings","type":"array"},"summary":{"title":"Summary","type":"string"},"suppressed":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Suppressed"},"top_files":{"anyOf":[{"items":{"$ref":"#/$defs/FileCount"},"type":"array"},{"type":"null"}],"title":"Top Files"},"total_findings":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Total Findings"},"truncated":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Truncated"}},"required":["clean","findings","files_scanned","summary","agent_files"],"title":"AgentReport","type":"object"}},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true},"description":"List the active secret detectors and allowlist rules.\n\nReturns:\n    {\"count\": int,\n     \"patterns\": [{\"name\", \"severity\", \"advice\"}],\n     \"entropy_detector\": {...threshold and advice...},\n     \"allowlist_rules\": [{\"name\", \"description\"}]}\n    Raw regexes are intentionally not exposed.\n","inputSchema":{"properties":{},"title":"list_patternsArguments","type":"object"},"name":"list_patterns"}],"ttlMs":0}}}
{"at":"2026-11-23T01:44:02.047Z","dir":"sent","era":"initialize","message":{"id":1,"jsonrpc":"2.0","method":"initialize","params":{"capabilities":{},"clientInfo":{"name":"didrun-lab","version":"0.1.0"},"protocolVersion":"2025-11-25"}}}
{"at":"2026-11-23T01:44:02.961Z","dir":"received","era":"initialize","message":{"id":1,"jsonrpc":"2.0","result":{"capabilities":{"prompts":{"listChanged":false},"resources":{"listChanged":false,"subscribe":false},"tools":{"listChanged":false}},"instructions":"Secret Sentinel scans code for exposed credentials and never returns a secret in full: every finding is redacted. Run scan_git_staged before every commit and scan_git_range before every push, and scan any snippet with scan_text before writing it to a file. Use redact_text before quoting logs, configs or command output that may hold credentials, and scan_agent_configs to audit MCP client configs for pasted API keys. When a finding is reported, remove the literal and load it from the environment instead, and tell the user to rotate the credential if it was ever committed or shared.","protocolVersion":"2025-11-25","serverInfo":{"name":"mcp-secret-sentinel","version":"0.3.0"}}}}
{"at":"2026-11-23T01:44:02.961Z","dir":"sent","era":"initialize","message":{"jsonrpc":"2.0","method":"notifications/initialized"}}
{"at":"2026-11-23T01:44:02.961Z","dir":"sent","era":"initialize","message":{"id":2,"jsonrpc":"2.0","method":"tools/list","params":{}}}
{"at":"2026-11-23T01:44:02.963Z","dir":"received","era":"initialize","message":{"id":2,"jsonrpc":"2.0","result":{"tools":[{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true},"description":"Scan a snippet of text or code for exposed secrets.\n\n64 detectors: GitHub/GitLab/npm/PyPI tokens; OpenAI, Anthropic, xAI,\nDeepSeek, Perplexity, OpenRouter, Groq, NVIDIA, Hugging Face, Replicate,\nTogether, Cerebras, LangSmith, Langfuse, Pinecone, Firecrawl and Tavily\nkeys; AWS (incl. Bedrock), Azure, Google, DigitalOcean, Cloudflare,\nVercel, Supabase, Neon, PlanetScale, Fly.io, Databricks, Vault and\nDoppler credentials; Stripe, Square, Shopify, SendGrid, Resend,\nMailchimp, Twilio, Slack, Discord, Telegram, Linear, Notion, Atlassian,\nPostman, Sentry, Grafana and PostHog tokens; JWTs, private and age keys,\ncredentialed connection strings and URLs, generic password/secret/token\nassignments, plus high-entropy strings. Placeholders ($VAR, ${VAR},\n{{ templates }}, changeme, masked values...) are skipped, and a line\ncarrying \"secret-sentinel: ignore\", \"pragma: allowlist secret\" or\n\"gitleaks:allow\" is counted in \"suppressed\" instead of reported.\n\nArgs:\n    text: The raw text to scan (code, config, diff output, logs...).\n    source_name: Label used in each finding's \"file\" field.\n    max_findings: List at most this many findings, most severe first\n        (default 200, 0 = no limit). When capped, the result adds\n        truncated, total_findings, counts_by_severity, counts_by_pattern\n        and top_files.\n\nReturns:\n    {\"clean\", \"findings\": [{\"file\", \"line\", \"pattern\", \"severity\",\n    \"redacted\", \"advice\"}], \"files_scanned\", \"summary\"}. Secret values\n    are ALWAYS redacted (at most 4 chars, never more than a quarter of\n    the value, + length); the full value is never included.\n","inputSchema":{"properties":{"max_findings":{"default":200,"title":"Max Findings","type":"integer"},"source_name":{"default":"input","title":"Source Name","type":"string"},"text":{"title":"Text","type":"string"}},"required":["text"],"title":"scan_textArguments","type":"object"},"name":"scan_text","outputSchema":{"$defs":{"FileCount":{"properties":{"file":{"title":"File","type":"string"},"findings":{"title":"Findings","type":"integer"}},"required":["file","findings"],"title":"FileCount","type":"object"},"Finding":{"properties":{"advice":{"title":"Advice","type":"string"},"commit":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Commit"},"file":{"title":"File","type":"string"},"line":{"title":"Line","type":"integer"},"pattern":{"title":"Pattern","type":"string"},"redacted":{"title":"Redacted","type":"string"},"severity":{"enum":["critical","high","medium"],"title":"Severity","type":"string"}},"required":["file","line","pattern","severity","redacted","advice"],"title":"Finding","type":"object"}},"properties":{"baselined":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Baselined"},"clean":{"title":"Clean","type":"boolean"},"counts_by_pattern":{"anyOf":[{"additionalProperties":{"type":"integer"},"type":"object"},{"type":"null"}],"title":"Counts By Pattern"},"counts_by_severity":{"anyOf":[{"additionalProperties":{"type":"integer"},"type":"object"},{"type":"null"}],"title":"Counts By Severity"},"files_scanned":{"title":"Files Scanned","type":"integer"},"findings":{"items":{"$ref":"#/$defs/Finding"},"title":"Findings","type":"array"},"summary":{"title":"Summary","type":"string"},"suppressed":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Suppressed"},"top_files":{"anyOf":[{"items":{"$ref":"#/$defs/FileCount"},"type":"array"},{"type":"null"}],"title":"Top Files"},"total_findings":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Total Findings"},"truncated":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Truncated"}},"required":["clean","findings","files_scanned","summary"],"title":"ScanReport","type":"object"}},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true},"description":"Return the text with every detected secret replaced by [REDACTED:<detector>].\n\nUse it before quoting logs, stack traces, configs, command output or\ndiffs that may contain credentials, in the conversation, an issue, a\ncommit message or a document. Everything that is not a secret is kept\nexactly as it was.\n\nArgs:\n    text: The text to clean.\n\nReturns:\n    {\"text\": the redacted text, \"redactions\": how many secrets were\n    replaced, \"by_pattern\": {detector name: count}}\n","inputSchema":{"properties":{"text":{"title":"Text","type":"string"}},"required":["text"],"title":"redact_textArguments","type":"object"},"name":"redact_text","outputSchema":{"properties":{"by_pattern":{"additionalProperties":{"type":"integer"},"title":"By Pattern","type":"object"},"redactions":{"title":"Redactions","type":"integer"},"text":{"title":"Text","type":"string"}},"required":["text","redactions","by_pattern"],"title":"Redaction","type":"object"}},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true},"description":"Scan a single file for exposed secrets.\n\nUTF-8, UTF-16 and UTF-32 text is decoded by byte-order mark. Binary files\n(null-byte heuristic) and files larger than 5 MB are skipped and reported\nas such in the summary. The project's .secret-sentinel.toml and baseline\napply.\n\nArgs:\n    path: Absolute path to the file to scan.\n    max_findings: List at most this many findings, most severe first\n        (default 200, 0 = no limit).\n\nReturns:\n    The standard redacted findings report (see scan_text). Returns an\n    error result if the file does not exist.\n","inputSchema":{"properties":{"max_findings":{"default":200,"title":"Max Findings","type":"integer"},"path":{"title":"Path","type":"string"}},"required":["path"],"title":"scan_fileArguments","type":"object"},"name":"scan_file","outputSchema":{"$defs":{"FileCount":{"properties":{"file":{"title":"File","type":"string"},"findings":{"title":"Findings","type":"integer"}},"required":["file","findings"],"title":"FileCount","type":"object"},"Finding":{"properties":{"advice":{"title":"Advice","type":"string"},"commit":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Commit"},"file":{"title":"File","type":"string"},"line":{"title":"Line","type":"integer"},"pattern":{"title":"Pattern","type":"string"},"redacted":{"title":"Redacted","type":"string"},"severity":{"enum":["critical","high","medium"],"title":"Severity","type":"string"}},"required":["file","line","pattern","severity","redacted","advice"],"title":"Finding","type":"object"}},"properties":{"baselined":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Baselined"},"clean":{"title":"Clean","type":"boolean"},"counts_by_pattern":{"anyOf":[{"additionalProperties":{"type":"integer"},"type":"object"},{"type":"null"}],"title":"Counts By Pattern"},"counts_by_severity":{"anyOf":[{"additionalProperties":{"type":"integer"},"type":"object"},{"type":"null"}],"title":"Counts By Severity"},"files_scanned":{"title":"Files Scanned","type":"integer"},"findings":{"items":{"$ref":"#/$defs/Finding"},"title":"Findings","type":"array"},"summary":{"title":"Summary","type":"string"},"suppressed":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Suppressed"},"top_files":{"anyOf":[{"items":{"$ref":"#/$defs/FileCount"},"type":"array"},{"type":"null"}],"title":"Top Files"},"total_findings":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Total Findings"},"truncated":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Truncated"}},"required":["clean","findings","files_scanned","summary"],"title":"ScanReport","type":"object"}},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true},"description":"Recursively scan a directory tree for exposed secrets.\n\nInside a git repository the file list comes from git (tracked files plus\nuntracked files no .gitignore excludes), so every ignore rule is\nhonoured. Always skips .git, node_modules, virtualenvs, caches, dist,\nbuild, minified bundles, lockfiles, binaries, files over 5 MB and the\npaths the project's .secret-sentinel.toml excludes.\n\nArgs:\n    path: Absolute path to the directory to scan.\n    max_files: Stop after scanning this many files (default 500).\n    max_findings: List at most this many findings, most severe first\n        (default 200, 0 = no limit).\n\nReturns:\n    The standard redacted findings report; finding paths are relative to\n    the scanned root, using forward slashes.\n","inputSchema":{"properties":{"max_files":{"default":500,"title":"Max Files","type":"integer"},"max_findings":{"default":200,"title":"Max Findings","type":"integer"},"path":{"title":"Path","type":"string"}},"required":["path"],"title":"scan_directoryArguments","type":"object"},"name":"scan_directory","outputSchema":{"$defs":{"FileCount":{"properties":{"file":{"title":"File","type":"string"},"findings":{"title":"Findings","type":"integer"}},"required":["file","findings"],"title":"FileCount","type":"object"},"Finding":{"properties":{"advice":{"title":"Advice","type":"string"},"commit":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Commit"},"file":{"title":"File","type":"string"},"line":{"title":"Line","type":"integer"},"pattern":{"title":"Pattern","type":"string"},"redacted":{"title":"Redacted","type":"string"},"severity":{"enum":["critical","high","medium"],"title":"Severity","type":"string"}},"required":["file","line","pattern","severity","redacted","advice"],"title":"Finding","type":"object"}},"properties":{"baselined":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Baselined"},"clean":{"title":"Clean","type":"boolean"},"counts_by_pattern":{"anyOf":[{"additionalProperties":{"type":"integer"},"type":"object"},{"type":"null"}],"title":"Counts By Pattern"},"counts_by_severity":{"anyOf":[{"additionalProperties":{"type":"integer"},"type":"object"},{"type":"null"}],"title":"Counts By Severity"},"files_scanned":{"title":"Files Scanned","type":"integer"},"findings":{"items":{"$ref":"#/$defs/Finding"},"title":"Findings","type":"array"},"summary":{"title":"Summary","type":"string"},"suppressed":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Suppressed"},"top_files":{"anyOf":[{"items":{"$ref":"#/$defs/FileCount"},"type":"array"},{"type":"null"}],"title":"Top Files"},"total_findings":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Total Findings"},"truncated":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Truncated"}},"required":["clean","findings","files_scanned","summary"],"title":"ScanReport","type":"object"}},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true},"description":"Scan ONLY the lines currently staged for commit (git diff --cached).\n\nThis is the pre-commit checkpoint: it inspects exactly the content the\nnext commit would publish, and reports the file and post-commit line\nnumber of every added secret. Local diff settings (external diff tools,\ntextconv filters, prefixes, path quoting) are overridden, and git runs\nno configured programs.\n\nArgs:\n    repo_path: Absolute path to a git repository (or any path inside one).\n    max_findings: List at most this many findings, most severe first\n        (default 200, 0 = no limit).\n\nReturns:\n    The standard redacted findings report. If nothing is staged the result\n    is clean with an explanatory summary.\n","inputSchema":{"properties":{"max_findings":{"default":200,"title":"Max Findings","type":"integer"},"repo_path":{"title":"Repo Path","type":"string"}},"required":["repo_path"],"title":"scan_git_stagedArguments","type":"object"},"name":"scan_git_staged","outputSchema":{"$defs":{"FileCount":{"properties":{"file":{"title":"File","type":"string"},"findings":{"title":"Findings","type":"integer"}},"required":["file","findings"],"title":"FileCount","type":"object"},"Finding":{"properties":{"advice":{"title":"Advice","type":"string"},"commit":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Commit"},"file":{"title":"File","type":"string"},"line":{"title":"Line","type":"integer"},"pattern":{"title":"Pattern","type":"string"},"redacted":{"title":"Redacted","type":"string"},"severity":{"enum":["critical","high","medium"],"title":"Severity","type":"string"}},"required":["file","line","pattern","severity","redacted","advice"],"title":"Finding","type":"object"}},"properties":{"baselined":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Baselined"},"clean":{"title":"Clean","type":"boolean"},"counts_by_pattern":{"anyOf":[{"additionalProperties":{"type":"integer"},"type":"object"},{"type":"null"}],"title":"Counts By Pattern"},"counts_by_severity":{"anyOf":[{"additionalProperties":{"type":"integer"},"type":"object"},{"type":"null"}],"title":"Counts By Severity"},"files_scanned":{"title":"Files Scanned","type":"integer"},"findings":{"items":{"$ref":"#/$defs/Finding"},"title":"Findings","type":"array"},"summary":{"title":"Summary","type":"string"},"suppressed":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Suppressed"},"top_files":{"anyOf":[{"items":{"$ref":"#/$defs/FileCount"},"type":"array"},{"type":"null"}],"title":"Top Files"},"total_findings":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Total Findings"},"truncated":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Truncated"}},"required":["clean","findings","files_scanned","summary"],"title":"ScanReport","type":"object"}},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true},"description":"Scan the lines added by the most recent commits (git log -p).\n\nEach finding is tagged with the short hash of the commit that introduced\nit. A secret that was later deleted is still reported — history retains\nit, so the credential must be rotated regardless.\n\nArgs:\n    repo_path: Absolute path to a git repository (or any path inside one).\n    max_commits: How many commits back to inspect (default 50).\n    all_branches: Walk every branch, tag and the stash instead of only\n        the history of HEAD (default false).\n    max_findings: List at most this many findings, most severe first\n        (default 200, 0 = no limit).\n\nReturns:\n    The standard redacted findings report, with a \"commit\" field on each\n    finding.\n","inputSchema":{"properties":{"all_branches":{"default":false,"title":"All Branches","type":"boolean"},"max_commits":{"default":50,"title":"Max Commits","type":"integer"},"max_findings":{"default":200,"title":"Max Findings","type":"integer"},"repo_path":{"title":"Repo Path","type":"string"}},"required":["repo_path"],"title":"scan_git_historyArguments","type":"object"},"name":"scan_git_history","outputSchema":{"$defs":{"FileCount":{"properties":{"file":{"title":"File","type":"string"},"findings":{"title":"Findings","type":"integer"}},"required":["file","findings"],"title":"FileCount","type":"object"},"Finding":{"properties":{"advice":{"title":"Advice","type":"string"},"commit":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Commit"},"file":{"title":"File","type":"string"},"line":{"title":"Line","type":"integer"},"pattern":{"title":"Pattern","type":"string"},"redacted":{"title":"Redacted","type":"string"},"severity":{"enum":["critical","high","medium"],"title":"Severity","type":"string"}},"required":["file","line","pattern","severity","redacted","advice"],"title":"Finding","type":"object"}},"properties":{"baselined":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Baselined"},"clean":{"title":"Clean","type":"boolean"},"counts_by_pattern":{"anyOf":[{"additionalProperties":{"type":"integer"},"type":"object"},{"type":"null"}],"title":"Counts By Pattern"},"counts_by_severity":{"anyOf":[{"additionalProperties":{"type":"integer"},"type":"object"},{"type":"null"}],"title":"Counts By Severity"},"files_scanned":{"title":"Files Scanned","type":"integer"},"findings":{"items":{"$ref":"#/$defs/Finding"},"title":"Findings","type":"array"},"summary":{"title":"Summary","type":"string"},"suppressed":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Suppressed"},"top_files":{"anyOf":[{"items":{"$ref":"#/$defs/FileCount"},"type":"array"},{"type":"null"}],"title":"Top Files"},"total_findings":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Total Findings"},"truncated":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Truncated"}},"required":["clean","findings","files_scanned","summary"],"title":"ScanReport","type":"object"}},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true},"description":"Scan the commits in base..head: by default, what `git push` would send.\n\nRun this before pushing. With the defaults it scans every commit on the\ncurrent branch that its upstream does not have yet. If the branch has no\nupstream, the error says so: pass the branch you will push to as base\n(for example \"origin/main\").\n\nArgs:\n    repo_path: Absolute path to a git repository (or any path inside one).\n    base: Commits reachable from here are excluded (default \"@{upstream}\").\n    head: Last commit to include (default \"HEAD\").\n    max_commits: Scan at most this many of the newest commits in the range.\n    max_findings: List at most this many findings, most severe first\n        (default 200, 0 = no limit).\n\nReturns:\n    The standard redacted findings report with a \"commit\" field on each\n    finding, plus \"commits_scanned\" and \"range\".\n","inputSchema":{"properties":{"base":{"default":"@{upstream}","title":"Base","type":"string"},"head":{"default":"HEAD","title":"Head","type":"string"},"max_commits":{"default":200,"title":"Max Commits","type":"integer"},"max_findings":{"default":200,"title":"Max Findings","type":"integer"},"repo_path":{"title":"Repo Path","type":"string"}},"required":["repo_path"],"title":"scan_git_rangeArguments","type":"object"},"name":"scan_git_range","outputSchema":{"$defs":{"FileCount":{"properties":{"file":{"title":"File","type":"string"},"findings":{"title":"Findings","type":"integer"}},"required":["file","findings"],"title":"FileCount","type":"object"},"Finding":{"properties":{"advice":{"title":"Advice","type":"string"},"commit":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Commit"},"file":{"title":"File","type":"string"},"line":{"title":"Line","type":"integer"},"pattern":{"title":"Pattern","type":"string"},"redacted":{"title":"Redacted","type":"string"},"severity":{"enum":["critical","high","medium"],"title":"Severity","type":"string"}},"required":["file","line","pattern","severity","redacted","advice"],"title":"Finding","type":"object"}},"properties":{"baselined":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Baselined"},"clean":{"title":"Clean","type":"boolean"},"commits_scanned":{"title":"Commits Scanned","type":"integer"},"counts_by_pattern":{"anyOf":[{"additionalProperties":{"type":"integer"},"type":"object"},{"type":"null"}],"title":"Counts By Pattern"},"counts_by_severity":{"anyOf":[{"additionalProperties":{"type":"integer"},"type":"object"},{"type":"null"}],"title":"Counts By Severity"},"files_scanned":{"title":"Files Scanned","type":"integer"},"findings":{"items":{"$ref":"#/$defs/Finding"},"title":"Findings","type":"array"},"range":{"title":"Range","type":"string"},"summary":{"title":"Summary","type":"string"},"suppressed":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Suppressed"},"top_files":{"anyOf":[{"items":{"$ref":"#/$defs/FileCount"},"type":"array"},{"type":"null"}],"title":"Top Files"},"total_findings":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Total Findings"},"truncated":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Truncated"}},"required":["clean","findings","files_scanned","summary","commits_scanned","range"],"title":"RangeReport","type":"object"}},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true},"description":"Audit AI agent and MCP client configuration files for hardcoded secrets.\n\nChecks the project's .mcp.json, .claude/settings*.json, .cursor/mcp.json,\n.vscode/mcp.json, .gemini/, .codex/ and other client configs, plus agent\ninstruction files (CLAUDE.md, AGENTS.md, GEMINI.md, .cursorrules...),\nand the user-level configs of Claude Code, Claude Desktop, Cursor,\nVS Code, Cline, Windsurf, Gemini CLI, Codex, Kiro, Continue, Zed and\nothers. Project files report whether git tracks them: a key in a\ntracked .mcp.json ships with the repository.\n\nArgs:\n    project_path: Absolute path to the project to audit (optional).\n    include_user: Also scan configs in the user's home folder (default true).\n    include_transcripts: Also scan the newest Claude Code / Codex session\n        transcripts (default false; slower).\n    max_findings: List at most this many findings, most severe first.\n\nReturns:\n    The standard redacted report plus \"agent_files\": [{\"client\", \"scope\",\n    \"path\", \"findings\", \"tracked_by_git\", \"hint\"}] for every file found.\n","inputSchema":{"properties":{"include_transcripts":{"default":false,"title":"Include Transcripts","type":"boolean"},"include_user":{"default":true,"title":"Include User","type":"boolean"},"max_findings":{"default":200,"title":"Max Findings","type":"integer"},"project_path":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Project Path"}},"title":"scan_agent_configsArguments","type":"object"},"name":"scan_agent_configs","outputSchema":{"$defs":{"AgentFile":{"properties":{"client":{"title":"Client","type":"string"},"findings":{"title":"Findings","type":"integer"},"hint":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Hint"},"path":{"title":"Path","type":"string"},"scope":{"enum":["project","user","transcript"],"title":"Scope","type":"string"},"tracked_by_git":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Tracked By Git"}},"required":["client","scope","path","findings"],"title":"AgentFile","type":"object"},"FileCount":{"properties":{"file":{"title":"File","type":"string"},"findings":{"title":"Findings","type":"integer"}},"required":["file","findings"],"title":"FileCount","type":"object"},"Finding":{"properties":{"advice":{"title":"Advice","type":"string"},"commit":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Commit"},"file":{"title":"File","type":"string"},"line":{"title":"Line","type":"integer"},"pattern":{"title":"Pattern","type":"string"},"redacted":{"title":"Redacted","type":"string"},"severity":{"enum":["critical","high","medium"],"title":"Severity","type":"string"}},"required":["file","line","pattern","severity","redacted","advice"],"title":"Finding","type":"object"}},"properties":{"agent_files":{"items":{"$ref":"#/$defs/AgentFile"},"title":"Agent Files","type":"array"},"baselined":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Baselined"},"clean":{"title":"Clean","type":"boolean"},"counts_by_pattern":{"anyOf":[{"additionalProperties":{"type":"integer"},"type":"object"},{"type":"null"}],"title":"Counts By Pattern"},"counts_by_severity":{"anyOf":[{"additionalProperties":{"type":"integer"},"type":"object"},{"type":"null"}],"title":"Counts By Severity"},"files_scanned":{"title":"Files Scanned","type":"integer"},"findings":{"items":{"$ref":"#/$defs/Finding"},"title":"Findings","type":"array"},"summary":{"title":"Summary","type":"string"},"suppressed":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Suppressed"},"top_files":{"anyOf":[{"items":{"$ref":"#/$defs/FileCount"},"type":"array"},{"type":"null"}],"title":"Top Files"},"total_findings":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Total Findings"},"truncated":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Truncated"}},"required":["clean","findings","files_scanned","summary","agent_files"],"title":"AgentReport","type":"object"}},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true},"description":"List the active secret detectors and allowlist rules.\n\nReturns:\n    {\"count\": int,\n     \"patterns\": [{\"name\", \"severity\", \"advice\"}],\n     \"entropy_detector\": {...threshold and advice...},\n     \"allowlist_rules\": [{\"name\", \"description\"}]}\n    Raw regexes are intentionally not exposed.\n","inputSchema":{"properties":{},"title":"list_patternsArguments","type":"object"},"name":"list_patterns"}]}}}
