core-principles Cursor ruleA
core-principles from enuno/unifi-mcp-server is a Cursor rule: instructions the Cursor agent follows in that repo.
mdr add enuno/unifi-mcp-server/.cursor/rules/core-principles.mdc@git:20251101.792682aPins git:20251101.792682a in mdr.lock. Pin the fingerprint instead.
- Audit grade
- A, 14 of 14 checks passed
- Kind
- Cursor rule
- Repository
- enuno/unifi-mcp-server
- Path
.cursor/rules/core-principles.mdc- Versions recorded
- 1
- Latest version
- git:20251101.792682a, committed Nov 1, 2025
- Size
- 2,185 bytes
- Repository stars
- 303
- License
- Apache-2.0
Core coding principles for async-first development and security.
Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.
What the file says
# Core Coding Principles ## 1. Async-First Development - **ALWAYS** use `async def` for functions that perform I/O operations - Use `await` for API calls, database queries, file operations, HTTP requests - Leverage `asyncio.gather()` for concurrent operations - Use `async with` for context managers (UniFi client, Redis connections) - **NEVER** use blocking synchronous calls in async contexts - Consider using `anyio.to_thread.run_sync()` for CPU-intensive operations ## 2. Type Safety and Validation - **ALWAYS** provide type hints for all function parameters and return values - Use Pydantic models for complex input/output structures - Prefer explicit types over `Any` or untyped dicts - Use `Optional[T]` or `T | None` for nullable values - Leverage Pydantic's validation features (Field, validator decorators) - Run mypy before committing changes ## 3. Security-First Design - **CRITICAL**: All mutating operations MUST require `confirm=True` parameter - Implement `dry_run=True` mode for preview-before-apply - Log all operations to `audit.log` with context (user, timestamp, parameters) - Use password masking utilities for sensitive data in logs …
Read the whole file at its exact version.
How to install
mdr add enuno/unifi-mcp-server/.cursor/rules/core-principles.mdc@sha256:99b996eef922f1a2The line at the top of this page pins the label git:20251101.792682a, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.
[](https://markdownregistry.com/a/art_cvkyywgtnxo24xsb)
3 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 1 version of this file, committed on Nov 1, 2025.
Audit of the latest version
- pass: Size between 200 bytes and 200 KB (2185 bytes)
- pass: No zero-width or bidi control characters
- pass: No instruction hidden inside an HTML comment
- pass: No link to an exfiltration or paste host
- pass: No credential-shaped string
- pass: No instruction to send local credentials anywhere
- pass: No text hidden with inline styles
- pass: No prompt-injection phrasing
- pass: No curl or wget piped into a shell
- pass: No recursive delete of root, home or parent
- pass: No instruction to read or print local credentials
- pass: No base64 blob over 200 characters
- pass: No link to a raw IP address
- pass: No script tag
Source
enuno/unifi-mcp-server · 303 stars · license Apache-2.0 · pushed 2026-10-19 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_cvkyywgtnxo24xsb GET https://markdownregistry.com/api/v1/resolve?ref=enuno/unifi-mcp-server/.cursor/rules/core-principles.mdc GET https://markdownregistry.com/api/v1/blob/99b996eef922f1a2bdee228783b452f142f5b42830b7a0ade597f64973022a42
Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.
Guides: Cursor rules vs AGENTS.md · which agent file does what.
More from enuno/unifi-mcp-server
Every file in enuno/unifi-mcp-server