Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
87 lines (78 loc) · 2.11 KB
/
Copy pathpyproject.toml
File metadata and controls
87 lines (78 loc) · 2.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "mfp-mcp"
version = "1.0.0"
description = "MCP Server for MyFitnessPal - track food diary, exercises, measurements, and nutrition goals"
readme = "README.md"
license = "MIT"
# Upper bound is due to lxml (via myfitnesspal): no wheels for 3.13+ at the
# time of writing, and building from source fails against the 3.14 C API.
requires-python = ">=3.10,<3.13"
authors = [
{ name = "Adam" }
]
keywords = [
"mcp",
"myfitnesspal",
"nutrition",
"fitness",
"health",
"diet",
"tracking",
"claude",
"anthropic"
]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Scientific/Engineering :: Medical Science Apps.",
]
dependencies = [
# mcp 2.0.0 (released 2026-07-28) removed `mcp.server.fastmcp`, which
# server.py imports as its FastMCP base class. Pin below 2.0 until the
# server is ported to the new API.
"mcp>=1.0.0,<2.0.0",
"myfitnesspal>=2.0.0",
"pydantic>=2.0.0",
"httpx>=0.24.0",
"browser-cookie3>=0.19.0",
"pint>=0.22",
"keyring>=24.0.0",
"cryptography>=41.0.0",
# mfp_search_food parses the web search HTML with lxml (unit-aware energy,
# kJ-safe). lxml already arrives via myfitnesspal, but we import it directly.
"lxml>=4.9.0",
]
[project.optional-dependencies]
dev = [
"pytest>=7.0.0",
"pytest-asyncio>=0.21.0",
"black>=23.0.0",
"isort>=5.12.0",
"mypy>=1.0.0",
"ruff>=0.1.0",
]
[project.scripts]
mfp-mcp = "mfp_mcp.server:main"
[tool.hatch.build.targets.wheel]
packages = ["src/mfp_mcp"]
[tool.black]
line-length = 100
target-version = ["py310", "py311", "py312"]
[tool.isort]
profile = "black"
line_length = 100
[tool.ruff]
line-length = 100
target-version = "py310"
[tool.mypy]
python_version = "3.10"
warn_return_any = true
warn_unused_ignores = true