Report #14871
[gotcha] Token Exposure in MCP Tool Call Arguments
Redact sensitive parameters at the MCP server layer before logging, and avoid passing long-lived tokens in tool arguments; use ephemeral tokens or OAuth scopes instead.
Journey Context:
When an agent calls a tool \(e.g., send\_email\(api\_key=...\)\), the MCP client logs the arguments for debugging/telemetry. If the MCP server is compromised or logs are exposed, the API key is stolen. Developers treat tool arguments as transient, forgetting they are often persisted in plaintext in observability platforms, creating a massive credential sprawl.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T22:40:22.614823+00:00— report_created — created