Cursor rule
.cursor/rules/cursor-mcp-optimization.mdcCursor 3.7 MCP optimization: browser Design Mode, canvases, Figma, Cloudflare tools, MCP Apps structured content, and direct action patterns.
Cursor rules
Quality
65/100
Scores the file, not the repository.Length
865 words
10 headings · 5 code blocksRepository
124
— · pushed 49 days agoLast changed
3 days ago
First indexed 3 days ago.123456# Cursor 3.7 MCP Optimization78Current through **Cursor 3.7** (Jun 2026). Direct guidance for Cursor's MCP and integrated surfaces. Use the right tool for each job.910## Browser Tools (cursor-ide-browser)1112**Always do before any interaction:**13```141. browser_tabs with action: "list" -> check current tabs/URLs152. browser_snapshot -> get current page structure and refs16```1718**Interaction pattern:**19```201. Identify the target ref from snapshot (use exact ref, not coordinates)212. For clicks: prefer snapshot refs over mouse_xy coordinates223. For forms: use browser_fill for existing content, browser_type to append234. After ANY action that changes page: take fresh snapshot24```2526**Coordinate clicks ONLY when:**27- A fresh screenshot confirms the exact visual target28- No snapshot ref is available29- The target is visually verifiable (button, link)3031**Never do:**32- Click without a fresh snapshot first33- Reuse old screenshot coordinates34- Assume page state without verification3536## Browser Design Mode (Cursor 3.7)3738Design Mode is a **user-driven** overlay in the integrated browser — agents do not invoke it as a tool. When the user selects elements there, treat those selections as ground truth for UI edits (same discipline as `multimodal-grounded`):3940- **Multi-select:** two or more elements selected together carry code, layout, and visual relationships — use them for parity edits, deduplication, or batch component tweaks.41- **Voice input:** transcribed voice instructions are user intent; honor them even if the agent is mid-run.42- **Agent path unchanged:** still snapshot → ref-based interaction for automation; Design Mode complements, not replaces, the MCP browser flow.4344## Canvas (Cursor 3.7)4546Canvases are live React artifacts beside the chat — dashboards, reports, analyses, internal tools. Load the `canvas` skill before creating or editing `.canvas.tsx` files.4748**When to use a canvas:**49- Structured MCP or tabular deliverables where the data *is* the output (prefer canvas over markdown tables)50- Interactive reports the user may share or iterate on (context usage breakdowns, audits, timelines)5152**3.7 canvas features:**53- **Design Mode in canvases** — user can select and annotate UI elements directly; treat annotations like browser Design Mode selections.54- **Context usage report** — interactive token breakdown (prompt, tools, rules, skills); useful for compression decisions on M3 long-context work.55- **Embedded prompt buttons** — canvases can run follow-up prompts; keep button text bounded and explicit.56- **Full-screen share** — shared canvases open in the browser for presentation; not a substitute for app UI verification.5758## Figma Tools (plugin-figma-figma)5960**Design-to-code workflow:**61```621. Call get_design_context with fileKey and nodeId632. Adapt output to project's existing stack/components643. Do NOT use raw Figma output as final code65```6667**URL parsing:**68- `figma.com/design/:fileKey/:fileName?node-id=:nodeId` -> convert "-" to ":" in nodeId69- `figma.com/board/:fileKey/:fileName` -> FigJam, use get_figjam70- `figma.com/make/:makeFileKey/:makeFileName` -> use makeFileKey7172**When designer provides screenshots:**73- Use get_screenshot for visual verification74- Translate Figma design tokens to project's token system75- Never copy exact Figma hex values without checking project palette76- For M3 multimodal parity, the design screenshot is the contract — cite the file path in the report7778## Cloudflare Tools7980**Load these skills before Cloudflare work:**81- `cloudflare/SKILL.md` — comprehensive platform guidance82- `wrangler/SKILL.md` — CLI usage and best practices83- `workers-best-practices/SKILL.md` — production Worker patterns8485**Before deploying:**86```871. Read wrangler skill for correct syntax882. Verify secrets/bindings in wrangler.jsonc893. Run wrangler dev locally first90```9192**MCP auth:** If a Cloudflare MCP server has `mcp_auth`, call it before using tools.9394## MCP Apps Structured Content9596Since Cursor 3, **MCP Apps structured content** lets tools return richer structured outputs (typed objects, lists, tables) instead of prose blobs.9798- When a tool returns structured content, **prefer the structured form** over reconstructing from prose.99- Surface the structured result faithfully in the report — do not paraphrase the shape.100- A few plugin families (Vercel, Linear, Cloudflare) already return structured outputs of this kind; check the descriptor before assuming a tool returns plain text.101- If the runtime supports it, render tabular or nested results as a canvas or table, not as a markdown dump.102103## MCP General Rules104105```1061. Read the tool schema BEFORE calling unfamiliar MCP tools1072. Use exact parameter names from the schema1083. If tool unavailable, say so and use next best exposed path1094. Do not infer hidden parameters or old API versions1105. If the tool returns structured content, use the structured form rather than the prose form111```112113## Marketplace plugins114115Plugins installed from the [Cursor Marketplace](https://cursor.com/marketplace) extend agents with MCPs, skills, and related capabilities. Treat them like any other MCP surface: **inventory** what the session exposes, **read descriptors/schemas** before first use, then call the smallest valid tool — same as in `tool-discovery.mdc`.116117**Rollout caveat (Cursor 3.7):** third-party plugin imports now **default to off for Enterprises** when unset, while preserving explicit Admin overrides. If you are working in an Enterprise workspace, confirm the plugin import policy with the Admin before relying on a marketplace plugin.118119## Capability Mapping Checklist120121Before acting, confirm:122- [ ] Direct native tool exists for this action123- [ ] MCP tool exists with current schema (and structured-content support if relevant)124- [ ] Browser interaction confirmed via snapshot125- [ ] Fallback path identified if primary fails126
Also in madebyaris/advance-minimax-m3-cursor-rules
Diff this repo’s formatsOne repository carrying more than one format is the comparison this product exists for: does anyone actually write different content in each file, or is one a copy of the other?
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| madebyaris/advance-minimax-m3-cursor-rules.cursor/rules/3d-graphics.mdc · 124 | Cursor rules | lint-formatstyle | 62/100 | 3 days ago | |
| madebyaris/advance-minimax-m3-cursor-rules.cursor/rules/agent-teams.mdc · 124 | Cursor rules | setupstylegitapi+3 | 73/100 | 3 days ago | |
| madebyaris/advance-minimax-m3-cursor-rules.cursor/rules/cursor-agent-orchestration.mdc · 124 | Cursor rules | styledo-notagent-behaviour | 73/100 | 3 days ago | |
| madebyaris/advance-minimax-m3-cursor-rules.cursor/rules/cursor-tools-mastery.mdc · 124 | Cursor rules | stylemonorepoagent-behaviour | 58/100 | 3 days ago | |
| madebyaris/advance-minimax-m3-cursor-rules.cursor/rules/design-systems.mdc · 124 | Cursor rules | lint-formatstyleuido-not | 77/100 | 3 days ago | |
| madebyaris/advance-minimax-m3-cursor-rules.cursor/rules/fable5-reasoning.mdc · 124 | Cursor rules | style | 58/100 | 3 days ago | |
| madebyaris/advance-minimax-m3-cursor-rules.cursor/rules/devops-infrastructure.mdc · 124 | Cursor rules | stylesecuritydeploymentdo-not | 79/100 | 3 days ago | |
| madebyaris/advance-minimax-m3-cursor-rules.cursor/rules/language-agnostic-patterns.mdc · 124 | Cursor rules | teststylearchtesting-strategy+5 | 58/100 | 3 days ago | |
| madebyaris/advance-minimax-m3-cursor-rules.cursor/rules/minimax-m3-core.mdc · 124 | Cursor rules | buildtestlint-formatstyle+4 | 75/100 | 3 days ago | |
| madebyaris/advance-minimax-m3-cursor-rules.cursor/rules/minimax-m3-self-evolution.mdc · 124 | Cursor rules | styledo-notagent-behaviour | 65/100 | 3 days ago | |
| madebyaris/advance-minimax-m3-cursor-rules.cursor/rules/minimax-m3-status-verification.mdc · 124 | Cursor rules | styletypestesting-strategyapi+1 | 65/100 | 3 days ago | |
| madebyaris/advance-minimax-m3-cursor-rules.cursor/rules/minimax-m3-verification.mdc · 124 | Cursor rules | buildtestlint-formatstyle+3 | 89/100 | 3 days ago | |
| madebyaris/advance-minimax-m3-cursor-rules.cursor/rules/minimax-mcp-tools.mdc · 124 | Cursor rules | styleagent-behaviour | 54/100 | 3 days ago | |
| madebyaris/advance-minimax-m3-cursor-rules.cursor/rules/mobile-cross-platform.mdc · 124 | Cursor rules | setupperformancedeployment | 68/100 | 3 days ago | |
| madebyaris/advance-minimax-m3-cursor-rules.cursor/rules/skill-authoring.mdc · 124 | Cursor rules | stylesecurityapi | 58/100 | 3 days ago | |
| madebyaris/advance-minimax-m3-cursor-rules.cursor/rules/clarify-first-prompting.mdc · 124 | Cursor rules | styledo-not | 61/100 | 3 days ago | |
| madebyaris/advance-minimax-m3-cursor-rules.cursor/rules/fable5-coding-craft.mdc · 124 | Cursor rules | teststylearchtesting-strategy+1 | 58/100 | 3 days ago | |
| madebyaris/advance-minimax-m3-cursor-rules.cursor/rules/model-compatibility.mdc · 124 | Cursor rules | styledeploymentagent-behaviour | 66/100 | 3 days ago | |
| madebyaris/advance-minimax-m3-cursor-rules.cursor/rules/tool-discovery.mdc · 124 | Cursor rules | styletypesdatabaseagent-behaviour | 58/100 | 3 days ago |
Diff against .cursor/rules/3d-graphics.mdc Diff against .cursor/rules/agent-teams.mdc Diff against .cursor/rules/cursor-agent-orchestration.mdc Diff against .cursor/rules/cursor-tools-mastery.mdc Diff against .cursor/rules/design-systems.mdc Diff against .cursor/rules/fable5-reasoning.mdc Diff against .cursor/rules/devops-infrastructure.mdc Diff against .cursor/rules/language-agnostic-patterns.mdc Diff against .cursor/rules/minimax-m3-core.mdc Diff against .cursor/rules/minimax-m3-self-evolution.mdc Diff against .cursor/rules/minimax-m3-status-verification.mdc Diff against .cursor/rules/minimax-m3-verification.mdc Diff against .cursor/rules/minimax-mcp-tools.mdc Diff against .cursor/rules/mobile-cross-platform.mdc Diff against .cursor/rules/skill-authoring.mdc Diff against .cursor/rules/clarify-first-prompting.mdc Diff against .cursor/rules/fable5-coding-craft.mdc Diff against .cursor/rules/model-compatibility.mdc Diff against .cursor/rules/tool-discovery.mdc
Similar configs
Same format, overlapping stack, ranked by quality.
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| TechSquidTV/Hermes.cursor/rules/10-hermes-api.mdc · 45 | Cursor rules | testlint-formatstylearch+5 | 100/100 | 3 days ago | |
| langflow-ai/langflow.cursor/rules/docs_development.mdc · 153k | Cursor rules | setupbuildtestlint-format+7 | 97/100 | 3 days ago | |
| TechSquidTV/Hermes.cursor/rules/20-hermes-api-tests.mdc · 45 | Cursor rules | teststyletesting-strategysecurity+3 | 97/100 | 3 days ago | |
| nerds-odd-e/doughnut.cursor/rules/cli.mdc · 49 | Cursor rules | setupbuildteststyle+4 | 96/100 | 3 days ago | |
| iloveitaly/llm-ide-rules.cursor/rules/general.mdc · 13 | Cursor rules | teststyledo-notagent-behaviour+1 | 92/100 | 3 days ago | |
| danielvm-git/bigpowers.cursor/rules/guard-git.mdc · 119 | Cursor rules | stylearchgitsecurity+2 | 89/100 | 3 days ago | |
| nerds-odd-e/doughnut.cursor/rules/frontend-testing.mdc · 49 | Cursor rules | buildteststyletesting-strategy+2 | 89/100 | 3 days ago | |
| danielvm-git/bigpowers.cursor/rules/organize-workspace.mdc · 119 | Cursor rules | buildstylegitdeployment+2 | 89/100 | 3 days ago |
