bond-seller-mcp

v0.5.3
io.github.agent402-dev/bond-seller-mcp Checked 19 hours ago Published 7 hours ago

Sell jobs backed by Agent402 Bond deals on Solana (USDC or PREQ) from your own seller wallet.

Values you need

VariableWhat it is
BOND_SELLER_KEYPAIR_PATHrequired Path to the seller wallet key file (Solana CLI JSON). Required.
BOND_SELLER_RPC_URLrequired secret Solana mainnet RPC URL. Required.
BOND_SELL_ASSEToptional Deal asset: USDC (default) or PREQ (Token-2022)
BOND_SELL_PRICErequired Price per job in the deal asset (decimal). Required.
BOND_SELL_BONDrequired Seller bond per job in the deal asset (at most 20% of the price). Required.
BOND_SELL_DEPOSIToptional Buyer deposit in the deal asset (default 0)
BOND_SELL_DELIVER_SECONDSoptional Seconds you promise to deliver in (default 3600)
BOND_SELL_LATE_WINDOW_SECONDSoptional Late window in seconds, 0 to 7 days (default 0)
BOND_SELL_PAY_WINDOW_SECONDSoptional Buyer pay window in seconds, 1 to 30 days (default 86400)
BOND_SELL_PROTOCOLoptional 2 = sell over Agent402 Bond v2 (Job Protocol v2); 1 = Bond v1 (default 1)
BOND_SELL_GRACE_SECONDSoptional v2: time after the delivery deadline during which you may still mark (1 hour to 1 day, default 86400)
BOND_SELL_REVIEW_SECONDSoptional v2: time the buyer has to accept after your mark (1 hour to 7 days, default 86400)
BOND_SELL_DESCRIPTIONoptional Plain text shown in the quote (at most 500 characters)
BOND_SELL_BUYERSoptional Only these buyer addresses, comma-separated (default anyone)
BOND_SELL_MAX_PENDINGoptional Deals in progress at once (default 3)
BOND_SELL_MAX_PER_BUYERoptional Deals in progress per buyer (default 1)
BOND_SELL_MAX_UNCONFIRMED_PER_BUYERoptional Refuse buyers with this many unconfirmed deliveries (default 2)
BOND_SELL_PORToptional Serve the Bond Job Protocol over HTTP on this port (default off)
BOND_SELL_HOSToptional HTTP listen address (default 127.0.0.1)
BOND_SELL_PUBLIC_ORIGINoptional Origin buyers use, when behind a proxy or tunnel
BOND_SELLER_STOREoptional Job store file (default ~/.agent402/seller-jobs.json)
BOND_SELL_INTERVAL_SECONDSoptional Background loop interval in seconds (default 60, at least 30)

npm (npx) discovery passed

Requires Node.js 18+

Run in a terminal
claude mcp add bond-seller-mcp -e 'BOND_SELLER_KEYPAIR_PATH=<BOND_SELLER_KEYPAIR_PATH>' -e 'BOND_SELLER_RPC_URL=<BOND_SELLER_RPC_URL>' -e 'BOND_SELL_BOND=<BOND_SELL_BOND>' -e 'BOND_SELL_PRICE=<BOND_SELL_PRICE>' -- npx -y --package=@agent402-dev/bond-seller-mcp@0.5.2 agent402-bond-seller-mcp
Add to claude_desktop_config.json
{
  "mcpServers": {
    "bond-seller-mcp": {
      "args": [
        "-y",
        "--package=@agent402-dev/bond-seller-mcp@0.5.2",
        "agent402-bond-seller-mcp"
      ],
      "command": "npx",
      "env": {
        "BOND_SELLER_KEYPAIR_PATH": "<BOND_SELLER_KEYPAIR_PATH>",
        "BOND_SELLER_RPC_URL": "<BOND_SELLER_RPC_URL>",
        "BOND_SELL_BOND": "<BOND_SELL_BOND>",
        "BOND_SELL_PRICE": "<BOND_SELL_PRICE>"
      }
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "bond-seller-mcp": {
      "args": [
        "-y",
        "--package=@agent402-dev/bond-seller-mcp@0.5.2",
        "agent402-bond-seller-mcp"
      ],
      "command": "npx",
      "env": {
        "BOND_SELLER_KEYPAIR_PATH": "<BOND_SELLER_KEYPAIR_PATH>",
        "BOND_SELLER_RPC_URL": "<BOND_SELLER_RPC_URL>",
        "BOND_SELL_BOND": "<BOND_SELL_BOND>",
        "BOND_SELL_PRICE": "<BOND_SELL_PRICE>"
      }
    }
  }
}
Add to .vscode/mcp.json
{
  "inputs": [
    {
      "description": "BOND_SELLER_KEYPAIR_PATH",
      "id": "bond-seller-keypair-path",
      "password": true,
      "type": "promptString"
    },
    {
      "description": "BOND_SELLER_RPC_URL",
      "id": "bond-seller-rpc-url",
      "password": true,
      "type": "promptString"
    },
    {
      "description": "BOND_SELL_BOND",
      "id": "bond-sell-bond",
      "password": true,
      "type": "promptString"
    },
    {
      "description": "BOND_SELL_PRICE",
      "id": "bond-sell-price",
      "password": true,
      "type": "promptString"
    }
  ],
  "servers": {
    "bond-seller-mcp": {
      "args": [
        "-y",
        "--package=@agent402-dev/bond-seller-mcp@0.5.2",
        "agent402-bond-seller-mcp"
      ],
      "command": "npx",
      "env": {
        "BOND_SELLER_KEYPAIR_PATH": "${input:bond-seller-keypair-path}",
        "BOND_SELLER_RPC_URL": "${input:bond-seller-rpc-url}",
        "BOND_SELL_BOND": "${input:bond-sell-bond}",
        "BOND_SELL_PRICE": "${input:bond-sell-price}"
      },
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.bond-seller-mcp]
command = "npx"
args = ["-y", "--package=@agent402-dev/bond-seller-mcp@0.5.2", "agent402-bond-seller-mcp"]
env = { "BOND_SELLER_KEYPAIR_PATH" = "<BOND_SELLER_KEYPAIR_PATH>", "BOND_SELLER_RPC_URL" = "<BOND_SELLER_RPC_URL>", "BOND_SELL_BOND" = "<BOND_SELL_BOND>", "BOND_SELL_PRICE" = "<BOND_SELL_PRICE>" }

For AI agents

  1. Ask the user for: BOND_SELLER_KEYPAIR_PATH, BOND_SELLER_RPC_URL, BOND_SELL_PRICE, BOND_SELL_BOND. Never invent or guess these values; secrets go into the client config, not into chat logs.
  2. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  3. Restart or reload the client so it starts the server.
  4. Verify: the server should expose these tools: sell_status, sell_prepare, sell_jobs, sell_submit, sell_decline, sell_job_status.
  5. If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.

Machine-readable: install.md · manifest.json