Execution guard for AI agents β prevents duplicate tool calls on retry.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
We haven't yet run this listing's install command through our automated sandbox check. This isn't a red flag β we're steadily working through the catalog.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
POST /claim Β· safeagent-production.up.railway.app
Dashboard: safeagent-dashboard-2.vercel.app
Indexed on Bazaar.
A credential-free experiment exercises CrewAI 1.15.21's actual same-process `ToolUsage._use` retry against SafeAgent 0.1.23. Across 30 post-effect/pre-confirmation trials, the unguarded path recorded two effects per logical action; the SafeAgent path recorded one effect and retained a `PENDING` claim for reconciliation.
Scope: scripted deterministic LLM and harmless effect recorded through an out-of-process capability-separated ledger. This does not validate process death, fresh-worker recovery, a real external provider, or SafeAgent Control reconciliation.
Method, source, tests, hashes, and 180-trial evidence
Two bounded, read-only reconciliation pilots are open for outside operators. There is no fee unless SafeAgent Control identifies a previously unknown, reproducible discrepancy that the operator agrees is actionable.
This implementation is a Mycelium Provider.
Each completed action submits a trail to ARGENTUM with a content-addressed action_ref
(JCS+SHA-256 over the four preimage fields). The returned mycelium_trail_id is included
in every receipt for independent verification.
SafeAgent is the first verified external integrator on Soma β the Mycelium agent catalog. Every production execution is anchored on-chain via Mycelium Trails and independently verifiable without going through the operator.
SafeAgent is a durable execution-claim guard. It suppresses concurrent and repeated attempts that use the same stable request_id, and preserves unresolved attempts for reconciliation instead of silently retrying them.
Every action gets a stable request_id derived from the logical action. A new key returns PROCEED; a settled key returns SKIP with its stored result. A key left PENDING after a timeout or crash remains blocked because local state alone cannot prove whether the provider accepted the action. Recover it only after checking provider evidence or using provider-native idempotency.
State machine: CLAIMABLE β PENDING β COMMITTED; later claims observe PENDING or SKIP.
Common failure modes SafeAgent prevents:
| Scenario | Without SafeAgent | With SafeAgent |
|---|---|---|
| Stripe charge times out after acceptance | Retry may charge twice | Same key remains PENDING until provider reconciliation |
| Welcome email on signup retried | User gets two welcome emails | Second send returns SKIP |
| Webhook delivered twice (Stripe/GitHub/Twilio guarantee at-least-once) | Event processed twice | Second processing returns SKIP |
| Workspace provisioned on retry | Two workspaces created | Second provision returns SKIP |
| AI agent tool call retried after crash | Duplicate side effect | Same key stays blocked; outcome is explicitly unresolved |
Guarantee boundary: SafeAgent proves local claim state, not the external outcome.
COMMITTEDmeans the caller settled a receipt.PENDINGmeans unresolvedβnot failed and not confirmed successful. End-to-end exactly-once effects require provider-native idempotency and/or reconciliation with the provider's authoritative records.
SafeAgent is the durable claim and duplicate-suppression layer in an agent execution integrity stack:
Each layer is independently authored and independently verifiable. None trusts the others.
Gate an action. Returns PROCEED on first call, SKIP on any repeat.
Request body:
request_id β stable identifier derived from what the agent is doing. Same inputs = same key.action β the action type being gated (e.g. payment.send, email, trade, order)Response:
Retry with the same payload:
Settle a claim after the action fires. Advances status from PENDING to COMMITTED.
Free test endpoint β same logic, no payment required. Limited to 10 calls per IP total.
Full claim history. Filter by agent_id, action, status, or timestamp range.
Parameters: agent_id, action, status, from_ts, to_ts, limit (max 1000), offset.
For production Stripe PaymentIntents, use the permit-gated adapter documented in SafeAgent Boundary. It keeps the Stripe credential outside the agent, passes the consumed permit ID to Stripe as the native idempotency key, persists the provider correlation, verifies webhook signatures and supports authoritative read-back. The simple claim/settle snippet below illustrates the generic API only; it is not the provider adapter.
Run the bounded test-mode example in
examples/stripe_payment_intent_guard.py.
The verification record documents the observed
end-to-end result: one successful Stripe sandbox PaymentIntent, an exact replay
blocked before provider dispatch, and authoritative reconciliation by retrieve.
Factual signals from GitHub, npm, and our automated checks β not a rating.
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/safeagent)<a href="https://allmcps.com/mcp/safeagent"><img src="https://allmcps.com/api/badge/safeagent?style=directory" alt="SafeAgent on AllMCPs" /></a>