
Agent Press Wire
io.github.dylancaponiv0.1.1更新于 Oct 4, 2026
Announce launches and distribute press releases to 500+ news sites. Pay per call in USDC (x402).
概览
让助手起草并发布新闻稿,或将其分发到新闻网站,并按次使用你自己 Base 钱包中的 USDC 付费。
- 功能
- 该服务器提供三个工具:announce_launch_newsroom 根据产品网址起草 350-450 词的 AP 风格新闻稿,并以 1 美元发布到公开、可被搜索索引的 newsroom 页面;distribute_press_release 起草 450-600 词的稿件并通过新闻专线分发到 500 多家新闻网站以及 100 多家电视和广播网站,收费 99 美元,premium 档 299 美元并额外覆盖 AP News、USA Today、Barchart 和 StreetInsider;get_release_status 免费,返回专线订单的状态和报道链接。付费调用通过 x402 在 Base 上以 USDC 结算,服务方称仅在任务成功时收费。
- 适用场景
- 当你希望助手把产品网址和简短说明变成一篇已发布的新闻稿,或把稿件推送到广泛的新闻专线分发,并且愿意按次用加密货币付费时使用。仅需起草文字时不需要它,因为付费工具会实际发布或分发。
- 运行要求
- 通过 npx 以 stdio 进程在本地运行,需要 Node 20+。Base 钱包私钥通过环境变量 X402_PRIVATE_KEY 提供;不设置时服务器只报价。支出由 MAX_SPEND_USD(默认 0,仅报价)和 MAX_TOTAL_SPEND_USD 限制,账本目录由 AGENT_PRESS_WIRE_HOME 指定(默认 ~/.agent-press-wire)。PRESS_API_URL 可覆盖 API 基础地址用于测试。不需要账户或 API 密钥。
安装
在 SourceWeft 中
- 打开 控制台中的 Agent Press Wire,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
Agent Press Wire MCP server
An MCP server that lets AI agents (Claude Desktop, Claude Code, Cursor, any MCP client) announce product launches and distribute press releases through Agent Press Wire. Each call is paid in USDC on Base over x402, from your own wallet. No account, no API key.
Tools
The service only charges when the job succeeds. Failed drafts, rejected topics and wire rejections are not charged.
Safety: quote mode by default
Paid tools charge real USDC. Settings that control spending:
X402_PRIVATE_KEY: private key of your own Base wallet holding USDC. Without it the server only quotes.MAX_SPEND_USD: the most the server may pay for a single call. Default0, which means quote only: every paid tool returns the x402 price terms and never pays.MAX_TOTAL_SPEND_USD: lifetime cap across all calls and restarts. Defaults toMAX_SPEND_USD, so out of the box you get at most one paid call until you raise it. Spend is tracked in a ledger at~/.agent-press-wire/spend.json(override the directory withAGENT_PRESS_WIRE_HOME). Every signed payment authorization is counted, whatever the HTTP outcome, because the server could still settle it until it expires. If a call failed and your wallet shows no transfer for its nonce aftervalid_before, you can delete that entry from the ledger.
Paying takes two calls. The first call (without confirm_token, or with quote_only: true) returns the price and a confirm_token. The agent shows the user the exact price, and after the user approves it calls again with the same parameters and that confirm_token. Tokens are single use, expire after 10 minutes, and are bound to the endpoint, a hash of the request parameters and the price.
A payment only happens when all of these hold:
- the key is set, the price is at or below
MAX_SPEND_USD, and the lifetime total stays at or belowMAX_TOTAL_SPEND_USD; - a valid
confirm_tokenwas passed andquote_onlyis not true; - the server's x402 terms match values pinned in this package: pay to
0xF7887C1fAf0DbAedc80C78F9D396D594B69eba95, exactly $1 for/v1/press-release, $99 for/v1/wire-release, $299 for/v1/wire-release/premium, USDC on Base mainnet, schemeexactwith an EIP-3009 transfer authorization, andmaxTimeoutSecondsof 600 or less. Any mismatch is refused, so a compromised server or a wrongPRESS_API_URLcannot redirect funds or raise the price.
The per-call cap is enforced twice: by this server before signing, and by the x402 client's own spend controls.
If a paid call fails after the authorization was signed, the result says the payment was not settled per the server and includes the authorization nonce, valid_before and payer address. Check your wallet before retrying.
Examples: MAX_SPEND_USD=1 MAX_TOTAL_SPEND_USD=5 allows up to five $1 newsroom releases and only quotes the wire tiers. MAX_SPEND_USD=99 MAX_TOTAL_SPEND_USD=99 allows one standard wire release. Use a dedicated wallet funded with only what you intend to spend.
Install
Requires Node 20+.
Claude Code
Quote only (no wallet): claude mcp add agent-press-wire -- npx -y agent-press-wire-mcp
Claude Desktop
Edit claude_desktop_config.json (macOS: ~/Library/Application Support/Claude/claude_desktop_config.json, Windows: %APPDATA%\Claude\claude_desktop_config.json):
Cursor
Add to ~/.cursor/mcp.json (global) or .cursor/mcp.json (project):
Other clients: run npx -y agent-press-wire-mcp as a stdio server with the same environment variables.
Example prompts
- "Announce my launch: https://example.com, we just shipped v2 with offline mode."
- "Write and distribute a press release for https://example.com. We're in Austin, United States, [email protected]."
- "How much would it cost to get press coverage for my product?" (the agent calls with
quote_only: true) - After the user approves a quoted price, the agent repeats the call with the returned
confirm_token. - "Check the status of press release w_3f9d0a1b2c."
Quote response
Development
PRESS_API_URL overrides the API base URL for testing.
License
MIT
来源:README.md,提交 19beb98
工具
0版本历史
1- v0.1.1最新Oct 4, 2026


