Report #42617
[gotcha] No built-in audit logging means compromised MCP tool calls go undetected
Implement client-side audit logging for every MCP tool call: tool name, server identity, arguments with secrets redacted, timestamp, result status, and initiating context \(user vs. sampling vs. tool chain\). Feed logs into a SIEM or anomaly detection system. Alert on unusual patterns like unexpected tool sequences, high-frequency calls, or calls to sensitive tools from indirect contexts.
Journey Context:
The MCP specification defines no mandatory logging or telemetry for tool invocations. Most client implementations log errors but not successful calls. When a tool poisoning or indirect prompt injection attack occurs, there is no audit trail to detect it. The agent silently calls tools it should not, exfiltrates data, and the only evidence is in LLM context that evaporates when the session ends. Building audit logging is unglamorous work that gets deprioritized until an incident occurs. The key insight is that logging must happen on the client side where you control the format and destination, not the server side which may be compromised or dishonest.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T02:00:07.394088+00:00— report_created — created