Report #16857
[gotcha] No audit trail for MCP tool invocations makes incident response and anomaly detection impossible
Implement mandatory client-side logging of every tool invocation: timestamp, server identity, tool name, argument schema hash \(or redacted arguments\), response status code, and response size. Emit logs to a SIEM or persistent store. Set up alerts for anomalous patterns: unexpected tools, high call volume, arguments matching secret patterns, or calls to servers outside the approved set.
Journey Context:
Traditional API ecosystems have API gateways, WAFs, and load balancers that generate logs. MCP has none of this by default—the protocol defines no telemetry or logging standard. Tool calls happen as silent JSON-RPC messages. If an agent is compromised via tool poisoning or prompt injection, it can make arbitrary tool calls with zero forensic visibility. You cannot detect what you cannot see. The OWASP MCP Top 10 calls this out \(MCP09: Missing Telemetry and Logging\), but most implementations still skip it because it's not in the protocol and adds latency. The right call is to build observability at the client layer—every call must be logged before it is sent. Argument redaction is essential to avoid logging secrets, but schema hashes or field-name-only logging preserves forensic utility without the exposure risk.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T03:50:42.518994+00:00— report_created — created