nutrition-mcp/Cargo.toml
Anthony Merlo 244e141053 feat: scaffold nutrition-mcp server with all 13 tools
Rust MCP server using rmcp SDK with streamable HTTP transport.
- Config from env vars (bind, api_key, db_path, off_user_agent)
- SQLite schema: products (FTS5), entries, daily_goal, weight_log
- OFF API client: Search-a-licious + v3 barcode + SQLite caching
- 13 MCP tools: search_food, get_food_by_barcode, log_food,
  log_custom_food, delete_entry, daily_summary, history,
  list_entries, get_goals, set_goals, log_weight, weight_history,
  bulk_import (stub)
- 14 tracked nutrients (gout + hypertension aware)
- Bearer token auth middleware
- Smoke tested: health, initialize, tools/list, get_goals, daily_summary

Closes nutrition-mcp-dfl
2026-08-20 16:52:11 +01:00

49 lines
No EOL
1.1 KiB
TOML

[package]
name = "nutrition-mcp"
version = "0.1.0"
edition = "2024"
description = "MCP server for personal calorie/nutrient tracking with OpenFood Facts integration"
license = "MIT"
[dependencies]
# MCP protocol
rmcp = { version = "0.7", features = [
"server",
"macros",
"schemars",
"transport-streamable-http-server",
] }
# Async runtime
tokio = { version = "1", features = ["full"] }
tokio-util = { version = "0.7", features = ["rt"] }
# HTTP client (for OFF API)
reqwest = { version = "0.12", features = ["json", "rustls-tls"], default-features = false }
# Database
sqlx = { version = "0.8", features = ["runtime-tokio", "sqlite", "macros"] }
# Serialization
serde = { version = "1", features = ["derive"] }
serde_json = "1"
schemars = "1"
# Web framework (for HTTP transport + auth middleware)
axum = "0.8"
# Error handling
anyhow = "1"
thiserror = "2"
# Logging
tracing = "0.1"
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
# Misc
chrono = { version = "0.4", features = ["serde"] }
uuid = { version = "1", features = ["v4"] }
[profile.release]
opt-level = 2
strip = true