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.
npx agentmods add rules/phughesmcr/deno-mcp-template/projectgit clone --depth 1 https://github.com/phughesmcr/deno-mcp-templateWrote 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/phughesmcr/deno-mcp-template/project)<a href="https://agentmods.dev/rules/phughesmcr/deno-mcp-template/project"><img src="https://agentmods.dev/badge/rules/phughesmcr/deno-mcp-template/project.svg" alt="Measured on agentmods" 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 | $0.03007 | $0.03007 |
| Opus 5 | $0.01503 | $0.01503 |
| Sonnet 5 | $0.00601 | $0.00601 |
| Haiku 4.5 | $0.00301 | $0.00301 |
Grade A, and why
project scanned grade A with 0 findings 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 5d 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.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 190 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Deno MCP Template Development Guide
Deno version: ^2.6.0
Build/Development Commands
Start: deno task start
Dev mode: deno task dev
Format, lint, and type-check code: deno task ci
Rebuild MCP App HTML (after editing mcp-ui/): deno task build:mcp-ui (Deno installs npm deps from mcp-ui/deno.json imports into mcp-ui/node_modules using mcp-ui/deno.lock; no Node.js)
Tests with coverage: deno task test:coverage
Benchmarks: deno task bench
Architecture
src/mcp/ vs src/app/
src/mcp/— MCP server: prompts, resources, tools, tasks, apps, server wiring.src/app/— Host shell: transport bootstrapping, HTTP (Hono onDeno.serve), lifecycle, permissions preflight, KV, cron, signals.
HTTP stack
Middleware includes rate limiting, CORS, optional bearer auth (see src/app/http/hono.ts), security headers, request timeouts, and session handling.
Transport-scoped McpServer instances
The MCP TypeScript SDK allows one active transport per protocol instance. This template creates a separate McpServer per transport binding, not one shared instance:
- STDIO: one long-lived
McpServerfor the lifetime of the STDIO transport (createAppinsrc/app/app.ts). - HTTP (streamable): one new
McpServerper MCP HTTP session (factory increateHttpServer/ Hono setup).
Process-wide state — Deno KV, resource subscription tracker, task queue worker, etc. — lives outside those instances. The factory receives the same McpServerFactoryContext each time (including shared subscriptions) so STDIO and all HTTP sessions stay consistent.
Security and transport toggles
- Host header validation (aligned with MCP SDK Hono middleware): on loopback listen addresses,
Hostmust belocalhost,127.0.0.1, or[::1](port ignored). With--dnsRebindingand configured allowed hosts, that list applies instead. Binding to all interfaces without DNS rebinding allowlists logs a one-time startup warning. - DNS rebinding protection on the streamable HTTP transport is opt-in:
MCP_DNS_REBINDING=trueor--dnsRebinding(with--origin/--hostper CLI rules). UseMCP_ALLOWED_ORIGINSandMCP_ALLOWED_HOSTSfor Origin and transport header checks. - CORS allowed origins default to empty; browser clients need
MCP_ALLOWED_ORIGINSor--origin. - HTTP: on by default; disable with
MCP_NO_HTTP=trueor--no-http. - STDIO: on by default; disable with
MCP_NO_STDIO=trueor--no-stdio.
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.
- 5d ago First seen · 190 lines · 3,007 tokens per session scan A 0690e3fca2c2
project is a cursor rule published in the GitHub repository phughesmcr/deno-mcp-template (33 stars, last pushed 4mo ago), licensed MIT. It adds 3,007 tokens to every session, about $0.0150 per session on Opus 5. A static security scan graded it A with 0 findings. 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
cloudbase-rules
Cursor rule "cloudbase-rules" from TencentCloudCommunity/mcp-server, covering 📋 cloudbase ai 开发规则指南, 🎯 开发流程规范 - 场景识别与最佳实践, 1. 场景识别, 2. 规则文件选择 and 3. 开发确认.
typescript-coding-rule
It allows a subset of JSDoc tags. Most tags must occupy their own line, with the tag at the beginning of the line.
miniprogram-development
Cursor rule "miniprogram-development" from TencentCloudCommunity/mcp-server, covering 微信小程序开发规则, 项目结构, 开发工具, 云开发集成 and 小程序认证特性.
web-development
Cursor rule "web-development" from TencentCloudCommunity/mcp-server, covering web 前端开发规则, 项目结构, 部署和预览, cloudbase web sdk 使用 and 登录认证最佳实践.
workflows
开发工作流程和部署流程.
atelier
Atelier UI/UX and Backend Architecture Quality Gate.