billflare.

Removing unneeded Durable Objects from MCP servers on Workers

Justin (@interjc) describes moving read-only MCP servers from McpAgent, which starts a Durable Object per session, to stateless createMcpHandler, and shares a prompt for auditing Workers bindings and runaway usage patterns.

Products
WorkersDurable Objects
Source
Author experience𝕏
Author
Justin (@interjc)

Key points

  • The author found several MCP servers on an early template using McpAgent, which starts a Durable Object per session even though his tools are read-only. He upgraded the MCP SDK to 2.0, switched to stateless createMcpHandler, retired the old SSE transport, removed the DO binding and added a deleted_classes migration.
  • He also disabled workers.dev and preview URLs, kept only the custom domain, and added an Origin allowlist and request timeouts, so billing is left to requests and CPU time.
  • His audit prompt asks an agent to list every binding and trigger in the wrangler config, flag unused defaults, look for per-request DO creation, self-renewing setAlarm, Worker–DO call loops, unbounded retries, long connections without Hibernation and uncapped pagination, and report before changing or deploying anything.

Original sources

  1. Original post

    Read on 𝕏

    Justin (@interjc) describes moving read-only MCP servers from McpAgent, which starts a Durable Object per session, to stateless createMcpHandler, and shares a prompt for auditing Workers bindings and runaway usage patterns.

    Justin

    @interjc · Original 𝕏 post

    如果你是 Cloudflare Workers Paid 用户,就得防着网络攻击或死循环代码打爆账单。最近就有老哥因为低端模型写的草台代码,产生了一万多美金的 DO 消费 看到这事我赶紧翻了下自己的项目,发现几个 MCP Server 还是早期模板的写法,用的是 McpAgent,每个会话都会起一个 Durable… pic.twitter.com/eTIUfje660
Community resourceWorkers +1

cloudflare-cost-notify: a Worker cron that posts daily billable usage and free-tier counts to Discord

yutamoty/cloudflare-cost-notify is an unlicensed GitHub repository, pushed on 16 November 2026. A Cloudflare Worker cron at 00:00 UTC (described as 09:00 JST) reads the Billable Usage API and GraphQL Analytics API and posts yesterday’s cost, the day-over-day change, month-to-date spend, and Workers request / R2 storage / R2 Class A and B counts to a Discord webhook. A default $0.00 alert threshold turns the message red. Because the repository has no license, this entry is a summary only and the README is not archived in sources.json.

Other

rokhas.service: PayPal charged $11.17 USD for servicerokhas.com, but the registration status could not be confirmed.

Cloudflare Community user rokhas.service says that after a first registration attempt for servicerokhas.com did not complete because online payments were not enabled on the bank card, a retry via PayPal on November 11, 2026 successfully charged $11.17 USD (114.10 MAD) to Cloudflare Inc. The author cannot confirm whether the domain registration was completed or the payment correctly applied, asks how to verify the status, and wants to avoid making another payment for the same domain.

Author experienceWorkers +2

The free plan wall people miss is CPU time, not request count

风易 (@Michael_liyang) says the Workers Free wall most often missed is the 10 ms CPU time per invocation, which fails the request outright even when the daily quota is not used up; he suggests keeping cron handlers to dispatch only and moving heavy work into small queued steps with progress saved in D1.