Sui a402 Protocol

The protocol provides a complete financial stack for agents, including agent payments (a402) and agentic yield management.

The launch debuts the Agentic Yield system on Sui, which uses autonomous financial agents to scan, score, allocate, and auto-compound stablecoin yield, all settled with Sui-native USDC for sub-second, near-zero-fee microtransactions. The launch also introduces the a402 protocol for HTTP-402 ("Payment Required") paywalls and developer SDKs for server-to-server micropayments for sub-second, zero-fee microtransactions settled natively on Sui.

Beep is building the financial nervous system for billions of autonomous agents to transact seamlessly across the open internet.

a402 Pay

Developer Guide

Comprehensive guide for developers to integrate a402 payment protocol into their applications.

Developer documentation and integration guides coming soon...

Zero Fee Settlement Flow

Understand how zero-fee microtransactions are settled on the Sui network.

Settlement flow documentation coming soon...

Agent to Agent Payment (a402)

Developer Guide a402 <> mcp-pay

📡 a402 <> MCP-Pay Integration

This package provides the Model Context Protocol (MCP) integration layer for Beep SDK, enabling seamless connections between AI agents, backends, and on-chain payment workflows on the Sui network.

Beep's MCP integration allows LLMs and autonomous agents (ChatGPT, Claude, custom agents, etc.) to:

  • Initiate or verify stablecoin payments
  • Automate invoicing and settlement
  • Embed on-chain context into reasoning flows
  • Be discoverable and callable through AEO (Answer Engine Optimization)

📦 What's Inside

  • Reference MCP server implementations
  • Transport adapters (HTTP, SSE, stdio)
  • Authentication and schema definitions
  • AEO-compatible metadata for agent discovery
  • Best practices and integration examples

🚀 Why MCP Matters for Beep

Beep bridges AI agents ↔ Sui payments using self-custodial USDC infrastructure.

CapabilityDescription
Agentic PaymentsAgents can autonomously send, request, and verify payments
Context-Aware ReasoningPayment data feeds directly into LLM reasoning graphs
AEO DiscoverabilityEndpoints can be indexed for direct LLM use
Composable WorkflowsIntegrate Beep payments into any AI or SaaS product

🔄 Supported Transports

TransportUse CaseDescription
httpWeb services / REST APIsStandard HTTP-based MCP endpoints
sseStreaming / real-time agentsPush updates via Server-Sent Events
stdioLocal / CLI agentsFor Claude Desktop or local agent communication

Each transport adapter includes: JSON message serialization/parsing, lifecycle hooks (onOpen, onClose, onError), and API key–based authentication middleware.

Beep MCP Server - Client Integration Guide

A Model-Context-Protocol (MCP) server that provides secure access to Beep platform capabilities through multiple transport protocols.

Quick Start
Prerequisites
  • Valid API key from Beep platform (if not authenticated)
HTTP Transport

The HTTP transport is ideal for web applications, remote clients, and production use.

curl -X POST https://api.justbeep.it/mcp \
  -H "Content-Type: application/json" \
  -d '{
    "jsonrpc": "2.0",
    "id": "1",
    "method": "initialize",
    "params": {
      "clientInfo": {
        "name": "my-client",
        "version": "1.0.0"
      }
    }
  }'

The server will respond with a session ID in the mcp-session-id header. Use this ID for all subsequent requests.

curl -X POST https://api.justbeep.it/mcp \
  -H "Content-Type: application/json" \
  -H "mcp-session-id: your-session-id" \
  -d '{
    "jsonrpc": "2.0",
    "id": "2",
    "method": "tools/list",
    "params": {}
  }'
Call Tools with Authentication
curl -X POST https://api.justbeep.it/mcp \
  -H "Content-Type: application/json" \
  -H "mcp-session-id: your-session-id" \
  -d '{
    "jsonrpc": "2.0",
    "id": "3",
    "method": "tools/call",
    "params": {
      "name": "requestAndPurchaseAsset",
      "arguments": {
        "apiKey": "your-api-key",
        "amount": 1000000,
        "currency": "USDT",
        "referenceId": "payment-123"
      }
    }
  }'
Available Tools
Authentication Tools
  • initiateDeviceLogin: Start OAuth device flow for CLI tools and apps
  • createMerchantAccountFromSSO: Create new merchant accounts via Google SSO
Resource Access
  • getPaidResource: Access premium features and paid content
Integration Examples
JavaScript/Node.js
const McpClient = require('@modelcontextprotocol/sdk/client');

const client = new McpClient({
  transport: 'http',
  endpoint: 'https://api.justbeep.it/mcp',
  auth: {
    type: 'bearer',
    token: 'your-access-token',
  },
});

await client.initialize();
const tools = await client.listTools();
Python
import requests

session = requests.Session()
session.headers.update({
    'Authorization': 'Bearer your-access-token',
    'Content-Type': 'application/json'
})

# Initialize session
response = session.post('https://api.justbeep.it/mcp', json={
    'method': 'initialize',
    'params': {'clientInfo': {'name': 'python-client', 'version': '1.0.0'}}
})

session_id = response.headers.get('mcp-session-id')
session.headers.update({'mcp-session-id': session_id})

# List available tools
tools = session.post('https://api.justbeep.it/mcp', json={
    'method': 'tools/list'
}).json()
Error Handling

The server returns standard HTTP status codes:

  • 200: Success
  • 401: Authentication required
  • 402: Payment required (for paid resources)
  • 404: Resource not found
  • 500: Server error

Protocol Specs

Protocol specifications documentation coming soon...

Open Source

This project is open source and available on GitHub.

View on GitHub