Agent Middleware MCP server
2026년 11월 12일 커밋서명된 허가(permit), 멱등성 키(idempotency key), 검증 가능한 오프라인 영수증을 사용하여 에이전트의 도구 호출을 위한 보안 게이트웨이를 제공합니다.
다른 이름 agentmiddleware/agent-middleware
- 스타
- 1
- Tools
- —
- 다운로드, 30일
- —
- 최신 버전
- —
- 마지막 커밋
- 2026년 11월 12일
- 라이선스
- Apache-2.0
Agent Middleware MCP란?
Agent Middleware은(는) MCP server입니다. 서명된 허가(permit), 멱등성 키(idempotency key), 검증 가능한 오프라인 영수증을 사용하여 에이전트의 도구 호출을 위한 보안 게이트웨이를 제공합니다.
프로젝트 README에서 생성된 요약
Agent Middleware MCP server 정보
환불, 지급 또는 배포와 같이 위험도가 높은 에이전트 작업을 보호하는 것이 에이전트 미들웨어의 주요 기능입니다. 이 시스템은 위험한 도구 앞에 위치한 게이트웨이 역할을 수행하며, 모든 호출이 엄격한 거버넌스를 따르도록 보장합니다. 개발자는 Makefile을 통해 로컬 게이트웨이로 사용하거나, X-API-Key 헤더에 API 키를 전달하여 MCP 클라이언트를 호스팅된 엔드포인트에 연결할 수 있습니다.
이 시스템은 제어력을 유지하기 위해 몇 가지 핵심 개념에 의존합니다. 특정 도구, 예산 및 만료 시간을 정의하는 서명된 권한인 permit을 사용하며, 중복 요청을 방지하기 위해 멱등성 키를 사용합니다. 모든 성공적인 호출은 요청과 응답의 해시를 포함하는 서명된 영수증을 생성하여 오프라인 검증이 가능하도록 합니다. 이 설정은 직접적인 실행 대신 구조화된 프로토콜을 통해 중대한 도구 호출을 관리해야 하는 개발자를 위해 설계되었습니다.
활용 사례
- 1중복 금융 거래 방지에이전트가 요청을 재시도하더라도 지급 또는 환불이 단 한 번만 처리되도록 보장합니다.
- 2오프라인 도구 결과 검증실시간 연결 없이도 서명된 기록을 사용하여 도구 호출 결과의 유효성을 확인합니다.
프로젝트의 README를 바탕으로 작성되었습니다. 모든 활용 사례는 해당 내용의 인용문과 대조하여 확인합니다.
구성
AMW_API_KEYAMW_WALLET_ID
| 이름 | 설명 | 유형 |
|---|---|---|
| AMW_API_KEY | — | |
| AMW_WALLET_ID | — |
자동 검사
2026년 11월 15일에 실행됨전체 보고서 →아직 인증되지 않았습니다. 서버는 80점 이상의 점수, 심각한 결함 없음, 그리고 검사에 충분한 데이터를 갖추어야 합니다. 검사 방식 · 점수를 높이기 위해 수정할 항목
- 소스 저장소 연결 및 접근 가능agentmiddleware/agent-middleware is public and reachablegithub.com/agentmiddleware/agent-middleware ↗통과
- 패키지가 이 저장소를 소스로 명시검사되지 않음
- 빌드 출처(Sigstore 증명)검사되지 않음
- 오픈 소스 라이선스 (OSI)Apache-2.0spdx.org/licenses/Apache-2.0.html ↗통과
- 최근 1년 내 커밋 또는 릴리스Last commit or release 2026-11-12github.com/agentmiddleware/agent-middleware ↗통과
- OpenSSF Scorecard검사되지 않음
- 패키지 이름이 인기 패키지와 유사하지 않음검사되지 않음
- 패키지 및 해당 종속성에 중요한 보안 권고 없음검사되지 않음
- 모델에 대한 숨겨진 지침 없음0 tool descriptions and the README read; no override phrases, credential paths or hidden characters통과
- 파괴적인 도구에 라벨 표시됨검사되지 않음
- 원격 엔드포인트가 MCP 핸드셰이크에 응답검사되지 않음
README
GitHub에서 보기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 질문
동일한 키로 요청을 재시도하면 어떻게 되나요?
동일한 키를 사용하여 재시도하면 작업을 다시 실행하는 대신 원래의 영수증을 반환합니다.
게이트웨이가 원격 작업이 실제로 발생했음을 증명할 수 있나요?
아니요, 영수증은 원시 도구 콘텐츠가 아닌 요청 및 응답 해시를 서명하므로 원격 작업의 발생 여부를 증명할 수는 없습니다.
'delivery_uncertain' 영수증이란 무엇인가요?
신뢰할 수 있는 응답이 반환되지 않았음을 의미합니다. 이 경우 비용은 차감된 상태로 유지되며, 운영자가 다운스트림 도구와 수동으로 대조하여 조정해야 합니다.