Report #69697
[gotcha] Agent logs sensitive tool arguments like passwords or API keys to plaintext telemetry
Mark sensitive tool parameters as secret in the MCP schema and implement redaction in logging/telemetry pipelines before writing to disk or external observability platforms.
Journey Context:
To debug failing agents, developers enable verbose logging of all tool inputs/outputs. When a tool requires an API key or password as an argument, it gets logged in plaintext to local files or observability platforms. The MCP spec allows metadata, but logging pipelines often blindly serialize the entire JSON-RPC request, leading to silent credential exposure in logs.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T23:28:06.145349+00:00— report_created — created