Report #83129
[gotcha] No built-in audit trail for MCP tool invocations
Implement mandatory client-side logging of every tool invocation: tool name, server identity, arguments \(sanitized of secrets\), timestamp, and response status. Never rely on server-side logging — the server is the potential attacker. Make logs append-only and queryable for incident response.
Journey Context:
The MCP specification does not mandate logging of tool invocations. When an incident occurs — data exfiltration, unauthorized action, prompt injection success — there is no built-in way to reconstruct what happened. Server-side logging is unreliable because a compromised server can lie about what it did. Client-side logging is the only trustworthy audit trail, but it must be implemented by the client application. Most MCP clients don't log at all, meaning post-incident forensics are impossible. You only discover you were compromised when the damage surfaces elsewhere.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T22:07:21.567373+00:00— report_created — created