kafka-schema-reg-mcp: Cursor rule for Cursor

.cursorrules

cursorrules is a cursor rule for Cursor from aywengo/kafka-schema-reg-mcp. It costs 1,361 tokens per session, scanned A, original, MIT.

A set of Cursor coding rules for a Kafka Schema Registry MCP project. Kafka Schema Registry stores and manages the data formats used by Kafka messages.

In plain words
What is it for?
Use it when editing this Python project to follow its Python 3.10+ target, Black formatting, isort import order, Ruff checks, and related code-quality rules.
Why use it?
It gives contributors consistent expectations for Python compatibility, type hints, formatting, imports, linting, and code structure.

Cursor rule for Cursor

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

This is aywengo/kafka-schema-reg-mcp's own configuration. It tells Cursor how to work on kafka-schema-reg-mcp 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 kafka-schema-reg-mcp configures →

Reuse

Borrowing it

Nothing to install: this file belongs to aywengo/kafka-schema-reg-mcp. 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/aywengo/kafka-schema-reg-mcp/main/.cursorrules
Clone the repo
git clone --depth 1 https://github.com/aywengo/kafka-schema-reg-mcp

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/aywengo/kafka-schema-reg-mcp/cursorrules.svg)](https://agentmods.dev/rules/aywengo/kafka-schema-reg-mcp/cursorrules)
Your own site
<a href="https://agentmods.dev/rules/aywengo/kafka-schema-reg-mcp/cursorrules"><img src="https://agentmods.dev/badge/rules/aywengo/kafka-schema-reg-mcp/cursorrules.svg" alt="Measured on agentmods" height="20"></a>
Per session 1,361 This file is loaded in full into every session.
When invoked 1,361 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.1 $0.01361 $0.01361
Opus 5 $0.00681 $0.00681
Sonnet 5 $0.00272 $0.00272
Haiku 4.5 $0.00136 $0.00136

Measured 6d ago against content hash f92225fe42bf, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, 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 6d 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 · 201 lines

How it starts

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

Cursor Rules for Kafka Schema Registry MCP

Code Quality & Linting Standards

Python Version & Compatibility

  • Target Python 3.10+ (project minimum: 3.10)
  • Use type hints consistently for better mypy compatibility
  • Avoid using features newer than Python 3.10 unless absolutely necessary

Code Formatting (Black)

  • Line length: 120 characters (configured in pyproject.toml)
  • Use double quotes for strings
  • Trailing commas in multi-line structures
  • Function and class definitions follow Black's style
  • Never suggest changing Black configuration in pyproject.toml

Import Organization (isort)

  • Profile: black (configured in pyproject.toml)
  • Line length: 120 characters for imports
  • Group imports: standard library → third-party → local
  • Use trailing commas in multi-line imports
  • Separate import groups with blank lines
  • Never suggest changing isort configuration in pyproject.toml

Code Style (Ruff)

  • Line length: 100 characters for code content (configured in pyproject.toml)
  • Keep docstrings and comments within 100 characters when possible
  • Use descriptive variable names
  • Avoid complex nested structures
  • Never suggest changing Ruff configuration in pyproject.toml

Type Checking (MyPy)

  • Add type hints to all function parameters and return values
  • Use typing module imports: List, Dict, Optional, Union, Any
  • For Python 3.10+, prefer built-in generics: list[str] over List[str]
  • Mark untyped external libraries with # type: ignore when necessary
  • Never suggest changing MyPy configuration in pyproject.toml

Flake8 Compliance

  • Avoid syntax errors and undefined names (E9, F63, F7, F82)
  • Keep complexity under 15 (max-complexity=15)
  • Handle unused imports and variables
  • Use proper exception handling

Project-Specific Guidelines

MCP (Model Context Protocol) Standards

  • Use FastMCP framework patterns
  • Implement proper error handling for MCP operations
  • Follow async/await patterns for MCP tools
  • Use descriptive tool names and parameter validation

Read the full file on GitHub · 201 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. 6d ago First seen · 201 lines · 1,361 tokens per session scan A f92225fe42bf

Subscribe to this mod's changes

cursorrules is a cursor rule published in the GitHub repository aywengo/kafka-schema-reg-mcp (32 stars, last pushed 5d ago), licensed MIT. It adds 1,361 tokens to every session, about $0.0068 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.