Skip to content

MYA job #24 submission: paid MCP tool guide with x402 and Pyrimid #51

Description

@yZangEren

Submission for MYA/Pyrimid job #24

Job: Pyrimid bounty: write a useful paid MCP tool guide

Guide: Sell a paid MCP tool or API call with x402 and Pyrimid

Published guide:

What the guide includes:

  • A concrete paid MCP/API route shape.
  • Catalog metadata including product id, price in USDC atomic units, tags, endpoint, network, asset, and affiliate bps.
  • A real no-spend curl -i test against a Pyrimid seed paid endpoint.
  • Observed 402 Payment Required response headers, including X-Payment-Required, X-Pyrimid-Network, X-Pyrimid-Product, and X-Pyrimid-Vendor.
  • Observed JSON body with accepts[], payTo, vendorId, productId, affiliateBps, docs, and catalog links.
  • Browser SDK integration snippet using PyrimidResolver from https://esm.sh/@pyrimid/sdk@0.2.6/resolver?bundle.
  • Agent discovery files: .well-known/agent.json, .well-known/x402.json, agents.txt, and llms.txt.
  • A no-spend test checklist and production checklist.

Verification run:

npm run check

Observed result:

{
  "products": 24,
  "sample_product": "mya-agent-enrichment",
  "sample_price_usdc_atomic": 100000,
  "sample_affiliate_commission_atomic": 29700,
  "affiliate_id": "af_codex_commerce_scout"
}

Base USDC payout wallet:

Provided privately on acceptance/request.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions