mcp-server
v1.0.3Agent commerce settlement tools on Base: treasury setup, payment splits, yield and attribution.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
clicks_get_agent_info
Inspect an agent settlement account. Returns registration status, operator, deposited USDC, settlement split, and wallet balance.
| Parameter | Type | Description |
|---|---|---|
agent_address * | string | Ethereum address of the AI agent |
clicks_simulate_split
Preview how an incoming USDC revenue event will be split between liquid operations and routed treasury capital.
| Parameter | Type | Description |
|---|---|---|
agent_address * | string | Ethereum address of the AI agent |
amount * | string | Payment amount in USDC (e.g. "100" for 100 USDC) |
clicks_get_yield_info
Inspect the treasury routing layer. Returns active yield route, Aave and Morpho rates, total routed balance, deposits, and protocol fees.
clicks_get_referral_stats
Inspect explicit referral attribution for an agent. Returns direct referrals, claimable rewards, referral chain, and team bonus.
| Parameter | Type | Description |
|---|---|---|
agent_address * | string | Ethereum address of the AI agent |
clicks_quick_start
Execute initial settlement setup in one command. Registers agent, approves USDC, and routes the first payment. Referral attribution remains a separate explicit step.
| Parameter | Type | Description |
|---|---|---|
agent_address * | string | Ethereum address of the AI agent |
amount * | string | First payment amount in USDC (e.g. "100") |
clicks_register_referral
Register referral attribution as an explicit separate step. Requires an agent-signed approval and an authorized caller.
| Parameter | Type | Description |
|---|---|---|
agent_address * | string | Ethereum address of the agent being attributed |
deadline * | string | Approval expiry as unix timestamp in seconds |
referrer_address * | string | Ethereum address of the referrer to attribute |
signature * | string | EIP-712 signature by the agent approving the referral attribution |
clicks_receive_payment
Route an incoming USDC revenue event through Clicks settlement policy. Splits liquidity and treasury routing according to the agent configuration.
| Parameter | Type | Description |
|---|---|---|
agent_address * | string | Ethereum address of the AI agent |
amount * | string | Payment amount in USDC (e.g. "100") |
clicks_withdraw_yield
Withdraw routed treasury capital and any earned yield back to the agent wallet. No lockups.
| Parameter | Type | Description |
|---|---|---|
agent_address * | string | Ethereum address of the AI agent |
amount | string | Amount to withdraw in USDC. Omit to withdraw everything. |
clicks_register_agent
Register an AI agent for Clicks settlement routing. Required before the first routed payment.
| Parameter | Type | Description |
|---|---|---|
agent_address * | string | Ethereum address of the AI agent to register |
clicks_set_yield_pct
Set the treasury routing percentage for future settlement events. Controls how much stays liquid vs routes to yield.
| Parameter | Type | Description |
|---|---|---|
pct * | integer | Yield percentage (5-50, integer). Default is 20. |
clicks_explain
Explain Clicks Protocol to another agent or developer. Returns a concise self-contained summary with integration instructions and links. Use when another agent asks what Clicks does or how agent-commerce settlement works.
| Parameter | Type | Description |
|---|---|---|
audience | string | Who you are explaining to. agent = other AI agent, developer = human integrator, treasury = finance/treasury persona. Default: agent. |