cursorrules

A set of project rules for writing documentation and code. It requires Markdown for documentation and defines conventions for Git commits, Python style, linting, formatting, and type checking.

In plain words
What is it for?
Use it to guide README and documentation edits, commit messages, Python formatting and linting, type checks, and supported Python-version choices.
Why use it?
It keeps contributions consistent across the project and makes the expected tools and naming conventions clear before changes are made.

Cursor rule for Cursor

Install

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.

agentmods
npx agentmods add rules/cloudera/minimcp/cursorrules
Clone the repo
git clone --depth 1 https://github.com/cloudera/minimcp

Made for: Cursor.

Per session 919 This file is loaded in full into every session.
When invoked 919 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
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 $0.00919 $0.00919
Opus 5 $0.00460 $0.00460
Sonnet 5 $0.00184 $0.00184
Haiku 4.5 $0.00092 $0.00092

Measured yesterday against content hash b7cb07fa9ca9, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 yesterday.

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 · 86 lines

How it starts

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

General guidelines

Always use Markdown for documentation and README files.

Git

Commits should be of the following format:

<type>(<optional scope>): <description>

[optional body]
  • Keep commits small and focused.
  • Do not add "Made-with: Cursor".
  • Commit messages should explain why its being done, not what its doing.

The type is one of the following:

  • feat: A new feature
  • fix: A bug fix
  • chore: A chore (not user-facing)
  • docs: Documentation changes
  • refactor: A code refactor
  • test: A test change
  • perf: A performance improvement
  • style: A style change
  • build: A build change
  • ci: A CI change

Python Code Style & Formatting

  • Follow PEP 8 style guidelines.
  • Use type hints for all function signatures and class attributes.
  • Maximum line length is 120 characters (configured in pyproject.toml via ruff).
  • Use ruff for both linting and formatting. Do not use Black or flake8.
  • Use pyright for type checking. Do not use mypy.
  • Prefer explicit imports over wildcard imports (from x import *).
  • The project supports Python 3.10+. Do not use syntax or stdlib features that require 3.11 or later without a compatibility shim.

Async

  • Use anyio for all async primitives: anyio.sleep(), anyio.create_task_group(), anyio.Event(), anyio.CapacityLimiter(), etc.
  • Never use asyncio.sleep(), asyncio.create_task(), asyncio.gather(), or other asyncio-specific APIs directly.

MiniMCP API conventions

  • Register tools, prompts, and resources using the decorator interface: @mcp.tool(), @mcp.prompt(), @mcp.resource().
  • All tool/prompt/resource handler functions must have Pydantic-serializable argument and return types (they are validated by MCPFunc).
  • To access the active request context inside a handler, use mcp.context.get(). Never pass context as a function argument.
  • To send progress notifications from a handler, use mcp.context.get_responder().report_progress(...).
  • Use the ScopeT generic parameter when writing transport or MiniMCP subclasses that need custom per-request scope.
  • Custom exceptions should subclass MiniMCPError (user-facing) or InternalMCPError (internal-only).

Read the full file on GitHub · 86 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. yesterday First seen · 86 lines · 919 tokens per session scan A b7cb07fa9ca9

Subscribe to this mod's changes

cursorrules is a cursor rule published in the GitHub repository cloudera/minimcp (10 stars, last pushed 3mo ago), licensed Apache-2.0. It adds 919 tokens to every session, about $0.0046 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-31.