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/tencentcloudbase/cloudbase-ai-toolkit/mcp_design_reviewgit clone --depth 1 https://github.com/TencentCloudBase/CloudBase-AI-ToolkitWhat 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.01483 | $0.01483 |
| Opus 5 | $0.00741 | $0.00741 |
| Sonnet 5 | $0.00297 | $0.00297 |
| Haiku 4.5 | $0.00148 | $0.00148 |
Grade A, and why
mcp_design_review 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 2d 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 — 85 lines — stays where its author put it; the contents beside it link to each section on GitHub.
/mcp_design_review
Function
Check whether all MCP tools and specs follow the unified MCP design guidelines.
Trigger Condition
When the user types /mcp_design_review.
Behavior
-
Collect design sources
- Read MCP-related specs (e.g.
specs/agent-functionality/,specs/interactive-tools/,specs/code-quality-analysis/REFACTORING_CHECKLIST.md,specs/function-tool-ai-ergonomics/if present). - Read MCP implementation files (primarily
mcp/src/tools/*.ts, especiallyfunctions.ts,env.ts,storage.ts, etc).
- Read MCP-related specs (e.g.
-
Evaluate design against the guidelines
For each tool and its surrounding design, check:-
Confirmed target shape takes precedence
- If the current spec, task, or explicit user feedback has already locked a shape (for example “this module must converge to one
queryXxxand onemanageXxx”), treat deviations as failures, not optional suggestions. - Do not propose a locally elegant alternative if it breaks an already confirmed module boundary, naming style, or migration target.
- If the current spec, task, or explicit user feedback has already locked a shape (for example “this module must converge to one
-
Tool responsibility & naming
- Single clear responsibility per tool (no “god” tools).
- Names follow
verbNounstyle and reflect the domain (e.g.getFunctionLayers,writeFunctionLayers).
-
Query / manage tool pattern (per module)
- Each logical domain module (functions, env, storage, database, etc.) MUST expose at most two primary tools:
- a query tool:
queryXxx– strictly read‑only, no side effects, focused on queries. - a manage tool:
manageXxx– performs all mutations via a requiredactionfield.
- a query tool:
- Benchmark-critical read-only helpers are allowed only as explicit, documented exceptions when folding them into
queryXxxwould materially reduce agent success rate or obscure structure discovery. - PostgreSQL schema-qualified structure, RLS/policy visibility, and key/index inspection should be exposed through
queryPgDatabase(action="schema"), not a standalone schema tool, unless a future review explicitly approves a separate capability boundary. - The
manageXxxtool:- Uses a string literal union for
action(e.g."create" | "update" | "delete" | "attachLayer" | "detachLayer"). - Uses action-specific parameters that are easy for AI to map correctly. Prefer the repository’s established style first; do not invent namespaced actions or grouped payloads unless the surrounding modules already use that pattern.
- Treats missing/unknown
actionas invalid and fails safely.
- Uses a string literal union for
- Tool count control: avoid creating many small tools (e.g.
createX,updateX,deleteX) in the same domain when a singlemanageXxxwith multiple actions is sufficient. - Before approving any new fine-grained tool, explicitly check whether the capability can be merged into an existing
queryXxx/manageXxxprimary entrance in the same module. - Do NOT add a new tool when the underlying capability already exists and the only motivation is discoverability, canonical SDK naming, evaluator familiarity, prompt phrasing, or alias convenience. In those cases, prefer improving the existing tool description, examples, schema hints, action names, docs, or evaluation contract.
- Only approve a new tool when it introduces a genuinely different capability boundary, permission surface, or irreducible input shape that would make the existing primary entrance meaningfully worse.
- Safety & annotations: tools must clearly indicate whether they are read‑only or mutating in their metadata, and dangerous actions (delete, publish, reset, overwrite, etc.) must require explicit confirmation flags with safe defaults.
- Each logical domain module (functions, env, storage, database, etc.) MUST expose at most two primary tools:
-
Cross-module consistency
- Compare the proposed schema with neighboring modules in
mcp/src/tools/, not just the local file. - Flag designs that introduce one-off conventions, such as namespaced action strings or special payload grouping, when other modules use flat action names and top-level fields.
- Check whether target identifiers stay consistent across actions (
functionName,layerName,triggerName) instead of mixing genericnamewith domain-specific names.
- Compare the proposed schema with neighboring modules in
-
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.
- 2d ago First seen · 85 lines · 1,483 tokens per session scan A a413c1cb17d2
mcp_design_review is a cursor rule published in the GitHub repository TencentCloudBase/CloudBase-AI-Toolkit (1,087 stars, last pushed 2d ago), licensed MIT. It adds 1,483 tokens to every session, about $0.0074 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
lean-ctx
Token optimization via lean-ctx Hybrid (Shell Hook + MCP).
n8n-workflow-format
Use n8n-as-code TypeScript workflow files and explicit sync discipline for n8n workflow work.
meta-theory-dispatch
Meta-theory dispatch entry and deep Fetch requirement for Cursor.
engine-internals
Coding Agent engine implementation details (Cursor + Claude Code) — reference when modifying engine.ts or debugging Agent behavior.
nopua
The anti-PUA. Drives AI with wisdom and trust instead of fear. Activates on: task failed 2+ times, about to give up, suggesting user do it manually, stuck in loops, passive behavior.
creating-agents-md
Creating agents.md files with plain markdown format (NO frontmatter) - use when creating agents.md packages for PRPM or generating project context files.