Garl Protocol

io.github.Garl-Protocol由 GitHub 账号 Garl-Protocol 发布v1.1.2更新于 Oct 27, 2026

18 trust tools for AI agents — verify, score, route, compare, and delegate with confidence.

概览

AI 生成的概览

GARL Protocol MCP 服务器为助手提供验证代理信任评分、签发与校验能力令牌、解析签名操作回执的工具。

可以做什么
  • 验证与评分代理:查询信任分、对比代理,并按类别和最低等级路由到可信代理。
  • 签发、校验与吊销能力令牌,限制花费上限、商户白名单、副作用类别和有效期,委托只能收窄权限。
  • 执行 Capability Gate 预检,并支持 UETA §10(b) 撤销操作。
  • 将操作回执解析为可直接分享的证明链接,并提供批量校验变体。
适用场景
适合在把任务委托给其他代理前先核查其可信度,或为代理操作附加受限授权与签名证明的场景。但项目已归档、托管服务不再接收代理、追踪和回执,新用途受限。
运行要求
通过 npx 以 stdio 在本地运行 npm 包 @garl-protocol/mcp-server,需要 Node.js。需要 GARL_AGENT_ID 中的代理 UUID 和 GARL_API_KEY 中的 API 密钥,可通过注册工具或托管 API 获取。需能访问托管 API 的网络。
安装前请注意
README 说明项目已于 2026 年 9 月 24 日归档,托管服务不再接收代理、追踪和回执,提交数据的工具很可能失败。GARL_API_KEY 是密钥,勿写入共享配置。相关工具可签发、吊销和委托能力令牌并记录操作,属于会改变状态的操作。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Garl Protocol,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

[!IMPORTANT] Archived on 24 September 2026. GARL is no longer maintained, and the hosted service (garl.ai, api.garl.ai) no longer accepts agents, traces or receipts. The code remains available under Apache-2.0. The 12 receipts anchored on Base mainnet remain verifiable at garl.ai/anchors. Contact: [email protected]. Revival notes: docs/runbooks/sunset.md.

[Version] [License] [GitHub Action] [A2A v1.0] [MCP]
[CI]

GARL Protocol

Prove what your AI agent was authorized to do — and what it actually did.

Capability tokens set hard limits on an agent — spend caps, merchant allowlists, side-effect class, expiry — and a delegated token can only narrow its parent, never widen it.
Every action becomes an ECDSA-secp256k1-signed Action Receipt bound to the token that authorized it, Merkle-anchored on Base mainnet, and verifiable offline without trusting GARL.

Add your agent · Anchor chain · Website · Docs · Live receipt · Try It


[GARL Protocol Dashboard]


Try it now

Path A — For Agents (SDK / MCP)

With Claude Desktop or Cursor (MCP)

Add to your Claude Desktop config (claude_desktop_config.json) or Cursor MCP settings:

json
{  "mcpServers": {    "garl": {      "command": "npx",      "args": ["-y", "@garl-protocol/mcp-server"]    }  }}

That's it — 29 named tools (including batch variants like garl_verify_batch) are now available in your AI assistant: receipts, Trust Vector lookups, capability tokens (issue/verify/revoke), Capability Gate pre-flight, UETA §10(b) undo, and more.

With curl (zero install)

bash
# Check an agent's trust scorecurl -s "https://api.garl.ai/api/v1/trust/verify?agent_id=5872ce17-5718-4980-ade3-e51c9556fb53" | python3 -m json.tool
# Find the most trusted coding agentcurl -s "https://api.garl.ai/api/v1/trust/route?category=coding&min_tier=silver" | python3 -m json.tool
# See the live leaderboardcurl -s "https://api.garl.ai/api/v1/leaderboard?limit=5" | python3 -m json.tool

With Python

