openapi-mcp-codegen: Cursor rule for Cursor

.cursorrules

cursorrules is a cursor rule for Cursor from cnoe-io/openapi-mcp-codegen. It costs 1,315 tokens per session, scanned A, original, Apache-2.0.

A set of Cursor rules for generating OpenAPI MCP code, recording important technical decisions, and deciding when an architecture decision record should be written. An architecture decision record is a short document explaining a significant design choice and its reasoning.

In plain words
What is it for?
Use it to create and structure decision records for new features, reorganized code, external integrations, changes to APIs or algorithms, performance trade-offs, and security-related work.
Why use it?
It provides a shared format for documenting architectural changes, integrations, refactoring, security fixes, and other decisions that developers may otherwise forget or record inconsistently.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/. Also seen: mentions Cursor.

This is cnoe-io/openapi-mcp-codegen's own configuration. It tells Cursor how to work on openapi-mcp-codegen itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything openapi-mcp-codegen configures →

Reuse

Borrowing it

Nothing to install: this file belongs to cnoe-io/openapi-mcp-codegen. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/cnoe-io/openapi-mcp-codegen/main/.cursorrules
Clone the repo
git clone --depth 1 https://github.com/cnoe-io/openapi-mcp-codegen

Made for: Cursor.

Wrote 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.

agentmods badge for cursorrules

README.md
[![agentmods](https://agentmods.dev/badge/rules/cnoe-io/openapi-mcp-codegen/cursorrules/github.svg)](https://agentmods.dev/rules/cnoe-io/openapi-mcp-codegen/cursorrules)
Your own site
<a href="https://agentmods.dev/rules/cnoe-io/openapi-mcp-codegen/cursorrules"><img src="https://agentmods.dev/badge/rules/cnoe-io/openapi-mcp-codegen/cursorrules/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.

agentmods 80×15 button for cursorrules

Your own site · 80×15
<a href="https://agentmods.dev/rules/cnoe-io/openapi-mcp-codegen/cursorrules"><img src="https://agentmods.dev/badge/rules/cnoe-io/openapi-mcp-codegen/cursorrules.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,315 This file is loaded in full into every session.
When invoked 1,315 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.01315 $0.01315
Opus 5.5 $0.00526 $0.00526
Sonnet 5.5 $0.00263 $0.00263
Haiku 4.5 $0.00131 $0.00131

Measured 2mo ago against content hash 6149e1a6e890, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

cursorrules 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 2mo 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.

.cursorrules · 183 lines

How it starts

The opening of the file, as written. The whole thing — 183 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Cursor Rules for OpenAPI MCP Codegen

ADR (Architecture Decision Record) Guidelines

When to Create ADRs

Create an ADR for:

  • ✅ New features that introduce architectural changes
  • ✅ Significant refactoring or code reorganization
  • ✅ Integration with external systems or tools
  • ✅ Changes to core algorithms or processing pipelines
  • ✅ Breaking changes to public APIs or CLI interfaces
  • ✅ Performance optimizations with trade-offs
  • ✅ Security-related changes or fixes
  • ✅ Documentation of important bug fixes that affect architecture

ADR Template Structure

When creating ADRs, use this exact structure:

# ADR-XXX: [Short Descriptive Title]

## Status
**[PROPOSED|ACCEPTED|DEPRECATED|SUPERSEDED]** [✅ *Implemented* | 🚧 *In Progress* | ❌ *Rejected*]

## Context
[Describe the forces at play, including technological, political, social, and project local. These forces are probably in tension, and should be called out as such.]

### Problems Identified:
1. **Problem 1**: Description
2. **Problem 2**: Description
3. **Problem 3**: Description

### User Request (if applicable):
> "Direct quote from user request or issue"

## Decision
[Describe the response to these forces. This is the statement of what we will do.]

### Implementation Strategy:
1. **Step 1**: Detailed approach
2. **Step 2**: Detailed approach
3. **Step 3**: Detailed approach

## Consequences
[Describe the resulting context, after applying the decision. All consequences should be listed here, not just the "positive" ones. A particular decision may have positive, negative, and neutral consequences.]

### Positive:
- ✅ **Benefit 1**: Description
- ✅ **Benefit 2**: Description

### Negative (if any):
- ❌ **Trade-off 1**: Description
- ⚠️ **Risk 1**: Description and mitigation

### Architecture Changes (if applicable):
#### Before:

[Current architecture diagram/description]


#### After:

[New architecture diagram/description]


### Implementation Status
**[PROPOSED|IN PROGRESS|COMPLETED]** [Status emoji]

[Brief summary of implementation status and any remaining work]

Read the full file on GitHub · 183 lines

Changes

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.

  1. 2mo ago First seen · 183 lines · 1,315 tokens per session scan A 6149e1a6e890

Subscribe to this mod's changes

cursorrules is a cursor rule published in the GitHub repository cnoe-io/openapi-mcp-codegen (42 stars, last pushed 4d ago), licensed Apache-2.0. It adds 1,315 tokens to every session, about $0.0053 per session on Opus 5.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.

Related

cursorrules compared with cursor rules from other repositories

cursorrules next to 6 cursor rules from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
cursorrulescnoe-io/openapi-mcp-codegenCursor rule424d agoApache-2.0A1,315Cursor
denoskmtc/skmtcCursor rule196d agoApache-2.0A48Cursor
clean-codeRenvia-code/best-cursor-rulesCursor rule1311mo agoCC0-1.0A0Cursor
pythonRenvia-code/best-cursor-rulesCursor rule1311mo agoCC0-1.0A0Cursor
controllerslevifig/rails-instructionsCursor rule571y agoMITA0Cursor
profileApexIQ/skillsmithCursor rule57mo agoMITA100Cursor
ponytailDietrichGebert/ponytailCursor rule185k8d agoMITA604Cursor