@sailsync/mcp 0.6.14 → 0.6.16
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 +57 -0
- package/dist/sailsync-mcp.cjs +20 -6
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -31,6 +31,63 @@ The server never asks for your SailSync password. Revoke or replace a connection
|
|
|
31
31
|
|
|
32
32
|
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
33
|
|
|
34
|
+
## Saved race-leg metric selection
|
|
35
|
+
|
|
36
|
+
`getSailSyncRaceResults` and `getSailSyncRaceFacts` accept `metrics` and
|
|
37
|
+
`include_maneuvers`. For example, after discovering the race and boat IDs:
|
|
38
|
+
|
|
39
|
+
```json
|
|
40
|
+
{"session_id":42,"scope_id":"6814","leg_index":1,"metrics":["sog","heel","abs_heel"],"include_maneuvers":false}
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
Replace illustrative IDs with returned IDs. Facts also needs its existing
|
|
44
|
+
subject/comparison arguments. Supported metrics are `sog`, `vmg`, `mark_vmg`,
|
|
45
|
+
`twa` (absolute), `heel` (signed) and `abs_heel`; omission selects all six.
|
|
46
|
+
`include_maneuvers` defaults to false: exclude maneuver ±10 seconds, trim
|
|
47
|
+
5 seconds at each leg end, and drop remaining windows shorter than 10 seconds.
|
|
48
|
+
True includes the entire leg. Read the selected values under
|
|
49
|
+
`requested_leg.performance` in results or each leg boat's `performance` in facts.
|
|
50
|
+
Existing metric fields keep their previous meaning.
|
|
51
|
+
|
|
52
|
+
Each value includes units, covered seconds and an unavailable reason. Zero is
|
|
53
|
+
valid. Older artifacts return `recompute_required`; reads never recalculate or
|
|
54
|
+
fall back to whole-leg values. Requires the matching backend and newly computed
|
|
55
|
+
artifacts. Hosted clients refresh their tool definitions; local clients need a
|
|
56
|
+
package whose embedded contract includes these inputs, or a fresh standalone
|
|
57
|
+
bridge. These inputs are included in MCP 0.6.16 and later. Upgrade older pinned clients
|
|
58
|
+
and restart the connection to load its updated definitions.
|
|
59
|
+
See the [race-data guide](https://developer.sailsync.io/data#race-leg-metric-selection).
|
|
60
|
+
|
|
61
|
+
## Auto analysis status
|
|
62
|
+
|
|
63
|
+
When the matching backend is deployed, `getOwnedSailSyncSession` returns
|
|
64
|
+
`session.auto_processing`; `listOwnedSailSyncSessions` returns the same object
|
|
65
|
+
on each session. These existing read tools require only `data:read`, with no
|
|
66
|
+
`compute:write` grant. Status reads use ordinary data-read quotas and never
|
|
67
|
+
start analysis. No new MCP tool is required, and existing bridges pass through
|
|
68
|
+
the additive response field.
|
|
69
|
+
|
|
70
|
+
Use `getOwnedSailSyncSession` with `id` and `limit: 1` for a small polling
|
|
71
|
+
response. Follow `retry_after_seconds`, account rate limits and error backoff;
|
|
72
|
+
avoid polling every session concurrently. `queued`/`running` means Auto work
|
|
73
|
+
remains, even if metrics are already readable. Stop on terminal states;
|
|
74
|
+
`completed` with `no_qualifying_lineups` is a successful zero-result run.
|
|
75
|
+
An absent field or `unavailable` means this server/workflow cannot report a
|
|
76
|
+
reliable lifecycle. It does not imply success. Overdue status does not itself
|
|
77
|
+
authorize another compute or retry. Never bypass current ownership or scopes.
|
|
78
|
+
|
|
79
|
+
The initial status pilot defaults on once its backend schema is installed and covers fenced Auto through
|
|
80
|
+
committed detection import. Legacy callbacks and experimental wind-proposal
|
|
81
|
+
workflows may report unavailable. Native UI, new solo detection stages and
|
|
82
|
+
production enablement are separate rollout work. `getSailSyncComputeStatus`
|
|
83
|
+
retains its existing metrics-readiness meaning and compute permissions.
|
|
84
|
+
|
|
85
|
+
## Official scoring (0.6.15)
|
|
86
|
+
|
|
87
|
+
`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.
|
|
88
|
+
|
|
89
|
+
Pages default to 50 entrants (maximum 100) with a 1 MiB output ceiling. Continue with `next_cursor`, echoing `snapshot_ref` and unchanged selectors/limit; a conflict requires an explicit refresh. Reduce the row limit if `response_too_large` is returned. Source documents, private source URLs, GPS and standing replay credentials are not returned. This operation requires the matching backend release and client version 0.6.15 or newer; older npm packages do not discover it automatically. Upgrade the package and restart your MCP connection to load its updated tool definitions.
|
|
90
|
+
|
|
34
91
|
## Track files (0.6.5)
|
|
35
92
|
|
|
36
93
|
`uploadOwnedSailSyncTrackFile` accepts an absolute `file_path`, target `session_id`, `label`, `file_format` (`csv`, `gpx`, `vkx`, `vtk`) and stable `idempotency_key`. Optional `timezone` handles naive CSV timestamps. The local bridge opens only that selected regular file (no URL, symlink, directory or archive), checks the 20 MiB raw limit, and sends multipart directly to SailSync. File contents do not enter MCP JSON. All GPS points must fit the session's time window. Imports require `sessions:write` and ownership; they do not automatically recalculate metrics. Existing account input budgets are shared across connections (32 MiB/hour, 128 MiB/day).
|