← 返回
未分类 Key 中文

BestYou Coach Dashboards

Render BestYou health data as visual Dark Glass dashboards via OpenClaw canvas. Daily briefings, action plans, progress snapshots, weekly summaries, meal ana...
将BestYou健康数据通过OpenClaw canvas渲染为暗黑玻璃风格可视化仪表盘,包含每日简报、行动计划、进度快照、周总结及膳食分析等功能。
kentsteffen kentsteffen 来源
未分类 clawhub v1.0.0 1 版本 100000 Key: 需要
★ 0
Stars
📥 475
下载
💾 0
安装
1
版本
#latest

概述

BestYou Coach Widgets

Render BestYou MCP tool responses as rich visual cards using OpenClaw's canvas.

First-Time Setup

Before calling any tools, check that mcporter is installed and the BestYou server is configured:

mcporter --config ~/.openclaw/workspace/config/mcporter.json list
  • If mcporter is not found: npm install -g mcporter
  • If bestyou is not listed: walk the user through setup. See references/setup.md for the full guide.

Setup summary:

  1. User generates an API key in BestYou iOS (More → Connected Apps → OpenClaw)
  2. Create config/mcporter.json with the key in the Authorization Bearer header (see references/setup.md for the exact JSON format)
  3. Restart the OpenClaw gateway

Calling Tools via mcporter

All tools use this syntax:

mcporter --config config/mcporter.json call bestyou.<tool_name> [param=value ...]

If a custom config path is needed (e.g. calling from outside the workspace), use the full path:

mcporter --config ~/.openclaw/workspace/config/mcporter.json call bestyou.<tool_name> [param=value ...]

Examples:

mcporter call bestyou.get_account_link_status
mcporter call bestyou.get_daily_briefing date=2026-03-15
mcporter call bestyou.get_todays_action_plan date=2026-03-15
mcporter call bestyou.get_progress_snapshot date=2026-03-15
mcporter call bestyou.get_weekly_summary weekEndDate=2026-03-15
mcporter call bestyou.generate_workout type=strength duration=20 equipment=bodyweight experienceLevel=Intermediate goal="General strength"
mcporter call bestyou.analyze_meal_text description="chicken burrito bowl" timestamp=2026-03-15T12:30:00-06:00

If a custom mcporter config path is needed, add --config .

Tool-to-Template Map

MCP ToolTemplateDescription
---------------------------------
get_account_link_statusassets/account-status.htmlConnection status, scopes
get_daily_briefingassets/daily-briefing.htmlReadiness, insights, priorities
get_todays_action_planassets/action-plan.htmlTimeline of today's blocks
get_progress_snapshotassets/progress-snapshot.htmlDomain scores, recommendations
get_weekly_summaryassets/weekly-summary.htmlWeekly scores, trends, goals
analyze_meal_textassets/meal-analysis.htmlMacro breakdown, components
generate_workoutassets/workout.htmlExercise cards with images

Rendering Workflow

  1. Call the BestYou MCP tool via mcporter
  2. Read the matching template from assets/
  3. Replace the sample data in the HTML with the actual API response values (see data mapping below)
  4. Inline the CSS: copy the contents of assets/shared.css into a