The mcp SDK v2.0.0 (2026-07-28) renamed FastMCP to MCPServer
and removed the mcp.server.fastmcp import path entirely.
The standalone fastmcp package (PrefectHQ, v3.x) is the actively
maintained framework with identical @mcp.tool() decorator API.
- pyproject.toml: [mcp] extra now requires fastmcp>=3.0.0
- server.py: import changed from mcp.server.fastmcp to fastmcp
- mcp_stdio.py: unchanged (imports from diligence.mcp.server)
MCP SDK v2.0.0 extracted FastMCP into a separate package,
breaking the import at mcp.server.fastmcp.FastMCP. Pin to
v1.x until the server code is updated for the v2 API.
On Windows, Python's zoneinfo module has no system timezone database.
Without the tzdata package, ZoneInfo('UTC') raises ZoneInfoNotFoundError,
crashing both /api/points/today and /api/nutrition/today (Home and Keto
pages show 'failed to load').
Two fixes:
1. Add tzdata>=2024.1 to pyproject.toml dependencies so pip install
pulls it automatically
2. Harden dates.py with _safe_tz() that falls back to datetime.timezone.utc
(always available, no tzdata needed) as the ultimate fallback