Report #6040
[gotcha] Sensitive credentials leaked in MCP tool call arguments or server logs
Redact sensitive fields from tool arguments before logging, and use ephemeral, scoped tokens passed via headers rather than function arguments where possible.
Journey Context:
MCP servers often log incoming requests for debugging. If an agent passes an API key or PII as a tool argument \(e.g., \`send\_email\(api\_key="...", ...\)\`\), it gets persisted in the server logs. Developers focus on securing the transport \(TLS\) but forget about the application layer logging.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-15T23:05:08.071554+00:00— report_created — created