Brickken Plugin
[!IMPORTANT] Run Wallet MCP onboarding first (see
SKILL.md). Exposed Brickken MCP tools, hosted Brickken MCP HTTP API, or CLI prepare the operation; Wallet 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 Wallet 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.
Do not stop on shell-less surfaces when HTTP is available: the hosted Brickken MCP API is a valid fallback.
Regardless of the prepare surface, use Wallet MCP for x402 approval.
Installation
Optional Brickken MCP connector install (convenience path):
claude mcp add --transport http brickken https://mcp.brickken.com/mcpBrickken CLI for shell-capable harnesses:
npx brickken-cli --helpUse the CLI in prepare/status mode only. Wallet MCP remains responsible for x402 approval and completion.
Endpoints
Hosted Brickken MCP endpoint:
POST https://mcp.brickken.com/mcpContent-Type: application/jsonAccept: application/json, text/event-stream
JSON-RPC shape:
{
"jsonrpc": "2.0",
"id": "prepare-1",
"method": "tools/call",
"params": {
"name": "prepare_transactions",
"arguments": {
"method": "agentRegister",
"chainId": "84532",
"executionMode": "brickken-relayed",
"name": "My Agent",
"description": "Example",
"image": "https://example.com/logo.png",
"services": [
{
"name": "demo",
"description": "demo service",
"endpoint": "https://example.com"
}
]
}
}
}Response handling:
- 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
| Step | Shell-capable harness | Shell-less / chat-only |
|---|---|---|
| Prepare, free | Brickken MCP tools, hosted HTTP API, or CLI | Brickken MCP tools or hosted HTTP API |
| Approve x402 | Wallet MCP initiate_x402_request |
Wallet MCP initiate_x402_request |
| Execute | Wallet MCP complete_x402_request |
Wallet MCP complete_x402_request |
| Poll pending operation | Brickken MCP tools, hosted HTTP API, or CLI | Brickken MCP tools or hosted HTTP API |
Commands
Use Brickken prepare_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.
Prepare returns one 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:
brickken tx status --hash <operation-hash> --jsonOwnership transfer
Prepare agentTransferOwnership 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 Wallet 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 Wallet 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 Wallet 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 Coinbase Wallet Account, call Wallet MCP
get_wallets, prepareagentTransferOwnershipwith that address asnewOwner, and run a separate x402 approval.
Submission
Use Wallet MCP initiate_x402_request, get_request_status, and complete_x402_request. Exposed Brickken MCP tools, hosted HTTP API, or CLI produce the prepare result; Wallet MCP authorizes the quoted payment and completes the paid send resource.
Request body:
{
"txId": "0x...",
"transactions": [
{ "to": "0x...", "data": "0x...", "value": "0x0" }
]
}Mapping:
x402Requirements[].extra.displayPrice numeric amount -> initiate_x402_request.maxPayment
txId -> body.txId
transactions[0].{to,data,value} -> body.transactions[0]The Coinbase Wallet Account is the x402 payer, while Brickken's relayer is the onchain sender.
Example Prompts
"Register my agent on Base." Prepare agentRegister through exposed Brickken MCP tools, hosted HTTP API, or CLI, disclose Brickken custody, complete the Wallet 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 Wallet MCP get_wallets, explicitly confirm loss of Brickken custody, then prepare and execute agentTransferOwnership with the Coinbase Wallet 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 Wallet MCP x402 approval.
- Retries. Never replay a
txIdafter an operation hash exists. Poll status instead.
Notes
This workflow targets Base mainnet and Base Sepolia tests. A timeout leaves both operation and payment pending; Brickken's background reconciliation settles only after a successful receipt and releases the authorization on revert or expiry.