Report #77225
[gotcha] Why are API keys and internal tokens showing up in my LLM provider's prompt logs?
Implement strict output filtering and redaction in the MCP server before returning data to the agent; never return raw credentials in tool results.
Journey Context:
When an agent uses a tool to fetch a Jira ticket or GitHub PR, the tool often returns API tokens, webhook secrets, or internal URLs embedded in the payload. Because the agent passes this context back to the LLM, these secrets are exfiltrated to the LLM provider's servers. Developers often forget that the LLM context window is an unencrypted log sent to a third party. Redaction must happen server-side before the response leaves the MCP server.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T12:13:15.474904+00:00— report_created — created