Urgent.News

What's breaking now, across thousands of outlets.

AI

Cloudflare brings paid access to MCP tools — who controls the agent’s spending?

Cloudflare opened a closed beta of its Monetization Gateway on Wednesday, giving domain owners a way to charge AI agents The post Cloudflare brings paid access to MCP tools — who controls the agent’s spending? appeared first on The New Stack .

Cloudflare brings paid access to MCP tools — who controls the agent’s spending?

Cloudflare has launched a closed beta of its Monetization Gateway, allowing domain owners to charge AI agents for accessing APIs, MCP tools, websites, and datasets. The gateway embeds payment authorization within HTTP requests using the x402 protocol and only releases the requested resource after payment is settled in USDC on the Base blockchain. The beta is restricted to eligible U.S. sellers and buyers, with Cloudflare's own AI Gateway already utilizing it to charge for inference per request.

For developers of AI agents, a paid tool call introduces an additional decision in the execution loop, as the runtime must first determine whether the agent has authorization to spend before proceeding. Spending authority should ideally reside outside the model, and Cloudflare's Virtual Wallets aim to achieve this by enabling owners of Account Wallets to set allowances, allowlists, and maximum transaction sizes that apply regardless of which tool the agent decides to call.

On the client side, the Agents SDK's withX402Client wrapper includes a confirmation callback that receives payment requirements before any money is moved. Passing null as the callback allows the agent to pay automatically. This mechanism also enables teams to require approval before a paid call is executed, similar to MCP's elicitation feature that pauses a tool call and seeks user intervention.

Budgets beyond per-call caps may not offer sufficient protection, as an agent limited to $0.10 per call could still spend $10 over the course of a lengthy research or coding task without triggering a budget limit. Developers can impose task-level spending caps using Virtual Wallets, but the platform itself does not dictate the maximum amount a single task can spend.

Variable pricing adds complexity to budget management, as the price may change between authorization and settlement. Cloudflare supports both fixed-price requests and variable pricing through the upto option, where clients authorize a ceiling, and sellers report the actual charge. TrueFoundry's TrueForge AI Gateway allows teams to enforce budgets and rate limits across agents, and variable pricing necessitates tracking two boundaries: the maximum cost of an individual tool call and the remaining task budget after each paid call.

Written by urgent.news from The New Stack's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at thenewstack.io →

More in AI

Doctors Push Back on RFK Jr.'s AI Comments

(MedPage Today) -- Physician groups are pushing back against recent remarks by HHS Secretary Robert F. Kennedy Jr. suggesting that artificial intelligence (AI) can be superior to physicians for making diagnoses and prescribing drugs. "Statements...

More from Thursday 1 October →