mcp

v0.1.5
@maroo-chain/mcp Checked 15 hours ago Published 10 days ago

Maroo Chain MCP — chain knowledge, chain reads and a local-key testnet wallet for AI clients.

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

maroo_discover Discover the Maroo knowledge base

Get an adaptive overview of Maroo Network. Call this FIRST in any conversation about Maroo. The response adapts based on what you have already explored — it will suggest different next steps depending on session state.

maroo_kb_lookup Read a knowledge base entry

Get the full content of a specific knowledge base entry by ID. Use after maroo_kb_search to read complete documentation for a concept, API, or guide.

ParameterTypeDescription
id *stringEntry ID (from maroo_kb_search results or docs://maroo/ resource URIs)

maroo_chain_info Chain info

Get current Maroo chain status: block height, gas price, network name, RPC URL, and explorer link. Use this to verify chain connectivity or include network context in responses.

maroo_wallet_create Create wallet

Create a new Maroo wallet. Generates a random private key and encrypts it with AES-256-GCM at ~/.maroo/keystore/. The passphrase is needed for signing transactions. NEVER share or log the passphrase.

ParameterTypeDescription
passphrase *stringEncryption passphrase (min 8 chars). Used to encrypt the private key at rest.

maroo_wallet_import Import wallet

Import an existing private key into the Maroo keystore. Encrypts with AES-256-GCM. Use this if you already have a wallet from another source.

ParameterTypeDescription
passphrase *stringEncryption passphrase for keystore
privateKey *stringHex-encoded private key (0x-prefixed, 32 bytes)

maroo_balance Wallet balance

Read the OKRW balance for any Maroo address. When the session has a wallet loaded the `address` argument is optional. Also returns the address's on-chain PCL daily-volume snapshot ({amount, maxAmount, remaining}, the window maroo_pcl_limits reports: maxAmount/remaining null = no daily cap binds the address, e.g. lifted by a KYC attestation; "?" = could not be determined) and the off-chain daily-spending tracker so the caller has the full "how much can I move?" picture in one round trip.

ParameterTypeDescription
addressstringAddress to query (defaults to the session wallet).

maroo_preflight Preflight a transfer

Pre-check a transfer BEFORE sending. Validates local policy limits, PCL compliance (the chain's global policy: per-transfer cap, daily volume, KYC attestation), and sufficient balance. ALWAYS call this before maroo_send for Regulated Path transfers. Returns detailed pass/fail for each check with recovery strategies.

ParameterTypeDescription
amount *stringAmount in OKRW (e.g. "100.5")
to *stringRecipient address

maroo_pcl_check Check PCL policy

Compliance preview against the PCL precompile. Evaluates the chain's live global policy for a native OKRW transfer of `value` from `sender` — on testnet: at most 2,000,000 OKRW per transfer and 10,000,000 OKRW per UTC day. A KYC EAS attestation on a regular wallet lifts both caps. For an agent wallet the daily cap is counted per owner (the owners of the agents bound to it) and binds every owner without the attestation. An owner's attestation lifts the per-transfer cap and exempts that owner's own daily counter; the agent wallet's own attestation lifts the per-transfer cap, and exempts a dail…

ParameterTypeDescription
sender *stringSender address — the wallet whose PCL limits are checked
value *stringOKRW amount as decimal string (e.g. "500" or "0.5")
targetstring(optional, currently unused) Recipient address

maroo_pcl_limits PCL limits

Read the PCL limits for an address from the chain's live global policy (on testnet: at most 2,000,000 OKRW per transfer and 10,000,000 OKRW per UTC day. A KYC EAS attestation on a regular wallet lifts both caps. For an agent wallet the daily cap is counted per owner (the owners of the agents bound to it) and binds every owner without the attestation. An owner's attestation lifts the per-transfer cap and exempts that owner's own daily counter; the agent wallet's own attestation lifts the per-transfer cap, and exempts a daily counter only when the wallet is itself one of its owners (so a KYC'd a…

ParameterTypeDescription
addressstringAddress to query (defaults to the session wallet). 40 hex chars, 0x-prefixed.

maroo_send Send OKRW

Send OKRW to an address. Automatically runs preflight checks (local policy + PCL + balance) as a safety net before signing. Requires wallet passphrase for signing. For Regulated Path transfers, call maroo_preflight first to preview checks. An error with code TX_STATUS_UNKNOWN means the signed transaction may already be pending or mined: check maroo_tx_status with its `txHash` before any resend. TX_FAILED after signing means the node refused it before its mempool (not broadcast); `rejectedBy: "pcl"` means the chain's PCL policy check refused it when the RPC received it.

ParameterTypeDescription
amount *stringAmount in OKRW (e.g. "100.5")
passphrase *stringKeystore passphrase to decrypt private key for signing
to *stringRecipient address

maroo_tx_status Transaction status

Get transaction receipt by hash. Returns status (success/reverted), block number, gas used, and logs. Use after maroo_send to confirm a transaction landed. TX_NOT_FOUND means there is no receipt yet. It may still be pending, but the node can accept a transaction and drop it before mining it (PCL is checked when the RPC receives a transaction and again when the pool rechecks it, so a transfer can be dropped if the daily counter or an attestation changes before it is mined), so a TX_NOT_FOUND that lasts may mean it was dropped. TX_NOT_FOUND does not tell a pending transaction from a dropped one,…

ParameterTypeDescription
txHash *stringTransaction hash to look up