@sailsync/mcp 0.6.15 → 0.6.24

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,5 +1,24 @@
1
1
  # SailSync MCP
2
2
 
3
+ ## Pending release: Training Block settings
4
+
5
+ The local 0.6.18 contract adds `listSailSyncTrainingBlockSessions` for paginated reads of authorized sessions. Its optional day filter uses the session start date in the block timezone. The earlier 0.6.17 contract adds `listSailSyncTrainingBlocks`,
6
+ `readSailSyncTrainingBlock`, `createSailSyncTrainingBlock` and
7
+ `updateSailSyncTrainingBlock`. This is local implementation work, not a claim
8
+ that the production connector has been updated.
9
+
10
+ Reads require `data:read` and return accessible block metadata, selected sailing
11
+ class and caller capabilities. Creation requires Racer or Gold benefits plus
12
+ `sessions:write`; supply a stable `idempotency_key` and all block settings,
13
+ including `boat_class`. Identical creation retries return the same block.
14
+ Updates require owner authority, `sessions:write`, `expected_scope_version` and
15
+ `expected_lock_version` from a prior read. A class-only edit changes future
16
+ session defaults, not existing sessions or accepted sharing scope.
17
+
18
+ These operations do not invite/enroll sailors, assign existing sessions, fetch
19
+ raw recordings or implement automatic import matching. Those flows remain
20
+ separate Training Blocks work.
21
+
3
22
  Connect your AI assistant to the sailing data your SailSync subscription can access. Discover sessions and event days, read saved race metrics and GPS, use FLO with your credits, and optionally import files or recalculate sessions you own.
4
23
 
5
24
  Requires Node.js 22+ and a SailSync account (Standard, Racer or Gold). Create a personal token at https://www.sailsync.io/integrations. Store it in your client's secret environment settings as `SAILSYNC_API_TOKEN`; do not paste it in chat, a URL or a shared configuration.
@@ -31,6 +50,57 @@ The server never asks for your SailSync password. Revoke or replace a connection
31
50
 
32
51
  This package contains only the standalone bridge and its embedded public API contract; it does not need a Rails checkout or additional runtime dependencies.
33
52
 