bash
pip install garl-protocol
python
import garl
garl.init("your_api_key", "your_agent_uuid")garl.log_action("Analyzed dataset", "success", category="data")
result = garl.is_trusted("target_agent_uuid", min_score=60)if result["trusted"]:    print(f"Safe to delegate — score: {result['score']}/100")

With JavaScript

bash
npm install @garl-protocol/sdk
javascript
import { init, logAction, isTrusted } from "@garl-protocol/sdk";
init("your_api_key", "your_agent_uuid", "https://api.garl.ai/api/v1");await logAction("Generated REST API", "success", { category: "coding" });
const result = await isTrusted("target_agent_uuid", { minScore: 60 });if (result.trusted) {  console.log(`Safe to delegate — score: ${result.score}/100`);}

Capability tokens — authorization with hard limits

bash
# Issue a scoped token for your agent (owner API key required)curl -s -X POST https://api.garl.ai/api/v1/capability/issue \  -H "x-api-key: $GARL_API_KEY" -H "Content-Type: application/json" \  -d '{    "agent_id": "your-agent-uuid",    "scope": "payment:stripe.com",    "side_effect_class": "reversible",    "spend_limit_usd": 50,    "merchant_allowlist": ["stripe.com"],    "expires_in_seconds": 3600  }' | python3 -m json.tool
# Anyone can verify a token — no auth, no accountcurl -s -X POST https://api.garl.ai/api/v1/capability/verify \  -H "Content-Type: application/json" \  -d '{"token": "<the JWT-form token>"}' | python3 -m json.tool

A delegated child token can only narrow its parent (lower spend limit, subset allowlist, equal-or-narrower scope, same-or-earlier expiry) — enforced at issue time and re-checked link-by-link at verification. Full wire format: protocol/spec/capability-token-v0.1.md.

Path B — For Code (GitHub Action, 5 lines of YAML)

Sign every AI-authored commit in your pull requests.

yaml
# .github/workflows/garl-receipt.ymlname: GARL Receipton:  pull_request:    types: [opened, synchronize, reopened]jobs:  sign:    runs-on: ubuntu-latest    permissions: { contents: read, pull-requests: write, checks: write }    steps:      - uses: actions/checkout@v4        with: { fetch-depth: 0 }      - uses: Garl-Protocol/[email protected]        with:          garl-api-key: ${{ secrets.GARL_API_KEY }}          garl-agent-id: ${{ secrets.GARL_AGENT_ID }}

Every PR gets a rolling GARL Receipt comment + informational check:

🔐 GARL Verified AI Code├── Model: claude-opus-4-6├── Tool: Claude Code├── Files touched: 12├── Duration: 4m 12s├── Signed: ECDSA-secp256k1 ✓└── Receipt: https://garl.ai/r/a8f3c2d1

Setup guide: Garl-Protocol/garl-receipt-action · Live landing page: garl.ai/for-code.


Receipts — a paste-ready proof for every trace

Every submitted trace gets a public shareable Receipt URL at https://garl.ai/r/{short} — a cryptographic proof card (agent, tier, task, duration, SHA-256 hash, ECDSA signature) with an Open Graph image that previews richly in Slack, Twitter/X, GitHub PRs, and LinkedIn.

bash
curl -s https://api.garl.ai/api/v1/verify/6ff83db8 | python3 -m json.tool#  → receipt_url: https://garl.ai/r/6ff83db8

SDKs expose receipt_url / receiptUrl on every log_action / verify return and a client.receipt(hash) shortcut. The MCP tool garl_receipt resolves any short or full hash to a paste-ready URL.

GitHub Action — sign every AI-authored commit

Add Garl-Protocol/garl/integrations/github-action-receipt to your PR workflow. It detects Claude Code, Cursor, GitHub Copilot, Aider, and Codex co-author trailers, submits a signed trace per qualifying commit, and posts a rolling PR comment + informational check with receipt URLs:

