kaiord_get_format_spec
Get the KRD format specification. Call this before creating or editing KRD documents.
無需輸入參數。

io.github.pablo-albaladejo由 GitHub 帳號 pablo-albaladejo 發布v10.5.0更新於 Oct 30, 2026
Convert, validate, and inspect workout files (FIT, TCX, ZWO, Garmin Connect) for AI agents.
Kaiord 透過統一的 JSON 格式轉換、驗證、檢視與比對健身訓練檔案(FIT、TCX、ZWO、GCN、KRD),可作為遠端端點或本機 npm 伺服器執行。
Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。
把這段提示詞貼上到 Claude Code、Codex、Cursor 等代理程式,或 SourceWeft 對話中。代理程式會讀取該伺服器的安裝指南,先向你展示發布者、端點和登入方式,經你同意後再把它新增到你的客戶端。金鑰不會寫進任何命令。
閱讀 https://sourceweft.com/mcp/io.github.pablo-albaladejo%2Fkaiord/install.md,並按其中說明把這個 MCP 伺服器接入我的客戶端。修改任何設定之前,先告訴我它的發布者、端點和登入方式,等我確認。不要把 API 金鑰寫進命令或我會提交的檔案;問我金鑰應從哪裡取得。把它新增到你客戶端的 mcpServers 設定中。
{
"mcpServers": {
"kaiord": {
"type": "http",
"url": "https://kaiord.com/mcp"
}
}
}kaiord.com | Editor | npm
[CI] [codecov] [npm version] [npm version] [MCP Registry] [Glama MCP server] [Sponsor]
Kaiord is an open-source framework for creating, converting, and managing health & fitness data.
It provides:
@kaiord/core: a TypeScript library with format adapters for .fit, .tcx, .zwo, and .krd (Kaiord) files, plus Garmin Connect API integration.@kaiord/cli: a command-line tool to convert, validate, and compare files across formats.@kaiord/mcp: an MCP server exposing Kaiord tools to AI agents (Claude Desktop, Claude Code, etc.). Published in the official MCP registry as io.github.pablo-albaladejo/kaiord..krd (Kaiord Representation Definition)training_peaks_tss duration type is not yet implemented in the FIT converter. This is a TrainingPeaks-specific metric that requires additional mapping logic. Contributions welcome!Kaiord is local-first: your data lives on your device, because there is no Kaiord server to send it to. There are no accounts and no backend.
new KaiordDatabase() in dexie-database.ts), and the UI reads it reactively through useLiveQuery. Nothing is written to a remote database — see the "Persisted data → Dexie" rule in State Management.import-workout-formats.ts, export-workout-formats.ts) or locally in the @kaiord/cli. Files never leave your device to be converted.drive.appdata scope, so synced data lands in your own Drive's app folder; the access token lives only in memory for the session and is never persisted by Kaiord.garmin-bridge, whoop-bridge, train2go-bridge) that piggyback on your existing browser session. Per openspec/specs/adapter-contracts/spec.md, a bridge "SHALL NOT store, transmit, or manage user credentials"; authentication is "delegated entirely to the browser's cookie jar." No third-party server proxies your credentials or your data.Comprehensive documentation is available in the /docs directory:
Create and edit workouts visually in your browser. No installation required.
For detailed installation instructions and usage examples, see the Getting Started Guide.
Kaiord uses GitHub Actions for continuous integration and deployment:
For complete CI/CD documentation, deployment guides, and npm publishing instructions, see Deployment.
Beyond linting, the repo enforces its architecture and conventions with 60+ purpose-built guard scripts under scripts/, each with its own co-located test suite. They run on every commit (husky pre-commit) and in CI (pnpm test:scripts), and cover, among others:
packages/core/src/ directory allowlist (check-architecture.mjs)@kaiord/* dependency must match the spec table (check-package-deps.mjs)should -prefixed titles and Arrange/Act/Assert structure on every test (check-test-title-should.mjs, check-test-aaa.mjs)check-no-pii-leakage.mjs)check-no-zustand-writethrough.mjs)check-spec-format.mjs, check-archive-*.mjs)If a rule matters here, a script enforces it — documentation describes the rules, but the guards are what make them true.
To contribute to Kaiord:
git checkout -b feature/my-featurepnpm exec changeset (for version-worthy changes)pnpm -r test and pnpm -r buildFor detailed contribution guidelines, development workflow, and code standards, see Contributing.
If you find Kaiord useful, consider supporting its development:
Your support helps maintain and improve Kaiord for the fitness community!
Built by Pablo Albaladejo
MIT © 2025 Pablo Albaladejo See LICENSE for details.
來源:README.md,提交 9aa0caf
Get the KRD format specification. Call this before creating or editing KRD documents.
無需輸入參數。
List all supported fitness data formats with capabilities
無需輸入參數。
Convert between fitness data formats (FIT, TCX, ZWO, GCN, KRD). FIT output is returned as base64 text unless output_file is given. On the remote endpoint, ZWO input is checked for well-formedness only, not against the XSD, and only structured workouts are accepted.
ftpinput_formatinput_contentoutput_format必填Validate a KRD JSON document against the schema On the remote endpoint, ZWO input is checked for well-formedness only, not against the XSD, and only structured workouts are accepted.
input_contentValidate round-trip FIT conversion (FIT → KRD → FIT) and report tolerance violations
input_contentInspect a fitness file and return a human-readable summary
input_formatinput_contentExtract the structured workout from a fitness file as JSON
input_formatinput_contentCompare two fitness files and show differences
format1format2content1content2已滿足適用檢查項的 100%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
kaiord/├─ packages/│ ├─ core/ → domain types, schemas, ports & use cases│ ├─ fit/ → Garmin FIT format adapter│ ├─ tcx/ → Training Center XML adapter│ ├─ zwo/ → Zwift ZWO format adapter│ ├─ garmin/ → Garmin Connect API adapter│ ├─ cli/ → command-line interface│ ├─ mcp/ → MCP server for AI/LLM integration│ └─ workout-spa-editor/ → web application (https://kaiord.com/app/)├─ docs/ → documentation├─ LICENSE├─ README.md└─ pnpm-workspace.yamlpnpm installpnpm -r buildpnpm -r test
# Example usagepnpm kaiord --help