Bundle
xby-running-formulas
一个提供全面的跑步计算工具的MCP服务器,包括VDOT计算、训练配速、比赛时间预测、速度标记、心率区间和配速转换等功能。
- Source
- xby-skill
- License
- MIT
- Updated
- Updated 5 days ago
Readme
# xby-running-formulas
DeepSeek Harness (DSH) 的插件:跑步计算服务
一个提供全面的跑步计算工具的MCP服务器,包括VDOT计算、训练配速、比赛时间预测、速度标记、心率区间和配速转换等功能。
## 功能
- **set_xby_apikey** — 在聊天中设置 API 密钥(自动持久化,重启有效)
- **daniels_calculate_vdot** — Calculate VDOT according to Jack Daniels.
Args:
distance: Distance in meters.
time: Time in seconds.
Returns:
dict:
vdot (float): The calculated VDOT value, representing the runner's aerobic capacity based on the input distance and time.
- **daniels_calculate_training_paces** — Get recommended training paces for a given VDOT, based on Jack Daniels' formulas.
Args:
vdot: VDOT value.
Returns:
dict:
easy (dict): Recommended easy pace range with lower and upper bounds.
marathon (dict): Recommended marathon pace with value and format.
threshold (dict): Recommended threshold pace with value and format.
interval (dict): Recommended interval pace with value and format.
repetition (dict): Recommended repetition pace with value and format.
- **daniels_predict_race_time** — Predict race time for a target distance based on a current race performance.
Uses Jack Daniels' equivalent performance methodology.
Args:
current_distance: Distance of known performance in meters.
current_time: Time of known performance in seconds.
target_distance: Distance for race time prediction in meters.
Returns:
dict: Daniels' VDOT method prediction with value, format, and time_seconds.
- **riegel_predict_race_time** — Predict race time for a target distance based on a current race performance.
Uses Riegel's formula.
Args:
current_distance: Distance of known performance in meters.
current_time: Time of known performance in seconds.
target_distance: Distance for race time prediction in meters.
Returns:
dict: Riegel's formula prediction with value, format, and time_seconds.
- **mcmillan_calculate_velocity_markers** — Calculate velocity markers (vLT, CV, vVO2) from a race performance using McMillan methodology.
Args:
distance: Race distance in meters
time: Race time in seconds
Returns:
Dictionary containing velocity markers with paces in MM:SS/km format
- **mcmillan_predict_race_times** — Predict race times for standard distances based on a single race performance using McMillan methodology.
Args:
distance: Race distance in meters
time: Race time in seconds
Returns:
Dictionary containing predicted race times in HH:MM:SS format
- **mcmillan_calculate_training_paces** — Calculate training paces for all zones based on a race performance using McMillan methodology.
Args:
distance: Race distance in meters
time: Race time in seconds
Returns:
Dictionary containing training paces organized by zones (endurance, stamina, speed, sprint)
- **mcmillan_heart_rate_zones** — Calculate heart rate training zones based on age, resting heart rate, and optional max heart rate.
Uses McMillan methodology with multiple max HR estimation formulas and both HRMAX and HRRESERVE methods.
Args:
age: Runner's age in years
resting_heart_rate: Resting heart rate in BPM
max_heart_rate: Optional maximum heart rate in BPM (if None, will be estimated)
Returns:
Dictionary containing estimated max HR, effective max HR, and training zones with both HRMAX and HRRESERVE calculations
- **convert_pace** — Convert between different pace and speed units.
Args:
value: The numeric value to convert.
from_unit: Source unit ("min_km", "min_mile", "kmh", "mph").
to_unit: Target unit ("min_km", "min_mile", "kmh", "mph").
Returns:
dict:
value (float): Converted numeric value.
formatted (str): Human-readable formatted result.
unit (str): Target unit descriptor.
Raises:
ValueError: If from_unit or to_unit are not valid, or if conversion is not supported.
## 安装
### 方式一:从 GitHub 直接安装(推荐)
```bash
# 格式: dsh plugin --profile <profile> add github:<owner>/<repo>
dsh plugin --profile web add github:xby_skill/xby-running-formulas
```
### 方式二:从本地目录安装(开发模式)
```bash
# 仅用于本地开发调试
dsh plugin --profile web add /absolute/path/to/xby-running-formulas
```
### 方式三:通过 cordis.patch.yml 开发调试
```bash
dsh web --profile web --patch /absolute/path/to/dsh-ocr-plugin/cordis.patch.yml
```
## 配置
### 获取 API 密钥
前往 [小笨羊官网](https://xiaobenyang.com) 注册并获取 API 密钥。
Install
dsh plugin --profile web add github:xby-skill/xby-running-formulas#56f2a684f9c56485d521cacf8c44217966413736
Profile: web
With the hub plugin installed, ask your agent to install it by name — it resolves the same plan shown here.
dsh plugin --profile web add github:stvlynn/dsh.fish#path:packages/dsh-plugin-hub
install xby-running-formulas from the hub
- This package builds from source on install. pnpm will ask you to allow its build script — that is permission to run the package’s code on your machine, outside the agent sandbox. Only allow sources you trust.