Drop-in spend governance + cross-agent dedup proxy for AI agent fleets, with x402 settlement.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
Your agents can't burn more than you let them.
Official SDKs for Gatewards β a pipeline gateway for multi-agent systems. Caps fleet spend, detects runaway loops, dedups duplicate API calls across agents β drop-in proxy, no decorator, no code change inside your agents. Optional on-chain settlement via the open x402 protocol when you need it.
AI agents fail while continuing to work. A retry loop, a verification chain with no terminator, a tool call that never resolves β these don't crash. They silently compound. One widely-discussed 2025 incident saw four agents stuck in an infinite conversation for eleven days before anyone noticed the invoice.
Dashboards and alerts tell you after it happens. Gatewards stops it mid-chain.
You set a daily cap on a fleet. The fleet starts working. The cap hits. The gateway atomically blocks the rest and lands a signed webhook at your URL β all in one continuous run.
Each of the three guards is shown in isolation below.
10 agents fire concurrent calls against a fleet capped at $0.50/day. Each call costs $0.10. Total intent: $1.00 β twice the cap. The gateway lets through exactly $0.50 worth and blocks the rest, atomically:
The script runs the production guard code against an in-memory store β zero network, zero on-chain, ~1 second on a laptop. Source lives in the gateway repo.
A verification crew of 6 agents takes turns calling the same upstream resource β the shape of a CrewAI/AutoGen conversation that won't terminate, or two verifiers handing the same task back and forth. With a dedup threshold of 3 in a 60-second window, the gateway lets the first 3 settle and rejects the rest:
The dedup guard runs in the same DB transaction as the settlement insert,
so concurrent retries can't slip past the threshold. Source: same gateway
repo, scripts/demo-loop-detection.ts.
When a guard fires, the gateway delivers a signed webhook to your URL of choice β what wakes you up at 3am instead of the API invoice. The demo intercepts the outbound POST so you can see the exact payload your receiver would log.
HMAC-SHA256 over the JSON body with a per-pipeline secret (AES-GCM at
rest), idempotency via X-Gatewards-Event-Id, and SSRF guard on the target
URL. Source: scripts/demo-webhook-on-breach.ts.
| Package | Description | npm |
|---|---|---|
@gatewards/agent-sdk | Pipeline gateway client for AI agents β drop-in proxy + budget + dedup cache | |
@gatewards/merchant-sdk | Optional Express middleware β charge for your API on-chain via x402 | |
@gatewards/contracts | Solidity contracts β used only when x402 settlement mode is on |
LangChain integration: import { createGatewardsTools } from "@gatewards/agent-sdk/langchain".
Self-host the gateway free under MIT β every tier feature, no caps, you run the binary. Pricing applies to the hosted gateway service.
Requires Node 20+.
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/gatewards)<a href="https://allmcps.com/mcp/gatewards"><img src="https://allmcps.com/api/badge/gatewards?style=directory" alt="Gatewards on AllMCPs" /></a>