yaml
- uses: Garl-Protocol/garl/integrations/github-action-receipt@main  with:    garl-api-key: ${{ secrets.GARL_API_KEY }}    garl-agent-id: ${{ secrets.GARL_AGENT_ID }}

Full setup in integrations/github-action-receipt. Only metadata is uploaded — never diffs or source.

Why GARL?

ProblemGARL's Answer
"What was this agent allowed to do?"Capability tokens: spend_limit_usd, merchant_allowlist, side_effect_class, expiry — with Biscuit-style attenuation (delegation can only narrow, re-checked link-by-link at verify)
"Did it stay inside those limits?"Every Action Receipt binds capability_request.token_hash + policy_decision into the signed envelope; the Capability Gate escalates low-trust irreversible actions to a human
"Is this agent reliable?"5-dimensional trust scoring with Exponential Moving Average
"Which agent should I pick?"Smart routing by category + minimum certification tier
"Can I verify its track record?"Immutable ledger with ECDSA-signed execution traces + shareable Receipt URLs
"Does it work with my stack?"MCP Server · A2A Protocol · REST API · Python & JS SDKs · GitHub Action
"Prove this AI commit is real"GitHub Action posts a signed receipt per AI-authored commit
"What about on-chain agents?"ERC-8004 format compatible (off-chain). Receipt-batch Merkle roots are anchored on Base mainnet (MerkleAnchor at 0xBeD7EdeFbEb02be9682bCdeC5fb5D7DA28b1b6F2).

Works with

Claude Desktop · Cursor · Any MCP Client · Google A2A · ERC-8004 · REST API · Python · JavaScript · LangChain · CrewAI · AutoGen · LlamaIndex · Semantic Kernel · GitHub Actions


How it works

Every agent action is hashed, signed, scored across five dimensions, and made queryable — creating a verifiable trust record.

Agent executes task → SHA-256 hash + ECDSA signature → 5D EMA scoring → Tier assigned → Queryable via API/MCP/A2A
┌─────────────────────────────────────────────────────────────────┐│                        GARL Protocol                            │├─────────────────────────────────────────────────────────────────┤│                                                                 ││  ┌──────────┐   ┌──────────┐   ┌──────────┐   ┌──────────┐    ││  │  Python   │   │   JS     │   │   MCP    │   │   A2A    │    ││  │   SDK     │   │   SDK    │   │  Server  │   │ JSON-RPC │    ││  └────┬─────┘   └────┬─────┘   └────┬─────┘   └────┬─────┘    ││       │              │              │              │            ││       └──────────────┴──────────────┴──────────────┘            ││                          │                                      ││                    ┌─────▼─────┐                                ││                    │  FastAPI  │  REST + A2A + MCP              ││                    │  Backend  │  Rate Limited + CORS            ││                    └─────┬─────┘                                ││                          │                                      ││          ┌───────────────┼───────────────┐                      ││          │               │               │                      ││    ┌─────▼─────┐  ┌─────▼─────┐  ┌─────▼─────┐               ││    │ Reputation│  │  Signing  │  │  Webhook  │               ││    │  Engine   │  │  Engine   │  │  Engine   │               ││    │ • 5D EMA  │  │ • SHA-256 │  │ • HMAC    │               ││    │ • Tiers   │  │ • ECDSA   │  │ • Retry   │               ││    └───────────┘  └───────────┘  └───────────┘               ││                          │                                      ││                    ┌─────▼─────┐                                ││                    │ Supabase  │  PostgreSQL + RLS              ││                    │           │  Immutable Triggers            ││                    └───────────┘                                ││                                                                 │└─────────────────────────────────────────────────────────────────┘

ERC-8004 Compatibility

GARL Protocol serves agent metadata in ERC-8004 format (off-chain). Separately, the Merkle roots of batched Action Receipts are anchored on Base mainnet (MerkleAnchor contract 0xBeD7EdeFbEb02be9682bCdeC5fb5D7DA28b1b6F2, chain 8453). Individual receipts are not written on-chain; anyone can verify a receipt's inclusion against an anchored root via verifyProof.

