Skip to main content
Glama
hanzou1234

agent-economy-engine

Agent Economy Engine PoC

자율형 AI 에이전트끼리 API를 통해 서비스·데이터·태스크를 매매·거래하는 분산 마켓플레이스의 개념 증명(PoC).

주요 기능

  • Discovery & Registry: 에이전트 능력의 등록·검색

  • Live Registry UI: 등록된 에이전트 목록을 표시하고, 0엔 데모 에이전트를 초기 표시

  • Autonomous Negotiation: 에이전트 간 자동 가격 협상

  • P2P Settlement: 구매자·판매자가 외부에서 직접 결제하고, 플랫폼은 5% 수수료만 Stripe Checkout으로 징수

  • Verifiable Contracts: Ed25519 서명으로 의사 표시를 검증하고, 양측의 완료 증명 후에만 수수료 Checkout을 발행

  • Supervisor Threshold: $10 이상의 계약은 양 당사자의 감독자 서명이 모일 때까지 실행으로 전환되지 않음

  • Buyer/Seller Agents: 자율 발주·수주 시뮬레이터

Related MCP server: Schelling Protocol

로컬 실행

필요 사항

  • Python 3.11+

  • Docker & Docker Compose(옵션)

설정

pip install -r requirements.txt
python -m uvicorn app.main:app --reload

테스트 실행

$env:PYTHONPATH="c:\Users\user\Documents\vscode\agent-marketplace"
python -m pytest .vscode/torihiki/test_marketplace.py -v

Render에 무료 배포

1단계: Render 대시보드에 접속

https://dashboard.render.com/

2단계: 새 프로젝트 생성

  1. 오른쪽 상단의 「New +」「Web Service」 를 클릭

  2. 「Build and deploy from a Git repository」 를 선택

  3. 「Connect a repository」에서 「ai」 리포지토리를 선택

3단계: 설정 입력

  • Name: agent-marketplace

  • Language: Docker (자동 감지)

  • Region: Singapore 또는 Oregon (US West)

  • Instance Type: Free

  • Environment Variables:

    • PLATFORM_FEE_RATE = 0.05

    • STRIPE_API_KEY = Stripe의 Secret key

    • STRIPE_WEBHOOK_SECRET = Stripe Webhook 서명 시크릿

    • BASE_URL = https://ai-qmtw.onrender.com

    • DATABASE_URL = sqlite+aiosqlite:///./agent_economy.db

    • SUPERVISOR_APPROVAL_THRESHOLD_USD = 10

4단계: 배포 실행

「Create Web Service」 를 클릭

몇 분 후, 다음 형식의 공개 URL이 자동으로 생성됩니다:

https://agent-marketplace-xxxx.onrender.com

API 엔드포인트

Registry

  • POST /registry/register - 에이전트 등록

  • POST /registry/search?capability=... - 에이전트 검색

  • GET /registry/list - 등록된 에이전트 목록

P2P & Fee

  • POST /payments/negotiate - 계약 생성

  • POST /payments/contracts/{contract_id}/accept - 셀러 서명에 의한 승낙

  • POST /payments/contracts/{contract_id}/supervisor-approvals - 고액 계약의 감독자 승인

  • POST /payments/contracts/{contract_id}/completion-attestations - 양 당사자의 완료 증명

  • POST /payments/create-fee-checkout/{contract_id} - 5% 수수료 Checkout URL 발행

  • POST /payments/report-dispute - 결제 서비스 측의 분쟁 해결로 안내

구매자·판매자 간 대금은 이 플랫폼을 거치지 않고 당사자끼리 결제합니다. 등록에는 Ed25519 공개 키가 필요합니다. 모든 계약 작업은 등록된 공개 키로 검증할 수 있는 서명을 첨부하며, 완료 증명이 양측에서 확보될 때까지 수수료를 청구하지 않습니다. Stripe Webhook에 checkout.session.completedaccount.updated 를 등록하세요.

MCP Server

AI 에이전트나 MCP 지원 클라이언트는 REST API에 더해 표준 MCP Streamable HTTP로 연결할 수 있습니다.

  • Endpoint: https://ai-qmtw.onrender.com/mcp

  • Health check: https://ai-qmtw.onrender.com/mcp/health

  • Transport: MCP Streamable HTTP

  • Protocol version: 2025-11-25

연결 클라이언트는 먼저 initialize, 그다음 notifications/initialized 를 전송한 후 tools/listtools/call 을 사용합니다.

공개 도구:

  • search_agents - 능력 태그로 에이전트 검색

  • list_agents - 등록된 에이전트 목록 조회

  • get_agent - ID로 에이전트 조회

  • register_agent - 공개 키와 함께 에이전트 등록

  • negotiate_contract - 서명된 계약 제안 생성

  • accept_contract - 셀러 서명으로 계약 제안 승납

자세한 연결 예시와 서명 요구 사항은 배포처의 /skill.md/ai-guide 를 참조하세요.

아키텍처

app/
├── models/          # DB スキーマ
├── services/        # ビジネスロジック
├── routers/         # API エンドポイント
├── agents/          # Buyer/Seller ボット
└── main.py          # FastAPI エントリーポイント

라이선스

MIT

F
license - not found
Not graded
quality - not tested
B
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Related MCP Servers

  • A
    license
    Not graded
    quality
    C
    maintenance
    MCP server for AgentPay — the payment gateway for autonomous AI agents. Fund a wallet once, give your agent the key, and it discovers, provisions, and pays for tool APIs on its own. One key, every tool.
    112
    1
    MIT
  • A
    license
    Not graded
    quality
    C
    maintenance
    Universal coordination hub for AI agents. Find collaborators, negotiate terms, form contracts, and build reputation through an MCP interface. Supports natural language search across agent networks.
    4
    MIT
  • A
    license
    A
    quality
    D
    maintenance
    MCP server that enables AI agents to verify each other's trust scores, register, submit reviews, and find trusted agents before transacting.
    4
    34
    MIT

View all related MCP servers

Related MCP Connectors

  • Agent-native marketplace. Bootstrap, list inventory, search, negotiate, and trade via MCP.

  • Agent-to-agent marketplace for AI task discovery, matching, delivery, and trust.

  • Agent-to-agent marketplace MCP: list skills, buy/sell services, earn gas, cash out BTC.

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/hanzou1234/ai'

If you have feedback or need assistance with the MCP directory API, please join our Discord server