Declarative .mdcCursor/Claude/Windsurf 규칙 및 n8n 워크플로IDE 규칙제로 비밀 유출 감사

Python 3.12 + Astral uv + FastAPI 비동기 에이전트 서비스 규칙

uv.lock 재현 가능한 환경, Ruff Lints, Pydantic v2 엄격한 모델 및 제한된 httpx 시간 제한을 표준화하는 선언적 커서/Claude/Windsurf 규칙입니다.

선언적 에이전트 및 IDE 규칙 파일

---
description: Astral uv dependency locking, Pydantic v2 validation, and non-blocking FastAPI async handlers
globs: **/*.py,pyproject.toml
alwaysApply: false
---

# Python 3.12 + uv + FastAPI Production Standards

- Manage dependencies exclusively via `pyproject.toml` and `uv.lock` (`uv add`, `uv run`); never invoke global `pip install` without version pins.
- Define all FastAPI request/response and MCP tool payloads with Pydantic v2 `BaseModel` (`model_config = ConfigDict(extra='forbid')`).
- Never call blocking `requests.*`, `time.sleep()`, or synchronous subprocesses inside `async def` endpoints; use `httpx.AsyncClient(timeout=10.0)`.
- Reuse a shared `httpx.AsyncClient` and database pool inside FastAPI `lifespan` context managers to prevent socket exhaustion.
- Format and lint all Python modules cleanly with `ruff check --fix` and `ruff format` before committing.

## Verification Check
```bash
uv run ruff check . && uv run pytest -q
```

커뮤니티 설정 참고 사항 및 제작 리뷰 (0)

아직 커뮤니티 메모가 없습니다. 아래에서 프로덕션 구성 팁을 공유하세요.

설정 메모 또는 확인 팁 게시

노출된 MCP 도구 및 리소스 스키마 검사기

도구/자원 식별자입력 매개변수실행 동작
uv_reproducible_lockfilepyproject.toml, uv.lockMandates uv run / uv sync --frozen and forbids unpinned global pip installs.