DRPCRPCPI
jiayaoqijia2026-10-26查看 208复制 1479
Pi Agent 专用的 DRPC 设置流程。当用户请求区块链数据、DRPC 设置、x402 API 密钥获取、Coinbase Payments MCP、pi-mcp-adapter,或 Pi 中未配置 DRPC MCP 时,与 drpc-rpc 一起使用。
📘如何使用这个技能
- 1复制技能内容·点击上方「Copy SKILL.md」复制全部内容,或 Download 下载到本地
- 2打开你的 AI 客户端·支持 Claude Code、Trae、Cursor、ChatGPT、DeepSeek、Kimi 等任意 AI 助手
- 3粘贴为系统提示/知识文件·Claude Code:放入 .claude/skills/ 目录;普通对话:作为首条消息发送并说「请严格按这份技能文档执行」
- 4直接提出你的需求·AI 会按技能定义的工作流、格式和约束来处理,无需再解释背景
💡 提示:技能生效后,每次对话只需一句需求,AI 会按 SKILL.md 的流程执行。
SKILL.md1883 chars
--- name: drpc-rpc-pi description: Pi Agent-specific DRPC setup flow. Use alongside drpc-rpc when the user asks for blockchain data, DRPC setup, x402 API-key acquisition, Coinbase Payments MCP, pi-mcp-adapter, or when DRPC MCP is not configured in Pi. --- # 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` - `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 1. Check the MCP server list. 2. If DRPC MCP is unavailable but `drpc_setup` exists, call `drpc_setup` with no `apiKey`. - The Pi extension installs the Coinbase Payments MCP bundle if missing. - It writes/updates `~/.pi/agent/mcp.json` for `payments-mcp`. 3. Re-check the MCP server list. 4. If `payments-mcp` is still not visible, tell the user that the Pi/MCP session must reload or restart to pick up the newly written MCP server. 5. Once `payments-mcp` is visible, use it to acquire a DRPC API key via x402. 6. Call `drpc_setup` again with the acquired DRPC API key. 7. 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.