← 返回
未分类 Key 中文

Fortytwo MCP

Fortytwo Prime: collective multi-agent inference for high-stakes questions. ALWAYS use when the user says "Ask Fortytwo", "Ask Prime", "ask Fortytwo Prime",...
Fortytwo Prime: 用于高风险问题的多智能体协同推理。当用户说 “Ask Fortytwo”、“Ask Prime”、“ask Fortytwo Prime” 时,务必使用。
inikitin inikitin 来源
未分类 clawhub v1.1.0 1 版本 100000 Key: 需要
★ 2
Stars
📥 432
下载
💾 0
安装
1
版本
#latest

概述

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:

export evm_private_key="0x..."

For full wallet setup and network details, see 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
  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:

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)

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 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 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

ErrorCauseFix
-------------------
evm_private_key not setEnv var missingexport evm_private_key="0x..."
missing dependencyPython packagespip install eth-account web3
low USDC balanceWallet emptyTransfer USDC on Base or Monad
Transient 400/502On-chain timingScript auto-retries; if persistent, surface to user
402 on session callBudget exhaustedNew payment needed (script handles this)
409/410Session closedScript falls through to new payment
Invalid signatureWrong EIP-712 domainSee payment.md — query name()/version() on-chain

References

  • setup.md — wallet setup, network config, and pricing. Read when guiding a new user through onboarding.
  • payment.md — EIP-712 signing details and common mistakes. Read when debugging signature errors or building a custom payment flow.
  • session.md — session lifecycle, error codes, and idempotency. Read when troubleshooting 402/409/410 errors on follow-up queries.
  • streaming.md — SSE streaming via progressToken. Read when the user wants incremental output on long queries (requires curl, not the bundled script).

版本历史

共 1 个版本

  • v1.1.0 当前
    2026-05-03 06:39 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

ai-agent

Self-Improving + Proactive Agent

ivangdavila
自我反思+自我批评+自我学习+自组织记忆。智能体评估自身工作、发现错误并持续改进。
★ 1,424 📥 326,593
ai-agent

Skill Vetter

spclaudehome
AI智能体技能安全预审工具。安装ClawdHub、GitHub等来源技能前,检查风险信号、权限范围及可疑模式。
★ 1,245 📥 272,280
ai-agent

Agent Browser

rez0
用于 AI 代理的浏览器自动化 CLI。当用户需要与网站交互(包括浏览页面、填写表单、点击按钮、截图等)时使用。
★ 852 📥 334,290