Agent Middleware MCP sunucusu
Commit 12 Kas 2026İmzalı izinler, idempotency anahtarları ve doğrulanabilir çevrimdışı makbuzlar kullanarak agent araç çağrıları için güvenli bir geçit sağlar.
Ayrıca bilinen adı agentmiddleware/agent-middleware
- Yıldızlar
- 1
- Araçlar
- —
- İndirmeler, 30 gün
- —
- En son sürüm
- —
- Son commit
- 12 Kas 2026
- Lisans
- Apache-2.0
Agent Middleware MCP nedir?
Agent Middleware bir MCP sunucusudur. İmzalı izinler, idempotency anahtarları ve doğrulanabilir çevrimdışı makbuzlar kullanarak agent araç çağrıları için güvenli bir geçit sağlar.
Özet, projenin README dosyasından oluşturuldu
Agent Middleware MCP sunucusu hakkında
İadeler, ödemeler veya dağıtımlar gibi yüksek riskli agent eylemlerini güvence altına almak, agent-middleware'in temel işlevidir. Her çağrının sıkı bir yönetişim sürecini takip etmesini sağlamak için riskli araçların önüne yerleştirilmiş bir geçit görevi görür. Geliştiriciler bunu bir Makefile aracılığıyla yerel bir geçit olarak kullanabilir veya bir MCP istemcisini, X-API-Key başlığında iletilen bir API anahtarı kullanarak barındırılan bir uç noktaya bağlayabilir.
Sistem, kontrolü sürdürmek için birkaç temel kavrama dayanır. Belirli araçları, bütçeleri ve son kullanma sürelerini tanımlayan imzalı izinler (permits) ve yinelenen istekleri önlemek için idempotency anahtarları kullanır. Her başarılı çağrı, istek ve yanıtın hash'lerini içeren imzalı bir makbuz oluşturarak çevrimdışı doğrulamaya olanak tanır. Bu yapı, kritik araç çağrılarını doğrudan çalıştırmak yerine yapılandırılmış bir protokol aracılığıyla yönetmek isteyen geliştiriciler için tasarlanmıştır.
Neler yapabilirsiniz
- 1Mükerrer finansal işlemleri önlemeAgent isteği tekrar etse bile bir ödemenin veya iadenin yalnızca bir kez işlenmesini sağlayın.
- 2Araç sonuçlarını çevrimdışı doğrulamaCanlı bir bağlantıya ihtiyaç duymadan, imzalı bir kayıt kullanarak bir araç çağrısının sonucunun geçerliliğini kontrol edin.
Projenin README dosyasından alınmıştır. Her kullanım durumu, oradaki bir alıntı ile kontrol edilir.
Yapılandırma
AMW_API_KEYAMW_WALLET_ID
| Ad | Açıklama | Sunucu |
|---|---|---|
| AMW_API_KEY | — | |
| AMW_WALLET_ID | — |
Otomatik kontroller
Çalıştırıldı 15 Kas 2026Tam rapor →Henüz doğrulanmadı. Bir sunucunun 80 puana, ciddi bir bulgu olmamasına ve kontrol edebilmemiz için yeterli veriye ihtiyacı vardır. Kontroller nasıl çalışır · Daha fazla puan için nelerin düzeltileceği
- Kaynak deposu bağlantılı ve erişilebiliragentmiddleware/agent-middleware is public and reachablegithub.com/agentmiddleware/agent-middleware ↗Geçti
- Paket, bu depoyu kaynağı olarak gösteriyorKontrol edilmedi
- Derleme kökeni (Sigstore onayı)Kontrol edilmedi
- Açık kaynak lisansı (OSI)Apache-2.0spdx.org/licenses/Apache-2.0.html ↗Geçti
- Son bir yıl içinde commit veya sürüm mevcutLast commit or release 2026-11-12github.com/agentmiddleware/agent-middleware ↗Geçti
- OpenSSF ScorecardKontrol edilmedi
- Paket adı popüler bir pakete yakın değilKontrol edilmedi
- Pakette veya bağımlılıklarında kritik uyarı yokKontrol edilmedi
- Modele yönelik gizli talimat yok0 tool descriptions and the README read; no override phrases, credential paths or hidden charactersGeçti
- Yıkıcı araçlar etiketlenmişKontrol edilmedi
- Uzak uç nokta MCP el sıkışmasına yanıt veriyorKontrol edilmedi
Agent Middleware
Agent Middleware is a gateway you put in front of an agent's risky tools (refunds, payouts, deploys) so each action needs a signed permit, runs at most once per request key, and leaves a signed receipt anyone can check offline.
Status: Pre revenue, pre release, solo maintained. There are no paying customers or production deployments to point to. We are looking for design partners with one real consequential tool. Install from source; nothing is published to PyPI or npm.
Try it in 3 minutes
Use the hosted demo. Get a demo key at the demo key page. The example also needs the associated wallet ID.
Connecting an MCP client to the hosted endpoint https://api.agentmiddleware.dev/mcp? Get an API key and send it as the X-API-Key header.
git clone https://github.com/agentmiddleware/amw-demo.git
cd amw-demo
python3 -m venv .venv
source .venv/bin/activate
pip install -e .
export AMW_API_KEY='<your key>'
export AMW_WALLET_ID='<your wallet id>'
python examples/permit_echo_retry.py
The example creates a permit, calls the reference echo tool, retries with the same key, and checks the receipt offline.
Run it locally
Use the gateway Makefile to start a local gateway. QUICKSTART.md has the full walk through.
git clone https://github.com/agentmiddleware/agent-middleware
cd agent-middleware/gateway
make quickstart
Concepts
- Permit: A signed grant that limits an agent to specified tools, a budget, and an expiry.
- Call: A governed MCP tool invocation under a permit.
- Request key: The
Idempotency-Keyheader that identifies a request for retry handling. - Receipt: A signed record of a call's outcome and hashes of its request and response, with a debit link when applicable.
- Credits: Internal metering units, not money.
Guarantees and limits
- a retry with the same key returns the original receipt instead of dispatching again
- a new key is a new request
- Reusing a key with a different request fails with a conflict before dispatch.
- A
delivery_uncertainreceipt means no trustworthy answer came back. The debit is kept, and the operator must reconcile with the downstream tool. The gateway does not resend automatically. - The gateway limits dispatch and debit per key, but remote effects depend on the tool honoring the forwarded key. A receipt signs request and response hashes, not raw tool content, and cannot prove a remote effect happened. This is not exactly once.
Read Security Limitations before relying on the gateway for a consequential action.
Repo map
This repository holds the reference gateway, protocol spec, SDKs,
integrations, and design-partner pilot loop (start with
QUICKSTART.md). The separate agent-middleware-api
repository is outside this checkout; partner evaluation guidance is here.
| Path | What it contains |
|---|---|
| gateway/ | Gateway implementation and local Makefile |
| sdk/ | Python and TypeScript client and verification code |
| verifier/ | Offline verification guide and vector checker |
| spec/ | Draft permit, receipt, and key formats |
| integrations/ | Framework wrappers and adapters |
| examples/ | Runnable examples and MCP client config |
| amw-demo | Hosted demo client and receipt verifier |
| amw-paypal-agent-demo | PayPal agent demo |
Apache 2.0 (gateway is Fair Source, FSL-1.1)
Agent Middleware MCP soruları
Aynı anahtarla bir isteği tekrar gönderirsem ne olur?
Aynı anahtar kullanılarak yapılan bir tekrar denemesi, işlemi yeniden çalıştırmak yerine orijinal makbuzu döndürür.
Geçit, uzak bir etkinin gerçekten gerçekleştiğini kanıtlayabilir mi?
Hayır, makbuz ham araç içeriği yerine istek ve yanıt hash'lerini imzaladığı için uzak bir etkinin gerçekleştiğini kanıtlayamaz.
'delivery_uncertain' makbuzu nedir?
Bu durum, güvenilir bir yanıt dönülmediği anlamına gelir; borç kaydı tutulur ve operatörün sonraki araçla manuel olarak mutabakat sağlaması gerekir.