53
+ ## Saved race-leg metric selection
54
+
55
+ `getSailSyncRaceResults` and `getSailSyncRaceFacts` accept `metrics` and
56
+ `include_maneuvers`. For example, after discovering the race and boat IDs:
57
+
58
+ ```json
59
+ {"session_id":42,"scope_id":"6814","leg_index":1,"metrics":["sog","heel","abs_heel"],"include_maneuvers":false}
60
+ ```
61
+
62
+ Replace illustrative IDs with returned IDs. Facts also needs its existing
63
+ subject/comparison arguments. Supported metrics are `sog`, `vmg`, `mark_vmg`,
64
+ `twa` (absolute), `heel` (signed) and `abs_heel`; omission selects all six.
65
+ `include_maneuvers` defaults to false: exclude maneuver ±10 seconds, trim
66
+ 5 seconds at each leg end, and drop remaining windows shorter than 10 seconds.
67
+ True includes the entire leg. Read the selected values under
68
+ `requested_leg.performance` in results or each leg boat's `performance` in facts.
69
+ Existing metric fields keep their previous meaning.
70
+
71
+ Each value includes units, covered seconds and an unavailable reason. Zero is
72
+ valid. Older artifacts return `recompute_required`; reads never recalculate or
73
+ fall back to whole-leg values. Requires the matching backend and newly computed
74
+ artifacts. Hosted clients refresh their tool definitions; local clients need a
75
+ package whose embedded contract includes these inputs, or a fresh standalone
76
+ bridge. These inputs are included in MCP 0.6.16 and later. Upgrade older pinned clients
77
+ and restart the connection to load its updated definitions.
78
+ See the [race-data guide](https://developer.sailsync.io/data#race-leg-metric-selection).
79
+
80
+ ## Auto analysis status
81
+
82
+ When the matching backend is deployed, `getOwnedSailSyncSession` returns
83
+ `session.auto_processing`; `listOwnedSailSyncSessions` returns the same object
84
+ on each session. These existing read tools require only `data:read`, with no
85
+ `compute:write` grant. Status reads use ordinary data-read quotas and never
86
+ start analysis. No new MCP tool is required, and existing bridges pass through
87
+ the additive response field.
88
+
89
+ Use `getOwnedSailSyncSession` with `id` and `limit: 1` for a small polling
90
+ response. Follow `retry_after_seconds`, account rate limits and error backoff;
91
+ avoid polling every session concurrently. `queued`/`running` means Auto work
92
+ remains, even if metrics are already readable. Stop on terminal states;
93
+ `completed` with `no_qualifying_lineups` is a successful zero-result run.
94
+ An absent field or `unavailable` means this server/workflow cannot report a
95
+ reliable lifecycle. It does not imply success. Overdue status does not itself
96
+ authorize another compute or retry. Never bypass current ownership or scopes.
97
+
98
+ The initial status pilot defaults on once its backend schema is installed and covers fenced Auto through
99
+ committed detection import. Legacy callbacks and experimental wind-proposal
100
+ workflows may report unavailable. Native UI, new solo detection stages and
101
+ production enablement are separate rollout work. `getSailSyncComputeStatus`
102
+ retains its existing metrics-readiness meaning and compute permissions.
103
+
34
104
  ## Official scoring (0.6.15)
35
105
 
36
106
  `getSailSyncEventScoring` reads staff-approved official scoring for an authorized event. Effective Gold is required; an unlocked tracking day, purchase or remaining day allowance is not. Reads spend no days. GPS and replay retain their separate permissions. Use `event_id`, optional class/series/stage selectors, and `assigned_final_fleet_ref` for qualifying results or `fleet_ref` for finals. Published ranks are never recalculated for a filter or page. Decimal points and unknown discards remain exact/null. Historical refs must have recorded staff approval.
@@ -83,3 +153,44 @@ Use getSailSyncLineupStats with direction upwind/downwind/reach/mixed/unknown to
83
153
  ### Relative series (0.6.12)
84
154
 
85
155
  Version 0.6.12 adds `reference_boat_id` and `progress_m` to `prepareSailSyncLineupSeries`, retaining actual values alongside same-time boat-minus-reference comparisons and applied-file wind context. It requires the matching backend; check the registry tag and developer portal for release availability. Output sampling and trailing averaging are independent; progress keeps the original lineup start and is neither physical separation nor integrated VMG. Unsupported angle/tack/sensor evidence remains null with reasons. Choose exact ranges/boats/metrics and retain coverage, wind provenance and metric definitions when making coaching comparisons.
156
+
157
+ ### 0.6.24 staging: lineup outcomes and explicit preparation
158
+
159
+ Version 0.6.24 targets the accepted staging lineup API and hosted MCP release.
160
+ Use `@sailsync/mcp@staging` with `SAILSYNC_API_URL=https://dev.sailsync.io` and
161
+ an independent staging token. Production npm `latest` remains 0.6.16 pending
162
+ production backend acceptance and promotion. A package does not select or deploy
163
+ a backend. Check `getSailSyncAccount.capabilities` and
164
+ `getSailSyncSessionData.lineup_analysis` on the target host. The bridge hides the
165
+ new preparation tools when the connected API does not declare their capability.
166
+
167
+ `getSailSyncLineupStats` passes through validated complete-cohort winners and
168
+ exact ties, VMG displacement/progress gaps, frozen starting-position gaps and
169
+ supported sensor/travel/yaw/maneuver metrics. A paged boat list never defines a
170
+ new winner. Null means unavailable, not zero; inspect outcome/table contexts.
171
+ These are descriptive lineup results, not official scoring or regatta standings.
172
+ GPS sailed distance, wind-projected displacement, progress gained and starting
173
+ position are separate fields with explicit units and references.
174
+
175
+ `prepareSailSyncLineupDistributions` explicitly prepares per-lineup and/or
176
+ per-direction/local-day aggregate violins. It reuses the web's pre-decimation
177
+ sampling, weighting and KDE, not chart display values or table averages. Select
178
+ exact lineups/boats/metrics. Bounds are 8 boats, 10 lineups, 40,000 distinct
179
+ metric/classifier samples, 12,288 conservative density points, 16 MiB/source,
180
+ 32 MiB total sources/input, a 15 s preparation budget and 1 MiB result. Source
181
+ cost remains relevant for short windows. Larger requests refuse instead of
182
+ reducing the fleet or statistical resolution. Results are privately cached for
183
+ five minutes, source/input/wind/publication pinned and access rechecked.
184
+
185
+ `prepareSailSyncLineupReportHandoff` returns a relative `web_path` that prefills
186
+ the existing web lineup report editor. Resolve it against the API environment's
187
+ web origin. Normal browser login, session access and report credit rules apply.
188
+ It never generates a report or spends credits. Never append a bearer token,
189
+ password, sharing code or redirect target. The user must review and explicitly
190
+ choose Generate in the web editor. Paths over 1,800 bytes refuse; narrow the
191
+ selection rather than truncating it. The web report does not support the native
192
+ `progressGap` column; unsupported IDs are not substituted with another distance.
193
+
194
+ Both new tools use `data:read` and read-only MCP annotations. They do not unlock
195
+ days, run FLO, apply wind, import sources or recalculate metrics. Native JWT and
196
+ caller-provided share-code authentication remain outside the integration API.