pico-casper-mcp

v1.0.1
io.github.Gomathi1806/pico-casper-mcp Checked 1 day ago Published 1 day ago

Let an AI agent buy content and API calls on Casper, paying per call in CSPR over x402.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

wallet_status

The agent wallet: Casper account public key, live on-chain CSPR balance, spend cap, and funding instructions if empty.

discover_content

List paid content available on this Pico deployment: id, title, teaser description, USD price, creator. Use get_quote for the exact CSPR amount.

get_quote

Fetch the HTTP 402 payment requirements for one content item: recipient key, exact CSPR/motes amount at the live rate, and transfer memo.

ParameterTypeDescription
linkId *stringContent id from discover_content
paramsobjectQuery parameters for an API endpoint, e.g. { deployHash: "abc..." }

pay_and_unlock

Pay for a content item with the agent's own CSPR (native transfer on Casper), wait for on-chain verification, and return the unlocked content URL. Hard-capped at 25 CSPR per item (MCP_MAX_SPEND_CSPR).

ParameterTypeDescription
linkId *stringContent id from discover_content
paramsobjectQuery parameters for an API endpoint, from get_quote's resource.params