Matrix Agent Tools

Autonomous AI-to-AI analysis tools with pay-per-job USDC payments on Base. No human subscription required.

Gehosteter MCP-Server

npx add-mcp 'https://agents.matrixdigitalltd.com/v1/agent/mcp'

Installiert in Claude Code, Codex, Cursor und mehr

Dokumentation

Matrix Agent Tools — Autonomous Buyer Client

Version: 1.0.0 Publisher: Matrix Digital Ltd

Service discovery

Catalogue: https://agents.matrixdigitalltd.com/v1/agent/catalog

MCP: https://agents.matrixdigitalltd.com/v1/agent/mcp

Network: Base Mainnet (eip155:8453) Settlement asset: native USDC.

This is an AI-to-AI, per-job commercial service. A human subscription is not required.

Installation

Use Python 3.10 or newer in a private environment.

python3 -m venv .venv
source .venv/bin/activate
python -m pip install -r requirements.txt

The package contains:

  • matrix_marketplace_enrolment.py
  • matrix_marketplace_signer.py
  • matrix_marketplace_client.py

Wallet enrollment

Supply your own locally controlled eth-account wallet object.

from matrix_marketplace_enrolment import (
    generate_credential,
    enrol,
)

credential = generate_credential()

Persist this credential in your own secure secret store BEFORE calling enrol.

registration = enrol(account, credential)

The account must be supplied by the caller. Never send its private key to Matrix Agent Tools.

Enrollment uses an authenticated personal_sign registration challenge, not a payment transaction.

Do not generate another credential automatically if a registration response is interrupted. Preserve the existing credential and reconcile registration before attempting another enrollment.

Paid execution

The current catalogue is the authoritative source for product price and availability.

Configured marketplace prices:

  • checkout_monitor: 0.60 USDC
  • commerce_guard: 2.50 USDC
  • tender_intelligence: 3.99 USDC
  • mcp_security_audit: 5.00 USDC
  • ad_tracking_guard: 8.00 USDC

Financial availability is dynamic.

Deployment Guard is not released through this marketplace client.

Example integration:

from matrix_marketplace_client import run

result = run(
    account,
    credential,
    "commerce_guard",
    {
        "html": "<html><body>Example</body></html>"
    },
    approved_unique_job_key,
    approved_amount_atomic=2500000,
    maximum_amount_atomic=2500000,
    journal_directory="/your/private/buyer-journal",
    timeout_seconds=300,
)

The example executes a REAL paid job when supplied with an enrolled and funded wallet and an approved unique job key.

Only run it after applying the buyer's payment approval and spending policies.

USDC amounts use six decimal places. 2500000 atomic units equals 2.50 USDC.

The amount limit is per payment, not a cumulative account spending limit. Buyers must implement their own aggregate spending budgets.

The journal directory must be private (0700). The client stores signed payment authorizations and submitted job payloads in private files (0600). Protect the journal as sensitive information.

Restart and recovery

Always resume with the same:

  • Wallet
  • Enrolled credential
  • Product
  • Payload
  • Idempotency key
  • Approved payment amount
  • Journal directory

The client checks job status before attempting to resend an existing authorization.

It does not generate a new authorization after an uncertain signed submission.

A quote_expired response is not proof of finalized non-payment. Review the existing quotation before approving any replacement payment.

For payment_expired_unpaid, inspect the server's finalized payment_resolution information.

For failed or cancelled paid jobs, inspect the refund status separately. A failed job does not mean its refund has already been finalized.

Marketplace HTTP endpoints

POST /v1/marketplace/checkout_monitor POST /v1/marketplace/commerce_guard POST /v1/marketplace/tender_intelligence POST /v1/marketplace/mcp_security_audit POST /v1/marketplace/ad_tracking_guard

Each request requires an enrolled machine bearer credential and a JSON object containing payload and idempotency_key.

The server issues an x402 v2 payment challenge with an additional Matrix quotation-bound nonce.

The buyer must preserve the server-issued nonce, exact payment requirements, resource and Bazaar extension when constructing PAYMENT-SIGNATURE.

This is a Matrix-specific client integration. Unmodified generic x402 clients are not currently certified for this reserved-nonce workflow.

Retrieve the existing job through:

GET /v1/agent/jobs/{quote_id}/status

Use verified HTTPS only. Never follow redirects when transmitting payment credentials.

Qualification status

The production marketplace routes are deployed. The client, cryptographic signing, durable retry and integrated gateway behavior have passed isolated qualification.

Live marketplace settlement and PayAI Bazaar indexing have not yet been independently verified.

The existing direct quotation API remains available separately.

No wallet credentials, private server source or merchant signing keys are included in this package.