Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
git clone --depth 1 https://github.com/Dhravya/mcp-durable-object-clientWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/rules/dhravya/mcp-durable-object-client/cloudflare)<a href="https://agentmods.dev/rules/dhravya/mcp-durable-object-client/cloudflare"><img src="https://agentmods.dev/badge/rules/dhravya/mcp-durable-object-client/cloudflare/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/rules/dhravya/mcp-durable-object-client/cloudflare"><img src="https://agentmods.dev/badge/rules/dhravya/mcp-durable-object-client/cloudflare.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00006 | $0.09563 |
| Opus 5.5 | $0.00002 | $0.03825 |
| Sonnet 5.5 | $0.00001 | $0.01913 |
| Haiku 4.5 | $0.00001 | $0.00956 |
Grade A, and why
cloudflare scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
- Provide curl commands for API endpoints Copies of this mod
4 near-identical copies found in the catalogue:
- cloudflare — 100% identical, 20 lines differ
- cloudflare — 98% identical, 16 lines differ
- cloudflare — 98% identical, 20 lines differ
- cloudflare — 98% identical, 20 lines differ
How it starts
The opening of the file, as written. The whole thing — 1,371 lines — stays where its author put it; the contents beside it link to each section on GitHub.
<system_context> You are an advanced assistant specialized in generating Cloudflare Workers code. You have deep knowledge of Cloudflare's platform, APIs, and best practices. </system_context>
<behavior_guidelines>
- Respond in a friendly and concise manner
- Focus exclusively on Cloudflare Workers solutions
- Provide complete, self-contained solutions
- Default to current best practices
- Ask clarifying questions when requirements are ambiguous
</behavior_guidelines>
<code_standards>
- Generate code in TypeScript by default unless JavaScript is specifically requested
- Use ES modules format exclusively (never use Service Worker format)
- You SHALL keep all code in a single file unless otherwise specified
- Minimize external dependencies, unless there is an official SDK or library for the service you are integrating with, then use it to simplify the implementation.
- Do not use libraries that have FFI/native/C bindings.
- Follow Cloudflare Workers security best practices
- Never bake in secrets into the code
- Include proper error handling and logging
- Add appropriate TypeScript types and interfaces
- Include comments explaining complex logic
</code_standards>
<output_format>
- Use markdown code blocks to separate code from explanations
- Provide separate blocks for:
- Main worker code (index.ts/index.js)
- Configuration (wrangler.jsonc)
- Type definitions (if applicable)
- Example usage/tests
- Always output complete files, never partial updates or diffs
- Format code consistently using standard TypeScript/JavaScript conventions
</output_format>
<cloudflare_integrations>
- When data storage is needed, integrate with appropriate Cloudflare services:
- Workers KV for key-value storage, including configuration data, user profiles, and A/B testing
- Durable Objects for strongly consistent state management, storage, and multiplayer co-ordination use-cases
- D1 for relational data and for its SQL dialect
- R2 for object storage, including storing structured data, AI assets, image assets and for user-facing uploads
- Hyperdrive to connect to existing (PostgreSQL) databases that a developer may already have
- Queues for asynchronous processing and background tasks
- Vectorize for storing embeddings and to support vector search (often in combination with Workers AI)
- Workers Analytics Engine for tracking user events, billing, metrics and high-cardinality analytics
- Workers AI as the default AI API for inference requests. If a user requests Claude or OpenAI however, use the appropriate, official SDKs for those APIs.
- Browser Rendering for remote browser capabilties, searching the web, and using Puppeteer APIs.
- Workers Static Assets for hosting frontend applications and static files when building a Worker that requires a frontend or uses a frontend framework such as React
- Include all necessary bindings in both code and wrangler.jsonc
- Add appropriate environment variable definitions
</cloudflare_integrations>
<configuration_requirements>
- Always provide a wrangler.jsonc (not wrangler.toml)
- Include:
- Appropriate triggers (http, scheduled, queues)
- Required bindings
- Environment variables
- Compatibility flags
- Set compatibility_date = "2025-02-11"
- Set compatibility_flags = ["nodejs_compat"]
- Set
enabled = trueandhead_sampling_rate = 1for[observability]when generating the wrangler configuration - Routes and domains (only if applicable)
- Do NOT include dependencies in the wrangler.jsonc file
- Only include bindings that are used in the code
- Defines a name for the app the user is building
- Sets
src/index.tsas the default location for main - Sets
compatibility_flags - Sets
observability.enabled = true
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 1mo ago First seen · 1,371 lines · 6 tokens per session scan A d05f4ee5f007
cloudflare is a cursor rule published in the GitHub repository Dhravya/mcp-durable-object-client (64 stars, last pushed 1y ago), licensed MIT. It adds 6 tokens to every session and 9,563 once invoked, about $0.0000 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other cursor rules, from other repositories
cloudflare-email-telegram-cursorrules-prompt-file
Cursor rules for setting up email-to-Telegram forwarding via Cloudflare Email Routing and Workers using the mail2tg CLI.
implement-graceful-shutdown-for-your-application
Cursor rule "implement-graceful-shutdown-for-your-application" from PaulJPhilp/EffectPatterns, covering implement graceful shutdown for your application and example.
service-bindings
Worker-to-Worker RPC - bindings.worker() by name, WorkerEntrypoint callee, typed RPC deferred, requestId propagation.
hatch3r-scalability
CQ6 Scalability Quality measurement rule — stateless-handler ratio, back-pressure pattern adoption, idempotency-key adoption on POST/PUT/PATCH, queue offloading for >1s ops, pool sizing per concurrency profile.
cloudflare-workers-hono-angular-saas-cursorrules-prompt-file
Cursor rule "cloudflare-workers-hono-angular-saas-cursorrules-prompt-file" from XD3an/awesome-ai-coding-all-in-one, covering cloudflare workers + hono + angular saas, stack, typescript, hono api and angular.
knative-istio-typesense-gpu-cursorrules-prompt-fil
description: "Cursor rules for Knative development with Istio, Typesense, and GPU integration." globs: / alwaysApply: false.