mcpField
F
fastapi-local-dev

fastapi-local-dev

github.com/bobmatnycDevelopment78351 installsUpdated 15w ago
Repository

About fastapi-local-dev

fastapi-local-dev is a development reference skill for running FastAPI locally with Uvicorn and configuring reload behavior. It also lists a production Gunicorn command and practices to avoid.

Key features

  1. 01Run FastAPI with Uvicorn reload
  2. 02Set import paths from repository root
  3. 03Configure polling for WSL reload
  4. 04Use Gunicorn for production
  5. 05Avoid conflicting reload and watch settings

Use cases

  1. 01Start a FastAPI app during development
  2. 02Troubleshoot missed reloads in WSL
  3. 03Run the app with Gunicorn in production

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/bobmatnyc/claude-mpm-skills --skill fastapi-local-dev

After installing, type/fastapi-local-devin Claude Code to confirm it loaded.

Bundled files

References and scripts installed along with SKILL.md.

metadata.json
references/
dev-server.md
docker.md
process-management.md
production-gunicorn.md
templates.md
troubleshooting.md

Details

From the project README

FastAPI Local Dev

  • Dev: uvicorn app.main:app --reload
  • Imports: run from repo root; use python -m uvicorn ... or PYTHONPATH=.
  • WSL: WATCHFILES_FORCE_POLLING=true if reload misses changes
  • Prod: gunicorn app.main:app -k uvicorn.workers.UvicornWorker -w <n> --bind :8000

Anti-patterns:

  • --reload --workers > 1
  • PM2 watch: true for Python

References: references/.

Comments

Markdown supported