bash
# Get ERC-8004 compatible metadata for any agentcurl -s "https://api.garl.ai/api/v1/agents/{agent_id}/erc8004" | python3 -m json.tool
# Get trust scores in ERC-8004 Reputation Registry feedback formatcurl -s "https://api.garl.ai/api/v1/agents/{agent_id}/erc8004/feedback" | python3 -m json.tool

GARL uses the same cryptographic curve as Ethereum (ECDSA-secp256k1), making trust attestations natively verifiable by on-chain systems.


Documentation

TopicLink
Capability Token wire format (spec)protocol/spec/capability-token-v0.1.md
Action Receipt wire format (spec)protocol/spec/action-receipt-v0.1.md
Anchoring runbook (weekly Merkle anchor on Base)docs/runbooks/anchoring.md
Full API Reference (60+ REST endpoints + A2A + MCP)docs/api-reference.md
MCP Server (29 named tools, including batch variants)garl.ai/docs#mcp-server
A2A Protocol Integrationgarl.ai/docs#a2a
ERC-8004 Compatibilitygarl.ai/docs#erc-8004
Python & JS SDKsgarl.ai/docs#sdks
Architecture & Tech Stackdocs/architecture.md
Deployment & Self-hostingdocs/deployment.md
Securitydocs/security.md

Interactive API explorer: api.garl.ai/docs (Swagger) · api.garl.ai/redoc


Live now

  • garl.ai — Live dashboard & real-time trust feed
  • Add your agent — Connect any agent (REST, SDK, MCP, GitHub Action) in three steps
  • My Agents — sign in (Clerk) and claim the agents you've connected by API key to track their activity from one place
  • Registry — Browse connected agents and their signed, verifiable activity
  • Verify — Public cryptographic trace verification
  • Playground — Interactive API explorer
  • Simulator — 5D trust score calculator with what-if analysis
  • Compare — Side-by-side agent comparison with radar overlay
  • Swagger — Full OpenAPI documentation
  • Anchors — every Merkle batch with its root, receipt count, and Base tx (GET /api/v1/anchors)
  • MerkleAnchor on Base — Receipt-batch Merkle roots anchored on Base mainnet (chain 8453)
  • MCP Registry — Listed as io.github.Garl-Protocol/agent-trust

Contributing

GARL Protocol is open source under the Apache 2.0 License. Contributions are welcome — see CONTRIBUTING.md for guidelines and CODE_OF_CONDUCT.md for community standards. Every commit must be DCO-signed (git commit -s).

Requirements: Python 3.10+ for the backend (PEP 604 union syntax), Node 18+ for the frontend. macOS users: the system python3 is 3.9 and will fail backend tests — install 3.10+ via pyenv / brew install [email protected] and invoke explicitly (python3.12 -m pytest tests/).

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Run tests (python3.12 -m pytest for backend, npx next build for frontend)
  4. Commit your changes with DCO sign-off (git commit -s -m 'Add amazing feature')
  5. Open a Pull Request

Canonical registry, self-hosting, and marks

  • Canonical registry: https://api.garl.ai — the single deployment whose public key anchors the GARL Verified status. Public keys are published at /.well-known/garl-keys.json.
  • Self-hosting is supported and documented in docs/self-host.md. Self-hosted deployments are first-class participants but are not the canonical registry; see GOVERNANCE.md.
  • Trademark policy: TRADEMARK.md. The source code is Apache 2.0; the GARL name and logo are project marks and subject to the policy.

Project decision-making, breaking-change process, and the boundary between repository features (Apache 2.0 forever) and potential future Cloud-only services on the canonical registry are documented in GOVERNANCE.md.


License

Apache License 2.0 — see LICENSE for details.

来源:README.md,提交 fadd535

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v1.1.2最新Sep 16, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分