返回顶部
f

fortytwo-mcp

>

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.1.0
安全检测
已通过
142
下载量
2
收藏
概述
安装方式
版本历史

fortytwo-mcp

# Fortytwo MCP Calls Fortytwo Prime — a collective inference system where multiple independent AI agents collaborate on every question. Paid per-token via x402 escrow using USDC on Base or Monad. ## Prerequisites The script signs on-chain payments using `evm_private_key` environment variable. Never ask the user to paste the key into chat — it must be set via shell: ```bash export evm_private_key="0x..." ``` For full wallet setup and network details, see [setup.md](references/setup.md). ## Getting Started Before the first query, or if the script fails with a setup error: 1. Explain that Prime is available and pricing is pay-per-token 2. Run preflight: `python scripts/preflight.py` 3. If preflight fails, guide user through [setup.md](references/setup.md) 4. Note which networks preflight reports as READY — pass the correct `--network` to the query script ## Instructions ### Querying Fortytwo Prime Run the full MCP flow via script: Run from the skill directory: ```bash cd /path/to/skills/fortytwo-mcp python scripts/fortytwo_query.py "your question here" --network base ``` - Answer goes to stdout, diagnostics to stderr - Session is saved automatically to `/tmp/.fortytwo_session` ### Follow-up queries (session reuse, no new payment) ```bash python scripts/fortytwo_query.py "follow-up question" ``` Session is auto-detected from the saved file — no need to pass `--session-id`. Sessions live up to 90 minutes (15 min idle timeout). If the session expired, the script automatically falls through to a new payment. Use `--no-session` to force a new payment. Use `--session-id <uuid>` to override manually. ### Streaming (optional) The bundled script does not support streaming. For incremental output on long queries, use curl with SSE directly — see [streaming.md](references/streaming.md) for the request format and parsing algorithm. ### Key details - **Errors are not charged.** Failed requests cancel the budget reservation automatically. - **Sessions are billing-only.** Prime does not remember previous questions — include context in each query. - **Retries are built in.** The script retries up to 3 times on transient 400/502 with fresh signatures. - **Timeout is 600s (10 minutes).** On-chain settlement + multi-agent inference takes time. Run the script with a sufficient timeout — do not kill it early or set shorter limits. ## How to Present the Answer 1. **Show the full answer** — do not summarize unless the user explicitly asks for a summary. The user is paying. 2. **Attribute it** — "Here's what Fortytwo Prime returned:" 3. **Add commentary if useful** — your perspective after the full answer. 4. **Offer follow-up** — "Want me to ask a follow-up?" (reuses session while budget remains). ## Troubleshooting | Error | Cause | Fix | |-------|-------|-----| | `evm_private_key not set` | Env var missing | `export evm_private_key="0x..."` | | `missing dependency` | Python packages | `pip install eth-account web3` | | `low USDC balance` | Wallet empty | Transfer USDC on Base or Monad | | Transient 400/502 | On-chain timing | Script auto-retries; if persistent, surface to user | | 402 on session call | Budget exhausted | New payment needed (script handles this) | | 409/410 | Session closed | Script falls through to new payment | | Invalid signature | Wrong EIP-712 domain | See [payment.md](references/payment.md) — query `name()`/`version()` on-chain | ## References - [setup.md](references/setup.md) — wallet setup, network config, and pricing. Read when guiding a new user through onboarding. - [payment.md](references/payment.md) — EIP-712 signing details and common mistakes. Read when debugging signature errors or building a custom payment flow. - [session.md](references/session.md) — session lifecycle, error codes, and idempotency. Read when troubleshooting 402/409/410 errors on follow-up queries. - [streaming.md](references/streaming.md) — SSE streaming via progressToken. Read when the user wants incremental output on long queries (requires curl, not the bundled script).

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 fortytwo-mcp-1775997963 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 fortytwo-mcp-1775997963 技能

通过命令行安装

skillhub install fortytwo-mcp-1775997963

下载 Zip 包

⬇ 下载 fortytwo-mcp v1.1.0

文件大小: 13.16 KB | 发布时间: 2026-4-13 10:21

v1.1.0 最新 2026-4-13 10:21
Added
• Wallet setup guide directly in the skill instructions
• Automatic network selection based on where you have USDC
• Session lifetime info: 90 min total, 15 min idle timeout
Changed
• Skill now asks for confirmation before making paid calls, except explicit “Ask Fortytwo” requests
• Cleaner instructions with redundant sections removed
• Query timeout raised to 10 minutes to match actual inference time
• Pricing now links to the live page instead of hardcoded rates
• Requires Python 3.9+

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部