dotworkout
Build custom Apple Watch workouts: intervals, repeats, and heart rate, pace and power targets.
사용해야 할까요
품질 및 안전성
발견 사항 (1)
- LOWinspect_workout에서
도구 정의와 프로토콜 준수에 대한 자동 분석을 기반으로 합니다.
컨텍스트 비용
이는 서버의 도구가 모델의 컨텍스트에 로드될 때마다 소비되는 대략적인 토큰 수입니다. 수치가 높을수록 다른 작업에 사용할 수 있는 주의가 줄어듭니다.
설치
원클릭 설치
`claude_desktop_config.json` 파일에 다음을 추가하세요:
{
"mcpServers": {
"dotworkout": {
"command": "npx",
"args": [
"@dotworkout/mcp"
]
}
}
}실행 가능한 패키지
0.8.0stdio원격 엔드포인트
https://mcp.javierferrersb.dev/mcpstreamable-http할 수 있는 일
도구 목록
도구 (5)
🟢list_activities
Every activity that can be built, with the goals and alerts each one supports indoors and out. Support differs per activity, and the Watch rejects a file that uses a goal or alert its activity lacks.
입력 스키마
{
"type": "object",
"properties": {}
}🟢describe_activity(activity)
Goals, alerts and caveats for one activity, from the compatibility matrix read off a real device.
입력 스키마
{
"type": "object",
"properties": {
"activity": {
"type": "string",
"enum": [
"SWIMMING",
"RUNNING",
"CYCLING",
"HIGH_INTENSITY_INTERVAL_TRAINING",
"WALKING",
"HIKING",
"ROWING",
"ELLIPTICAL",
"STAIR_CLIMBING",
"CROSS_TRAINING",
"FUNCTIONAL_STRENGTH_TRAINING",
"TRADITIONAL_STRENGTH_TRAINING",
"CORE_TRAINING",
"YOGA"
]
}
},
"required": [
"activity"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢validate_workout(activity, location, name, warmup, blocks, ...)
Check a workout against what the activity supports, without building it. Returns every error and warning, each naming the step it is about. Unverified combinations warn rather than fail.
입력 스키마
{
"type": "object",
"properties": {
"activity": {
"type": "string",
"enum": [
"SWIMMING",
"RUNNING",
"CYCLING",
"HIGH_INTENSITY_INTERVAL_TRAINING",
"WALKING",
"HIKING",
"ROWING",
"ELLIPTICAL",
"STAIR_CLIMBING",
"CROSS_TRAINING",
"FUNCTIONAL_STRENGTH_TRAINING",
"TRADITIONAL_STRENGTH_TRAINING",
"CORE_TRAINING",
"YOGA"
],
"description": "call list_activities for what each one supports"
},
"location": {
"description": "indoor changes what a sport offers: a stationary bike has no speed or distance",
"type": "string",
"enum": [
"outdoor",
"indoor"
]
},
"name": {
"description": "shown in the Workout app and on the link, e.g. \"Norwegian 4×4\"; always give one, short enough for the Watch",
"type": "string",
"maxLength": 120
},
"warmup": {
"type": "object",
"properties": {
"distance": {
"$ref": "#/$defs/Distance"
},
"time": {
"$ref": "#/$defs/Duration"
},
"open": {
"description": "no goal; the wearer ends the step",
"type": "boolean",
"const": true
},
"alert": {
"$ref": "#/$defs/Target"
},
"label": {
"$ref": "#/$defs/Label"
},
"sendOff": {
"$ref": "#/$defs/SendOff"
}
},
"additionalProperties": false
},
"blocks": {
"minItems": 1,
"maxItems": 100,
"type": "array",
"items": {
"type": "object",
"properties": {
"repeat": {
"default": 1,
"description": "how many times; 1 for a single step",
"type": "integer",
"minimum": 1,
"maximum": 999
},
"work": {
"type": "object",
"properties": {
"distance": {
"$ref": "#/$defs/Distance"
},
"time": {
"$ref": "#/$defs/Duration"
},
"open": {
"description": "no goal; the wearer ends the step",
"type": "boolean",
"const": true
}
},
"additionalProperties": false,
"description": "the step each repetition does: { \"distance\": \"400m\" }, { \"time\": \"4:00\" } or { \"open\": true }"
},
"sendOff": {
"$ref": "#/$defs/SendOff"
},
"rest": {
"anyOf": [
{
"$ref": "#/$defs/Duration"
},
{
"type": "object",
"properties": {
"distance": {
"$ref": "#/$defs/Distance"
},
"time": {
"$ref": "#/$defs/Duration"
},
"open": {
"description": "no goal; the wearer ends the step",
"type": "boolean",
"const": true
},
"alert": {
"$ref": "#/$defs/Target"
},
"label": {
"$ref": "#/$defs/Label"
}
},
"additionalProperties": false
}
],
"description": "recovery after each repetition: a time like \":30\" or \"2:00\", or a step such as { \"distance\": \"200m\", \"label\": \"jog\" }, { \"open\": true } or { \"time\": \"1:00\", \"alert\": { \"kind\": \"heartRateZone\", \"zone\": 2 } }"
},
"label": {
"$ref": "#/$defs/Label"
},
"alert": {
"description": "the target for the work step",
"$ref": "#/$defs/Target"
},
"steps": {
"description": "instead of work, several steps repeated together in order, e.g. 1 km at threshold then 1 km easy",
"minItems": 1,
"maxItems": 20,
"type": "array",
"items": {
"$ref": "#/$defs/Step"
}
}
},
"additionalProperties": false
}
},
"cooldown": {
"type": "object",
"properties": {
"distance": {
"$ref": "#/$defs/Distance"
},
"time": {
"$ref": "#/$defs/Duration"
},
"open": {
"description": "no goal; the wearer ends the step",
"type": "boolean",
"const": true
},
"alert": {
"$ref": "#/$defs/Target"
},
"label": {
"$ref": "#/$defs/Label"
},
"sendOff": {
"$ref": "#/$defs/SendOff"
}
},
"additionalProperties": false
}
},
"required": [
"activity",
"blocks"
],
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false,
"$defs": {
"Distance": {
"type": "string",
"description": "with a unit, e.g. \"400m\", \"1.2 km\", \"5k\", \"0.5mi\"; a bare number is in the sport's default unit, km for running, cycling, walking and hiking, metres otherwise"
},
"Duration": {
"type": "string",
"description": "e.g. \"1:00\", \"90s\", \"10min\", \"1:30:00\", \"1h30min\"; \"m\" alone is refused, write \"min\""
},
"Target": {
"oneOf": [
{
"type": "object",
"properties": {
"kind": {
"type": "string",
"const": "heartRateZone"
},
"zone": {
"type": "integer",
"minimum": 1,
"maximum": 5
}
},
"required": [
"kind",
"zone"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"kind": {
"type": "string",
"const": "heartRateRange"
},
"from": {
"type": "number",
"description": "beats per minute, e.g. 140; for a % of max heart rate, work out the beats"
},
"to": {
"type": "number",
"description": "the other end; order does not matter"
}
},
"required": [
"kind",
"from",
"to"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"kind": {
"type": "string",
"const": "cadence"
},
"perMinute": {
"type": "number",
"description": "steps per minute running, revolutions per minute cycling"
}
},
"required": [
"kind",
"perMinute"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"kind": {
"type": "string",
"const": "cadenceRange"
},
"from": {
"type": "number"
},
"to": {
"type": "number",
"description": "the other end; order does not matter"
}
},
"required": [
"kind",
"from",
"to"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"kind": {
"type": "string",
"const": "power"
},
"watts": {
"type": "number",
"description": "watts; for a % of FTP, work out the watts from the rider's FTP"
}
},
"required": [
"kind",
"watts"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"kind": {
"type": "string",
"const": "powerRange"
},
"from": {
"type": "number",
"description": "watts; for a % of FTP, work out the watts"
},
"to": {
"type": "number",
"description": "the other end; order does not matter"
}
},
"required": [
"kind",
"from",
"to"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"kind": {
"type": "string",
"const": "pace"
},
"pace": {
"type": "string",
"description": "time per km or mile, e.g. \"4:30/km\", \"7:15/mi\""
}
},
"required": [
"kind",
"pace"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"kind": {
"type": "string",
"const": "paceRange"
},
"from": {
"type": "string",
"description": "one end of the band, e.g. \"4:40/km\""
},
"to": {
"type": "string",
"description": "the other end, e.g. \"4:20/km\"; order does not matter"
}
},
"required": [
"kind",
"from",
"to"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"kind": {
"type": "string",
"const": "kmh"
},
"kmh": {
"type": "number",
"description": "speed in km/h, e.g. 30"
}
},
"required": [
"kind",
"kmh"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"kind": {
"type": "string",
"const": "kmhRange"
},
"from": {
"type": "number"
},
"to": {
"type": "number",
"description": "the other end; order does not matter"
}
},
"required": [
"kind",
"from",
"to"
],
"additionalProperties": false
}
]
},
"Label": {
"type": "string",
"maxLength": 120,
"description": "free text shown on the Watch, a few words; this is where stroke goes"
},
"SendOff": {
"type": "string",
"description": "swimming only, on a distance: leave every \"2:00\" however fast you finish"
},
"Step": {
"type": "object",
"properties": {
"distance": {
"$ref": "#/$defs/Distance"
},
"time": {
"$ref": "#/$defs/Duration"
},
"open": {
"description": "no goal; the wearer ends the step",
"type": "boolean",
"const": true
},
"alert": {
"$ref": "#/$defs/Target"
},
"label": {
"$ref": "#/$defs/Label"
},
"sendOff": {
"$ref": "#/$defs/SendOff"
},
"recovery": {
"description": "true for a recovery step; work otherwise",
"type": "boolean"
}
},
"additionalProperties": false
}
}
}출력 스키마
{
"type": "object",
"properties": {
"valid": {
"type": "boolean"
},
"errors": {
"type": "array",
"items": {
"type": "string"
}
},
"warnings": {
"type": "array",
"items": {
"type": "string"
}
}
},
"required": [
"valid",
"errors",
"warnings"
],
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false
}🟢create_workout(activity, location, name, warmup, blocks, ...)
Build a workout and return a link that opens it on the user's iPhone, ready to save into the Fitness app, which sends it to the Watch. The reply includes the link as markdown, with the whole workout encoded in its URL.
입력 스키마
{
"type": "object",
"properties": {
"activity": {
"type": "string",
"enum": [
"SWIMMING",
"RUNNING",
"CYCLING",
"HIGH_INTENSITY_INTERVAL_TRAINING",
"WALKING",
"HIKING",
"ROWING",
"ELLIPTICAL",
"STAIR_CLIMBING",
"CROSS_TRAINING",
"FUNCTIONAL_STRENGTH_TRAINING",
"TRADITIONAL_STRENGTH_TRAINING",
"CORE_TRAINING",
"YOGA"
],
"description": "call list_activities for what each one supports"
},
"location": {
"description": "indoor changes what a sport offers: a stationary bike has no speed or distance",
"type": "string",
"enum": [
"outdoor",
"indoor"
]
},
"name": {
"description": "shown in the Workout app and on the link, e.g. \"Norwegian 4×4\"; always give one, short enough for the Watch",
"type": "string",
"maxLength": 120
},
"warmup": {
"type": "object",
"properties": {
"distance": {
"$ref": "#/$defs/Distance"
},
"time": {
"$ref": "#/$defs/Duration"
},
"open": {
"description": "no goal; the wearer ends the step",
"type": "boolean",
"const": true
},
"alert": {
"$ref": "#/$defs/Target"
},
"label": {
"$ref": "#/$defs/Label"
},
"sendOff": {
"$ref": "#/$defs/SendOff"
}
},
"additionalProperties": false
},
"blocks": {
"minItems": 1,
"maxItems": 100,
"type": "array",
"items": {
"type": "object",
"properties": {
"repeat": {
"default": 1,
"description": "how many times; 1 for a single step",
"type": "integer",
"minimum": 1,
"maximum": 999
},
"work": {
"type": "object",
"properties": {
"distance": {
"$ref": "#/$defs/Distance"
},
"time": {
"$ref": "#/$defs/Duration"
},
"open": {
"description": "no goal; the wearer ends the step",
"type": "boolean",
"const": true
}
},
"additionalProperties": false,
"description": "the step each repetition does: { \"distance\": \"400m\" }, { \"time\": \"4:00\" } or { \"open\": true }"
},
"sendOff": {
"$ref": "#/$defs/SendOff"
},
"rest": {
"anyOf": [
{
"$ref": "#/$defs/Duration"
},
{
"type": "object",
"properties": {
"distance": {
"$ref": "#/$defs/Distance"
},
"time": {
"$ref": "#/$defs/Duration"
},
"open": {
"description": "no goal; the wearer ends the step",
"type": "boolean",
"const": true
},
"alert": {
"$ref": "#/$defs/Target"
},
"label": {
"$ref": "#/$defs/Label"
}
},
"additionalProperties": false
}
],
"description": "recovery after each repetition: a time like \":30\" or \"2:00\", or a step such as { \"distance\": \"200m\", \"label\": \"jog\" }, { \"open\": true } or { \"time\": \"1:00\", \"alert\": { \"kind\": \"heartRateZone\", \"zone\": 2 } }"
},
"label": {
"$ref": "#/$defs/Label"
},
"alert": {
"description": "the target for the work step",
"$ref": "#/$defs/Target"
},
"steps": {
"description": "instead of work, several steps repeated together in order, e.g. 1 km at threshold then 1 km easy",
"minItems": 1,
"maxItems": 20,
"type": "array",
"items": {
"$ref": "#/$defs/Step"
}
}
},
"additionalProperties": false
}
},
"cooldown": {
"type": "object",
"properties": {
"distance": {
"$ref": "#/$defs/Distance"
},
"time": {
"$ref": "#/$defs/Duration"
},
"open": {
"description": "no goal; the wearer ends the step",
"type": "boolean",
"const": true
},
"alert": {
"$ref": "#/$defs/Target"
},
"label": {
"$ref": "#/$defs/Label"
},
"sendOff": {
"$ref": "#/$defs/SendOff"
}
},
"additionalProperties": false
},
"attachFile": {
"description": "also return the file itself, for clients that render an attachment. Off by default: a client that cannot render one rejects the whole reply rather than ignoring it, and then nothing comes back at all.",
"type": "boolean"
}
},
"required": [
"activity",
"blocks"
],
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false,
"$defs": {
"Distance": {
"type": "string",
"description": "with a unit, e.g. \"400m\", \"1.2 km\", \"5k\", \"0.5mi\"; a bare number is in the sport's default unit, km for running, cycling, walking and hiking, metres otherwise"
},
"Duration": {
"type": "string",
"description": "e.g. \"1:00\", \"90s\", \"10min\", \"1:30:00\", \"1h30min\"; \"m\" alone is refused, write \"min\""
},
"Target": {
"oneOf": [
{
"type": "object",
"properties": {
"kind": {
"type": "string",
"const": "heartRateZone"
},
"zone": {
"type": "integer",
"minimum": 1,
"maximum": 5
}
},
"required": [
"kind",
"zone"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"kind": {
"type": "string",
"const": "heartRateRange"
},
"from": {
"type": "number",
"description": "beats per minute, e.g. 140; for a % of max heart rate, work out the beats"
},
"to": {
"type": "number",
"description": "the other end; order does not matter"
}
},
"required": [
"kind",
"from",
"to"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"kind": {
"type": "string",
"const": "cadence"
},
"perMinute": {
"type": "number",
"description": "steps per minute running, revolutions per minute cycling"
}
},
"required": [
"kind",
"perMinute"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"kind": {
"type": "string",
"const": "cadenceRange"
},
"from": {
"type": "number"
},
"to": {
"type": "number",
"description": "the other end; order does not matter"
}
},
"required": [
"kind",
"from",
"to"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"kind": {
"type": "string",
"const": "power"
},
"watts": {
"type": "number",
"description": "watts; for a % of FTP, work out the watts from the rider's FTP"
}
},
"required": [
"kind",
"watts"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"kind": {
"type": "string",
"const": "powerRange"
},
"from": {
"type": "number",
"description": "watts; for a % of FTP, work out the watts"
},
"to": {
"type": "number",
"description": "the other end; order does not matter"
}
},
"required": [
"kind",
"from",
"to"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"kind": {
"type": "string",
"const": "pace"
},
"pace": {
"type": "string",
"description": "time per km or mile, e.g. \"4:30/km\", \"7:15/mi\""
}
},
"required": [
"kind",
"pace"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"kind": {
"type": "string",
"const": "paceRange"
},
"from": {
"type": "string",
"description": "one end of the band, e.g. \"4:40/km\""
},
"to": {
"type": "string",
"description": "the other end, e.g. \"4:20/km\"; order does not matter"
}
},
"required": [
"kind",
"from",
"to"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"kind": {
"type": "string",
"const": "kmh"
},
"kmh": {
"type": "number",
"description": "speed in km/h, e.g. 30"
}
},
"required": [
"kind",
"kmh"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"kind": {
"type": "string",
"const": "kmhRange"
},
"from": {
"type": "number"
},
"to": {
"type": "number",
"description": "the other end; order does not matter"
}
},
"required": [
"kind",
"from",
"to"
],
"additionalProperties": false
}
]
},
"Label": {
"type": "string",
"maxLength": 120,
"description": "free text shown on the Watch, a few words; this is where stroke goes"
},
"SendOff": {
"type": "string",
"description": "swimming only, on a distance: leave every \"2:00\" however fast you finish"
},
"Step": {
"type": "object",
"properties": {
"distance": {
"$ref": "#/$defs/Distance"
},
"time": {
"$ref": "#/$defs/Duration"
},
"open": {
"description": "no goal; the wearer ends the step",
"type": "boolean",
"const": true
},
"alert": {
"$ref": "#/$defs/Target"
},
"label": {
"$ref": "#/$defs/Label"
},
"sendOff": {
"$ref": "#/$defs/SendOff"
},
"recovery": {
"description": "true for a recovery step; work otherwise",
"type": "boolean"
}
},
"additionalProperties": false
}
}
}출력 스키마
{
"type": "object",
"properties": {
"link": {
"type": "string",
"description": "the workout itself, as a link; never shorten it"
},
"markdown": {
"type": "string",
"description": "the link as markdown, [Open the workout](link): give this to the user, with the link text in their language and the URL unchanged"
},
"fileName": {
"type": "string"
},
"sizeBytes": {
"type": "number"
},
"steps": {
"type": "number",
"description": "distinct steps, counting a repeated set once"
},
"stepsWithRepeats": {
"type": "number",
"description": "steps as performed, every repetition counted"
},
"totalDistance": {
"type": "string"
},
"totalTime": {
"description": "the steps that have a time, added up with their repeats, as h:mm:ss or m:ss",
"type": "string"
},
"warnings": {
"type": "array",
"items": {
"type": "string"
}
},
"savedTo": {
"description": "where the file was written, when it was",
"type": "string"
}
},
"required": [
"link",
"markdown",
"fileName",
"sizeBytes",
"steps",
"stepsWithRepeats",
"warnings"
],
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false
}🟢inspect_workout(source, link)
Decode a dotworkout link and describe the workout inside it, step by step. Takes a link this server built or one shared from the composer.
입력 스키마
{
"type": "object",
"properties": {
"source": {
"type": "string",
"description": "a dotworkout URL, or just its #w=… fragment"
},
"link": {
"description": "deprecated: use source",
"type": "string"
}
},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}커뮤니티
증거