cron402

io.github.userdefault13由 GitHub 帳號 userdefault13 發布v1.1.1更新於 Oct 24, 2026

Schedule webhook calls, pay per run in USDC on Base via x402. Ten tools, built for small models.

已驗證STDIO僅桌面效率與工作流金融

概覽

AI 產生的概覽

讓助理安排定時 webhook 呼叫,並透過代理錢包在 Base 上以 USDC 按次付費。

可以做什麼
提供十個工具來建立與管理定時 webhook 工作。免費工具包含使用指南、錢包餘額查詢、排程驗證並列出接下來五次執行時間、工作狀態、列出本機建立的工作,以及暫停、恢復或刪除工作。付費工具用於建立工作或新增預付執行次數,並自動處理 x402 付款。排程可用自然語言或原始 cron 運算式撰寫,回應中帶有 next_step 提示。
適用情境
適合讓助理設定週期性的對外 webhook 呼叫(例如定時通知或整合),並以 USDC 按次付費而非訂閱。也適合需要小型模型安全驅動排程的情境,因為付費呼叫前可免費驗證排程。
執行需求
透過 npx 以 stdio 在本機執行,需要 Node.js。付費工具需要 CRON402_PRIVATE_KEY 中已入金的代理錢包私鑰;沒有它伺服器會以唯讀方式啟動,免費工具仍可使用。選用變數:CRON402_NETWORK(預設 eip155:8453,Base 主網)、CRON402_API_URL、CRON402_STATE_DIR(預設 ~/.cron402)。需要能連線 cron402 API 的網路。
安裝前請注意
伺服器要求提供 CRON402_PRIVATE_KEY 錢包私鑰,該私鑰控制資金,持有者可動用錢包中的 USDC。付費工具每次執行花費 0.008 USDC,加值金額為 0.008 至 0.80 USDC,會實際支出資金。管理工具會用該私鑰在本機簽章,delete_cron 會永久刪除工作。建立的工作 id 會存放在本機狀態目錄中。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 cron402,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

cron402-mcp

MCP server for cron402 — schedule webhook calls and pay per run in USDC on Base via x402. No accounts, no API keys; your wallet is the credential.

Built so that small models can drive it safely: schedules can be written in plain English, every schedule can be validated for free before a paid call, and every response carries an explicit next_step telling the model what to do next.

Price: $0.008 USDC per run · Network: Base mainnet (eip155:8453)

Quick start

bash
export CRON402_PRIVATE_KEY=0x...   # fund with USDC on Basenpx -y cron402-mcp

Optional env vars:

VariableDefaultDescription
CRON402_PRIVATE_KEY(required for paid tools)Agent wallet private key. Without it the server still starts and the free tools work.
CRON402_NETWORKeip155:8453CAIP-2 id; use eip155:84532 for Base Sepolia
CRON402_API_URLproduction WorkerOverride API base URL
CRON402_STATE_DIR~/.cron402Where created job ids are remembered for list_crons

MCP client config

Cursor / Claude Desktop:

json
{  "mcpServers": {    "cron402": {      "command": "npx",      "args": ["-y", "cron402-mcp"],      "env": {        "CRON402_PRIVATE_KEY": "0x..."      }    }  }}

OpenCode (opencode.json):

json
{  "mcp": {    "cron402": {      "type": "local",      "command": ["npx", "-y", "cron402-mcp"],      "environment": {        "CRON402_PRIVATE_KEY": "0x..."      },      "enabled": true    }  }}

Tools

ToolCostDescription
cron402_guidefreeThe whole procedure, prices and rules — the tool a model should read first
check_walletfreeAddress, network, USDC/ETH balance, and how many runs it can afford
preview_schedulefreeValidate a schedule and list the next 5 run times in UTC
create_cron$0.008Create a scheduled webhook job (includes 1 run credit)
topup_cron$0.008–$0.80Add 1, 10, or 100 prepaid run credits
get_cronfreeJob status, credits, last 20 executions
list_cronsfreeJobs created from this machine, with live status
pause_cronfreePause a job (EIP-712 signed)
resume_cronfreeResume a paused job (requires credits)
delete_cronfreePermanently delete a job (EIP-712 signed)

Paid tools handle x402 payment automatically. Management tools sign locally with your key.

Designed for weak models

  • Plain-English schedules. "every 15 minutes", "every weekday at 9am", "every monday at 5pm", "weekly" and raw cron all work. Ambiguous or impossible phrases ("every 2 weeks", "at teatime") fail loudly with a fix, rather than silently scheduling the wrong thing.
  • Timezones. Pass timezone: "America/New_York" and the time-of-day is converted to the UTC cron the API stores, with a DST caveat in the response.
  • Free dry run. preview_schedule shows the next 5 fire times before a cent is spent, and create_cron re-validates locally so a bad schedule never costs money.
  • Money guardrails. Paid tools say PAID in their descriptions, name the exact amount, and every response tells the model not to call them twice.
  • Actionable errors. Insufficient funds, unreachable API, an unowned job or a localhost target each come back as { ok: false, error, next_step }.
  • Job memory. Created job ids are written to ~/.cron402/jobs.json so list_crons can recover them — the API has no list endpoint.
  • Starts without a key. A missing CRON402_PRIVATE_KEY degrades to read-only instead of failing to boot, so the model can explain what is missing.

Agent skill

A drop-in skill teaching an agent this whole workflow lives at skills/cron402/SKILL.md:

bash
mkdir -p .claude/skills/cron402curl -sL https://raw.githubusercontent.com/userdefault13/ai-cron-site/main/skills/cron402/SKILL.md \  -o .claude/skills/cron402/SKILL.md

Links

License

MIT

來源:packages/mcp/README.md,提交 9c23532

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

1
  1. v1.1.1最新Sep 16, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分