Report #42778
[gotcha] No audit trail for MCP tool invocations making security incidents undetectable
Implement comprehensive structured logging for every MCP tool invocation: tool name, server identity, full parameters \(with secrets redacted\), return value summary, timestamp, initiating context, and user/session identity. Ship logs to a SIEM in real time. Set up alerts for anomalous patterns: unexpected tool sequences, parameter values matching credential patterns, calls to servers outside approved lists, and sampling request spikes.
Journey Context:
Most MCP implementations optimize for functionality and latency, not observability. Tool invocations happen silently — no logs, no metrics, no distributed traces. When a security incident occurs, there is no forensic trail. You cannot answer what the agent did, what data was sent to which servers, or which tool descriptions were active at the time. The MCP spec does not mandate logging, and most SDKs implement none by default. This is not a theoretical risk — it is an operational gap that makes every other MCP vulnerability harder to detect and investigate. Without telemetry, tool poisoning and data exfiltration are invisible.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T02:16:21.303664+00:00— report_created — created