mirror of
https://github.com/kuhyx/diet-guard.git
synced 2026-11-26 22:47:20 +01:00
mcp 2.0.0 removed mcp.server.fastmcp; MCPServer is the same object under a new name, so @mcp.tool() and mcp.run() are untouched and every tool keeps its name, signature and returned shape. Verified against a clean 2.0.0 venv: all four tools list, and the suite passes at 100% coverage, 609 tests. Two things the port buys, neither of which existed in 1.x: * Tool annotations, which matter more here than in the sibling repos because this server has a tool that writes. The three readers are marked read-only, idempotent and closed-world; log_meal is marked not-read-only but explicitly NOT destructive -- it appends and never rewrites or deletes -- not idempotent, since a second confirmed call logs a second meal, and open-world, because it reaches Open Food Facts when macros are not given. A client can now tell the difference without reading the docstring. * Structured output: 2.x derives an output schema from the return types and sends structured content alongside the text. No code change -- it falls out of the type hints that were already there. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01BsXnTHyuuCUZsqetTaajcF
20 lines
539 B
Plaintext
20 lines
539 B
Plaintext
# Diet Guard — runtime + development dependencies
|
|
# Runtime: tkinter/json/hmac/fcntl (stdlib) plus gatelock and requests below.
|
|
bandit>=1.7.0
|
|
codespell>=2.2.0
|
|
coverage>=7.4.0
|
|
crdt-sync @ git+https://github.com/kuhyx/utils@crdt-sync-v0.1.0#subdirectory=crdt-sync
|
|
gatelock @ git+https://github.com/kuhyx/utils@gatelock-v0.4.0#subdirectory=gatelock
|
|
mcp>=2,<3
|
|
mypy>=1.8.0
|
|
pre-commit>=3.6.0
|
|
pydantic>=2
|
|
pylint>=3.0.0
|
|
pytest>=8.0.0
|
|
pytest-cov>=4.1.0
|
|
pytest-randomly>=3.15.0
|
|
pytest-sugar>=1.0.0
|
|
pytest-xdist>=3.5.0
|
|
requests>=2.31.0
|
|
ruff>=0.8.0
|