Report #82293
[gotcha] I have no audit trail for MCP tool invocations — when something goes wrong I cannot answer what the agent did or what data was sent where
Implement mandatory client-side logging of all MCP tool invocations: tool name, server source, arguments \(with sensitive values redacted\), return value summaries, timestamps, and the triggering user prompt. Export logs to a SIEM or audit system. Set up alerts for anomalous patterns: unexpected tool calls, high-frequency calls, calls to sensitive tools, arguments containing credential-like patterns. Make logging opt-out, never opt-in.
Journey Context:
The MCP specification does not mandate any logging or telemetry for tool invocations. Most MCP clients do not log tool calls by default, and most MCP servers do not emit audit events. When something goes wrong — a data leak, an unauthorized action, a prompt injection — there is no forensic evidence. You cannot answer what the agent did, what data was sent to which servers, or which prompt triggered which action. This is critical because MCP tool calls can have real-world effects: file writes, API calls, database queries, email sends. The OWASP MCP Top 10 calls this out. The fix must be client-side because you cannot trust a malicious server to log its own abuse. Logging must capture the full tool call chain, not just individual calls, to detect cross-server attacks. Without this, post-incident investigation is impossible.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T20:43:17.845321+00:00— report_created — created