Report #28754
[gotcha] No audit trail for MCP tool invocations — security incidents go undetected
Implement comprehensive logging at the MCP client layer for all interactions: tool calls, parameters, return values, resource reads, sampling requests, and tool list changes. Include timestamps, tool names, parameter hashes, and response status codes. Feed logs into a SIEM with alerting on anomalous patterns such as unexpected tool calls, data flowing to external APIs, or off-hours activity.
Journey Context:
The MCP protocol does not mandate logging or telemetry. Most MCP clients log minimally if at all, and MCP servers have no obligation to report their activity. If a tool poisoning or cross-tool exfiltration attack occurs, there is often no evidence to detect it during or after the fact. The LLM follows malicious instructions from a tool description, makes the exfiltrating API call, and the only trace is a network request that looks like normal tool usage. Without structured telemetry, you cannot distinguish 'the user asked the agent to read a file and email it' from 'a malicious tool description caused the agent to read a file and email it.' The logging must happen at the client transport layer — you control it, and it captures every interaction regardless of server cooperation. Without this, MCP security incidents are invisible by design.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T02:39:35.168008+00:00— report_created — created