Brickken Plugin
[!IMPORTANT]
Run Base MCP onboarding first (see SKILL.md). Exposed Brickken MCP tools, hosted Brickken MCP HTTP API, or CLI prepare the operation; Base MCP collects the x402 approval. Brickken’s relayer signs, pays native gas, and broadcasts.
Overview
Brickken provides ERC-8004 identity, reputation, and agent-token operations on Base mainnet, with Base Sepolia available for tests. Prepare is free through exposed Brickken MCP tools, the hosted Brickken MCP HTTP API (https://mcp.brickken.com/mcp), or the Brickken CLI. Paid execution goes through Base MCP initiate_x402_request and complete_x402_request.
Brickken is initially the onchain operator in brickken-relayed mode. agentSetWallet changes the ERC-8004 operational wallet but does not transfer the ERC-721 identity. Transfer custody explicitly with agentTransferOwnership only when the user requests it.
Detection
Use this routing order:- If Brickken MCP tools are already exposed (
prepare_transactions,get_transaction_status), call them directly. - Otherwise, if the harness has an HTTP tool and
mcp.brickken.comis reachable via allowlist, call the hosted Brickken MCP API over HTTP. - With shell access, Brickken CLI is an alternative for prepare/status workflows.
Installation
Optional Brickken MCP connector install (convenience path):Endpoints
Hosted Brickken MCP endpoint:POST https://mcp.brickken.com/mcpContent-Type: application/jsonAccept: application/json, text/event-stream
- Some harnesses return plain JSON-RPC
result. - Some stream SSE chunks; parse the final JSON object.
- MCP wrappers may place payload in
result.content[0].textas a JSON string; parse and unwrap before mapping totxId,transactions, andx402Requirements.
Surface Routing
Commands
Use Brickkenprepare_transactions through exposed MCP tools, hosted HTTP API (tools/call), or brickken tx prepare --method <method> --file <json> --json with executionMode: "brickken-relayed". Use chainId: "8453" for Base mainnet and chainId: "84532" for Base Sepolia tests. Omit signerAddress in relayed mode. For agentCreateToken, omit agentWallet.
agentRegister requires name, description, image, and a non-empty services array. image must be a publicly reachable HTTPS URL for the agent logo; do not use a local path or omit it. Ask for the user’s logo, or use an explicitly authorized test fixture.
Supported methods:
- Identity:
agentRegister,agentSetURI,agentSetMetadata,agentSetWallet,agentTransferOwnership. - Reputation:
agentGiveFeedback,agentRevokeFeedback,agentAppendFeedbackResponse. - Agent tokens:
agentCreateToken,agentMintToken,agentBurnToken,agentTransferToken,agentTransferFromToken,agentApproveToken.
txId, one unsigned transaction, and x402Requirements. If MCP or CLI wraps these fields under prepared, unwrap that object before submission.
For pending operations, use Brickken get_transaction_status through exposed MCP tools or hosted HTTP API, or:
Ownership transfer
PrepareagentTransferOwnership with agentUuid or agentId and newOwner. This creates an ERC-721 safeTransferFrom from Brickken custody to the requested wallet.
Ownership transfer is separate from agentSetWallet. After transfer, Brickken’s relayer can no longer perform owner-only operations unless ownership is returned.
Base Sepolia testing
- Use operation and payment network
eip155:84532(base-sepoliain Base MCP). - The Brickken x402 test USDC is Circle USDC
0x036CbD53842c5426634e7929541eC2318f3dCF7ewith 6 decimals, settled via EIP-3009 (EIP-712 nameUSDC, version2, authorization window 300s). - Always fund and pay with the exact asset quoted in
x402Requirements; do not substitute another token. - Expected ERC-8004 test registries are identity
0x8004A818BFB912233c491871b3d84c89A494BD9eand reputation0x8004B663056A597Dffe9eCcC1965A193B7388713. - Before initiating x402, verify the payer holds the asset returned by
x402Requirements. Testnet balances may not appear in portfolio indexing; use a Base SepoliabalanceOfRPC read when necessary. - If prepare reports that the registry is not configured, stop. No valid
txIdexists and no payment should be initiated.
Orchestration
- Confirm the target (
baseorbase-sepolia), the irreversible action, custody, and any public or PII fields. - Prepare through exposed Brickken MCP tools, hosted HTTP API, or CLI with
chainId: "8453"for mainnet or"84532"for tests andexecutionMode: "brickken-relayed". - Require a scalar
txIdand exactly one transaction. Preserveto,data, andvalueexactly. - Validate that the quote network matches the operation network and that the payer holds the exact quoted asset. On Base Sepolia require Circle USDC
0x036CbD53842c5426634e7929541eC2318f3dCF7e. Parse the exact decimal fromextra.displayPriceasmaxPayment. - Call Base MCP
initiate_x402_requestwith methodPOST, the active Brickken environment’s/send-transactionsresource, the prepared body, andmaxPayment. Do not switch environments between prepare and send. - Show the approval URL. Poll Base MCP
get_request_statusonly after the user acts, then callcomplete_x402_request(requestId). - Report confirmed only when Brickken returns
status: "confirmed"and a transaction hash. - On
status: "pending", use Brickkenget_transaction_statusthrough exposed MCP tools or hosted HTTP API, orbrickken tx status. Do not resubmit or pay the sametxIdagain. Brickken’s reconciliation settles after confirmation or releases on revert/authorization expiry. - To transfer an identity to the Base Account, call Base MCP
get_wallets, prepareagentTransferOwnershipwith that address asnewOwner, and run a separate x402 approval.
Submission
Use Base MCPinitiate_x402_request, get_request_status, and complete_x402_request. Exposed Brickken MCP tools, hosted HTTP API, or CLI produce the prepare result; Base MCP authorizes the quoted payment and completes the paid send resource.
Request body:
Example Prompts
“Register my agent on Base.” PrepareagentRegister through exposed Brickken MCP tools, hosted HTTP API, or CLI, disclose Brickken custody, complete the Base MCP x402 approval, and return agentUuid, txId, and the operation hash.
“Set my Base wallet as the agent wallet.” Use agentSetWallet with the required wallet authorization signature. Explain that this changes the operational wallet only.
“Send the agent NFT to my Base wallet.” Call Base MCP get_wallets, explicitly confirm loss of Brickken custody, then prepare and execute agentTransferOwnership with the Base Account as newOwner.
Risks & Warnings
- Custody. Brickken initially owns the ERC-721 identity and controls agent tokens created by its relayer.
- Ownership transfer.
agentTransferOwnershipis irreversible and disables later Brickken owner-only relayed actions for that identity. - PII. Agent profiles and feedback may publish free text or contact data to IPFS/onchain storage.
- Payment. Prepare is free. Send charges the exact quoted USDC amount through Base MCP x402 approval.
- Retries. Never replay a
txIdafter an operation hash exists. Poll status instead.