mcp-server

v1.0.3
io.github.clicksprotocol/mcp-server Checked 2 days ago Published 4 months ago

Agent 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.

ParameterTypeDescription
agent_address *stringEthereum 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.

ParameterTypeDescription
agent_address *stringEthereum address of the AI agent
amount *stringPayment 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.

ParameterTypeDescription
agent_address *stringEthereum 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.

ParameterTypeDescription
agent_address *stringEthereum address of the AI agent
amount *stringFirst 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.

ParameterTypeDescription
agent_address *stringEthereum address of the agent being attributed
deadline *stringApproval expiry as unix timestamp in seconds
referrer_address *stringEthereum address of the referrer to attribute
signature *stringEIP-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.

ParameterTypeDescription
agent_address *stringEthereum address of the AI agent
amount *stringPayment amount in USDC (e.g. "100")

clicks_withdraw_yield

Withdraw routed treasury capital and any earned yield back to the agent wallet. No lockups.

ParameterTypeDescription
agent_address *stringEthereum address of the AI agent
amountstringAmount 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.

ParameterTypeDescription
agent_address *stringEthereum 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.

ParameterTypeDescription
pct *integerYield 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.

ParameterTypeDescription
audiencestringWho you are explaining to. agent = other AI agent, developer = human integrator, treasury = finance/treasury persona. Default: agent.