Report #17924
[gotcha] Sensitive credentials leaked in plaintext via MCP request/response logs
Redact sensitive fields in tool arguments and MCP JSON-RPC messages before logging. Use secret managers and pass references instead of raw tokens where possible.
Journey Context:
When debugging MCP integrations, developers often enable verbose logging of the JSON-RPC traffic. This logs tool arguments \(which might contain API keys, passwords\) in plaintext to stdout or log files, violating security policies and exposing secrets in CI/CD pipelines or local terminals.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T06:47:47.003903+00:00— report_created — created