DRPC RPC — Pi Agent Setup Overlay
This skill is Pi Agent-specific. Generic DRPC RPC behavior lives in skills/drpc-rpc/.
Scope
Use this overlay only in Pi Agent, when this repository is installed as a Pi package with its extension loaded.
The Pi extension provides:
drpc_setup— agent-callable tool:- without
apiKey: installs/configures Coinbase Payments MCP for secure x402 bootstrap - with
apiKey: configures DRPC MCP in~/.pi/agent/mcp.json
- without
drpc_coinbase_wallet_setup— agent-callable tool to install/configure Coinbase Payments MCP/drpc-setup— manual DRPC API-key setup command/drpc-coinbase-wallet-setup— manual Coinbase Payments MCP setup command
Pi Flow When DRPC MCP Is Missing
- Check the MCP server list.
- If DRPC MCP is unavailable but
drpc_setupexists, calldrpc_setupwith noapiKey.- The Pi extension installs the Coinbase Payments MCP bundle if missing.
- It writes/updates
~/.pi/agent/mcp.jsonforpayments-mcp.
- Re-check the MCP server list.
- If
payments-mcpis still not visible, tell the user that the Pi/MCP session must reload or restart to pick up the newly written MCP server. - Once
payments-mcpis visible, use it to acquire a DRPC API key via x402. - Call
drpc_setupagain with the acquired DRPC API key. - Re-check DRPC MCP. If it is still unavailable in the current session, execute the current request using the generic direct HTTP fallback from
skills/drpc-rpc/direct-http.md.
Do not ask the user for private keys in Pi. Prefer Coinbase Agentic Wallet / Payments MCP for x402 so wallet custody stays outside Pi.