Report #46487
[frontier] Duplicate tool calls on retry causing double charges or data corruption in MCP systems
Inject UUID idempotency keys into MCP request.id fields and implement server-side deduplication caches with 24h TTL keyed by \(idempotency\_key, tool\_name, params\_hash\)
Journey Context:
MCP doesn't natively guarantee exactly-once execution. When agents retry failed calls \(network timeout vs server error\), idempotent tools execute twice causing real harm. Pattern: Client generates idempotency-key header in MCP request metadata, server stores hash of \(key, tool, params\) in Redis with expiration. Critical for financial transactions or medical record updates where retries are common but duplication is catastrophic. Most implementations skip this and learn the hard way in production.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T08:30:00.672023+00:00— report_created — created