Yault AESP

السجل الرسمي المالية والمدفوعات

Crypto payments for the agent economy — policy-gated vault operations under human control

التثبيت

أضف هذا إلى إعدادات MCP في عميلك (Claude Desktop: claude_desktop_config.json، وCursor: ‏.cursor/mcp.json، ويستخدم VS Code وغيره الصيغة نفسها «mcpServers»).

NPM package @yault/aesp
Claude Code
claude mcp add yault-aesp -e 'YAULT_API_KEY=<your yault_api_key>' -e 'YAULT_API_URL=https://api.yault.xyz' -- node -y @yault/aesp@0.2.0
إعداد JSON (Claude Desktop وCursor وVS Code)
{
    "mcpServers": {
        "yault-aesp": {
            "command": "node",
            "args": [
                "-y",
                "@yault/aesp@0.2.0"
            ],
            "env": {
                "YAULT_API_KEY": "<your yault_api_key>",
                "YAULT_API_URL": "https://api.yault.xyz"
            }
        }
    }
}

متغيرات البيئة

  • YAULT_API_KEY إلزامي سري Your Yault API key (obtain from https://yault.xyz). Format: sk-yault-*
  • YAULT_API_URL Yault backend base URL

التوثيق

مأخوذ من ملف README للمشروع على GitHub ويُحدَّث أسبوعيًا. تفتح الروابط على GitHub.

المحتويات
  1. AESP - Agent Economic Sovereignty Protocol
  2. What Is AESP
  3. Install
  4. Quick Start
  5. Modules
  6. MCP Tools
  7. Security Model
  8. Related Packages
  9. Development
  10. License

AESP - Agent Economic Sovereignty Protocol

Defining how AI agents operate economically under human sovereignty.

Website | npm

What Is AESP

AESP is a TypeScript SDK and MCP integration layer for agent payments under explicit human control. It is designed so that agents can execute economic actions while humans retain full economic sovereignty.

Core principles:

  • Policy-gated execution -- every spend action is bounded by configurable policy rules (per-tx limits, daily/weekly/monthly budgets, address allowlists, time windows).
  • Human override path -- risky actions are escalated to a review queue instead of being auto-approved.
  • Verifiable commitments -- execution context can be tied to EIP-712 signed intent, enabling on-chain settlement guarantees.
  • Practical integration -- MCP tools expose vault operations to AI agent frameworks; subpath exports let you import only what you need.

Install

npm install @yault/aesp

Requires Node.js >= 18.

Quick Start

Add to Claude Desktop

Add the following to your Claude Desktop config (claude_desktop_config.json):

{
  "mcpServers": {
    "yault": {
      "command": "npx",
      "args": ["-y", "@yault/aesp"],
      "env": {
        "YAULT_API_KEY": "sk-yault-..."
      }
    }
  }
}
Add to Claude Code
claude mcp add yault -- npx -y @yault/aesp

Then set the environment variable YAULT_API_KEY in your shell or .claude/settings.json.

Run standalone
export YAULT_API_KEY="sk-yault-..."
yault-mcp                  # if installed globally
npx @yault/aesp            # via npx
Get your API key

Go to yault.xyz to create an account and obtain your API key (sk-yault-*). The key is tied to your vault — each user manages their own key. Agent developers do not need a key unless they are also vault users; it is the end-user who configures their own key in the MCP client.

Use SDK modules
import { PolicyEngine } from '@yault/aesp/policy';
import { getAllMCPTools } from '@yault/aesp/mcp';
import { NegotiationStateMachine } from '@yault/aesp/negotiation';

const engine = new PolicyEngine(storageAdapter);
await engine.load();

const tools = getAllMCPTools(); // 6 MCP tool definitions

Modules

AESP is organized into subpath exports so you can import only what you need:

SubpathDescription
@yault/aespUnified re-export of all modules
@yault/aesp/typesShared type definitions (AgentExecutionRequest, TransferPayload, ChainId, etc.)
@yault/aesp/policyPolicy engine with 8-check evaluation, budget tracking, and policy change classification
@yault/aesp/identityAgent identity derivation, certificate creation, and hierarchy management
@yault/aesp/negotiationOffer/counter-offer state machine with session management
@yault/aesp/commitmentEIP-712 structured commitment builder for dual-signed agreements
@yault/aesp/reviewHuman-in-the-loop review queue with freeze/unfreeze controls
@yault/aesp/mcpMCP tool definitions, argument validation, and server router
@yault/aesp/a2aAgent-card builder for cross-agent discovery (A2A protocol)
@yault/aesp/cryptoCryptographic helpers: signing, encryption, hashing, ZK proof bridge
@yault/aesp/privacyContext tagging, ephemeral address pools, and consolidation scheduling

MCP Tools

The stdio server exposes 6 backend-connected tools:

ToolMethod + EndpointPurpose
yault_check_balanceGET /api/vault/balance/:addressRead a wallet vault balance
yault_depositPOST /api/vault/depositDeposit underlying into vault
yault_redeemPOST /api/vault/redeemRedeem vault shares
yault_transferPOST /api/vault/transferTransfer vault allocation (parent to sub-account)
yault_check_authorizationGET /api/vault/agent-authorizationRead operator/allowance status
yault_get_balancesGET /api/vault/balances/:addressRead multi-balance breakdown
Backend Requirements

The MCP server is a thin API client. It expects a Yault backend providing:

  • GET /api/vault/balance/:address
  • GET /api/vault/balances/:address
  • GET /api/vault/agent-authorization
  • POST /api/vault/deposit -- { address, amount }
  • POST /api/vault/redeem -- { address, shares }
  • POST /api/vault/transfer -- { from_address, to_address, amount, currency? }

Authentication: Authorization: Bearer sk-yault-* via YAULT_API_KEY env variable.

Security Model

AESP is built around "bounded autonomy":

  • Agent API keys should be policy-bound before spend execution.
  • Spending controls should include per-tx and rolling limits (daily/weekly/monthly).
  • Destination constraints should be allowlist-driven where applicable.
  • Sensitive operations should stay outside broad agent key scopes.
  • Human escalation remains the fallback for policy violations.

For vulnerability reporting, see SECURITY.md.

PackageDescription
@yault/elizaos-plugin-aespElizaOS plugin wrapping AESP for agent frameworks

Development

Run tests:

npm test

Build TypeScript:

npm run build:ts

Build with WASM (requires acegf-wallet as a sibling repo, or set ACEGF_ROOT):

npm run build:wasm
npm run build:ts

See CONTRIBUTING.md for the full development guide.

License

This project is licensed under the Apache License 2.0. See LICENSE for the full text.

الأسئلة الشائعة

ما هو Yault AESP؟

Crypto payments for the agent economy — policy-gated vault operations under human control

كيف أثبّت Yault AESP؟

يعمل على جهازك. في Claude Code: claude mcp add yault-aesp -e 'YAULT_API_KEY=<your yault_api_key>' -e 'YAULT_API_URL=https://api.yault.xyz' -- node -y @yault/aesp@0.2.0. وفي العملاء الآخرين، الصق إعداد JSON من هذه الصفحة في إعدادات MCP الخاصة بهم.

هل يحتاج Yault AESP إلى مفتاح API؟

نعم. يتطلب YAULT_API_KEY، وتضبطها في إعداداته.

هل Yault AESP مفتوح المصدر؟

نعم. شيفرته متاحة على GitHub بترخيص Apache-2.0.

من يصون Yault AESP؟

ينشره ya-xyz. يدرجه AI.tn لكنه لا يصونه ولا يوصي به.

من سجل MCP الرسمي. الإدراج ليس توصية: راجع شيفرة الخادم وصلاحياته قبل منحه الوصول إلى بياناتك.