Deliver Steps 3-8: integration config, meal plans, provider registry, MCP connector (14 tools), B2A files, nginx proxy, AGENT_GUIDE, LICENSE

This commit is contained in:
Claude 2026-06-15 14:34:09 +00:00
parent cb892564d9
commit 6fb5d759ef
13 changed files with 958 additions and 2 deletions

View file

@ -4,6 +4,32 @@ server {
root /usr/share/nginx/html;
index index.html;
# B2A discovery files
location = /llms.txt {
default_type text/plain;
}
location /.well-known/ {
default_type application/json;
}
location /.well-known/skills/ {
default_type text/plain;
}
# MCP proxy routes /mcp to the MCP connector container
location /mcp {
proxy_pass http://mcp-connector:3001;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Connection '';
proxy_http_version 1.1;
chunked_transfer_encoding off;
proxy_buffering off;
proxy_cache off;
}
# Backend API
location /api {
proxy_pass http://backend:8000;
proxy_set_header Host $host;
@ -12,6 +38,7 @@ server {
proxy_set_header X-Forwarded-Proto $scheme;
}
# SPA catch-all
location / {
try_files $uri $uri/ /index.html;
}

31
frontend/public/llms.txt Normal file
View file

@ -0,0 +1,31 @@
# Diligence — Self-Hosted Fitness Rewards Platform
> Data sovereignty for people. Self-hosted fitness tracker with a points-based
> behavioral economy and an MCP connector for AI agent integration.
> MIT-licensed. Deploy with a single `docker compose up -d`.
Diligence is a self-hosted fitness web app built around a points-based reward
system. Complete fitness activities and food logging to earn points, spend
points to unlock configurable real-world rewards. Science-based onboarding
(PAR-Q+, TTM stages of change, BREQ-2 motivation assessment).
## For AI Agents
- MCP Server: /mcp (Streamable HTTP/SSE, 14 tools)
- Agent Card: /.well-known/agent-card.json
- Skills: /.well-known/skills/diligence-fitness/SKILL.md
## MCP Tools
- get_context, get_today, get_week (status)
- log_activity, log_food, search_food (tracking)
- get_program_schedule (programs)
- redeem_reward (rewards)
- load_meal_plan, get_meal_plan, update_meal_compliance, get_plan_progress (meal plans)
- configure_integration, get_integration_status (device sync)
## Technical
- Source: https://github.com/diligenceworks/diligence (MIT)
- Stack: FastAPI + PostgreSQL + React/Vite + FastMCP
## About
Built by DiligenceWorks (https://diligenceworks.online) — adversarial AI
deal-diligence platform for institutional investors.