cursorrules

Project rules for Cursor, an AI coding editor, including shared portfolio standards and repository-specific instructions.

In plain words
What is it for?
Writing and reviewing code, following the project’s Python and web-development standards, and keeping repository rules synchronized with shared rules.
Why use it?
They tell the agent which tools, programming versions, libraries, and editing rules the project expects.

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/sebaustin/mcp-financial-data/cursorrules
Clone the repo
git clone --depth 1 https://github.com/SebAustin/mcp-financial-data

Made for: Cursor.

Per session 1,935 This file is loaded in full into every session.
When invoked 1,935 The same file — it is already loaded in full.
Security scan A 1 finding. 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.01935 $0.01935
Opus 5 $0.00967 $0.00967
Sonnet 5 $0.00387 $0.00387
Haiku 4.5 $0.00194 $0.00194

Measured yesterday against content hash 865ec3028e66, 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 1 finding 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.

Runs shell commandslowCapability

Expected in a hook, worth knowing in a rule or an instructions file.

- `subprocess.run(shell=True)` — never.
.cursorrules · 145 lines

How it starts

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

.cursorrules — mcp-financial-data

This file extends the master portfolio rules at ~/.cursor/rules/portfolio.mdc.

Copy of the master is included verbatim below for repo-local reading; the

project-specific deltas come AFTER the master block.

============================================================================

MASTER (verbatim from portfolio SPRINT_PLAN §C.1) — DO NOT EDIT IN-REPO.

Edit ~/.cursor/rules/portfolio.mdc and re-sync.

============================================================================

.cursorrules — Sebastien Henry portfolio (2026 H1)

Applies to ALL 9 portfolio repos under github.com/SebAustin/*. Per-repo

.cursorrules files extend (not replace) these.

1. Identity

You are pair-programming with Sebastien Henry — a senior engineer with 19 years of experience. He makes architecture decisions; you generate code. Do NOT ask clarifying questions about scope already specified. Do NOT narrate. Implement exactly what is asked, then stop.

2. Stack (2026-current, non-negotiable)

  • Python 3.12. uv 0.5+ for dependency management. ruff 0.7+. mypy --strict.
  • pydantic v2.9+. FastAPI 0.115+. pytest 8+. httpx 0.28+ (never requests).
  • LangGraph 1.x (StateGraph, PostgresSaver, interrupt). LangChain 1.x.
  • Anthropic SDK ≥ 0.40 (Claude Sonnet 4.6 / Opus 4.7, Citations API enabled).
  • MCP spec 2025-11-25. Official mcp Python SDK 1.x; FastMCP 2.x for ergonomics.
  • Snowflake Cortex GA features as of May 2026 only.
  • Terraform 1.10+ / OpenTofu 1.8+. AWS provider 6.x. Google provider 6.x.
  • Solidity 0.8.26. Foundry only (no Hardhat). solc pinned in foundry.toml.

3. Type safety

  • Every public function has full type hints. Every pydantic model uses model_config = ConfigDict(extra="forbid") where appropriate.
  • mypy --strict src/ must pass before any PR is merged.
  • No # type: ignore without a one-line comment explaining why.

4. Testing

  • Every module has matching tests under tests/unit/.
  • pytest-asyncio in strict mode. Network mocked with respx.
  • Coverage gate: 85% line coverage on src/.
  • Integration tests marked @pytest.mark.integration and skipped by default.

Read the full file on GitHub · 145 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 · 145 lines · 1,935 tokens per session scan A 865ec3028e66

Subscribe to this mod's changes

cursorrules is a cursor rule published in the GitHub repository SebAustin/mcp-financial-data (0 stars, last pushed 7d ago), licensed MIT. It adds 1,935 tokens to every session, about $0.0097 per session on Opus 5. A static security scan graded it A with 1 finding (runs shell commands). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.