Skip to content

Releases

v0.3.1 · Bilingual project site / 双语主页与文档

Choose a tag to compare

@DeliciousBuding DeliciousBuding released this 19 Nov 15:54

xunji-mcp · Your training. A new perspective.

v0.3.1 · A home for the project / 项目有了双语主页

English · 简体中文 · Website · 文档

English

xunji-mcp now has a bilingual project site, a complete English/Chinese documentation set, and a consistent visual identity. The core remains a small, self-hosted bridge for exploring your Xunji training history through MCP.

What's included

  • A project site in two languages. Separate English and 简体中文 pages, responsive layouts, synthetic training examples, keyboard-accessible tabs, setup commands, and clear documentation links.
  • Documentation that matches the current bridge. README, architecture, tools, deployment, client connection, privacy, security, contribution, coverage, acceptance, and design decisions have matching language navigation.
  • A centered horizontal cover. HTML/CSS, locally loaded Manrope and Noto Sans SC, and browser screenshots produce a 2560×1280 README PNG and a separate 1280×640 sharing export.
  • Release notes for every version. Historical notes describe the behavior at each stable tag, with upgrade guidance and verification limits.

Privacy documentation now includes D1 and Durable Object state. Public acceptance pages omit personal training statistics and deployment identifiers. Body/nutrition adapters are described accurately as optional and unverified live.

xunji_capabilities uses the shared server version, correcting a stale v0.2.0 value. The consent page also explains persistent index storage alongside the OAuth state and read cache.

Upgrade

The public site and documentation can be used immediately. This release does not require a database migration or new Worker secrets. Deploying the private Worker remains an operator action under the deployment guide.

The MCP Apps view remains opt-in with MCP_UI_ENABLED=true. Training writes remain disabled by default.

Validation and limits

The repository validation covers typecheck, lint, formatting, workerd tests with stubbed upstream HTTP, credentials scanning, and static site generation. Website demos are synthetic and never access an account. Client compatibility is checked per deployment.

ChatGPT MCP Apps rendering, live body/nutrition reads, and real training writes are not newly verified by this release. Acceptance status.

Runtime dependency audit is clean. Six high findings remain in the development
test-pool dependency chain after compatible patches; resolving them requires
the test-runtime migration described in acceptance.

Get started · Documentation · Full changes

简体中文

xunji-mcp 现在有了中英双语项目主页、完整的双语文档和统一视觉。核心仍是一个轻量、自托管的桥,通过 MCP 查询自己的训记训练历史。

这次包含

  • 中英双语主页。 独立语言地址、响应式布局、合成训练示例、支持键盘的选项卡、配置命令与明确的文档入口。
  • 与当前服务一致的文档。 README、架构、工具、部署、客户端接入、隐私、安全、贡献、覆盖、验收与设计决策都有相应语言导航。
  • 居中横向封面。 HTML/CSS、本地 Manrope 与思源黑体,经浏览器截图导出 2560×1280 README PNG 与独立的 1280×640 分享图。
  • 每个版本的说明。 历史文案按稳定 tag 描述实际行为,同时说明升级方式与验证范围。

隐私文档补充 D1 与 Durable Object 状态,公开验收页移除个人训练统计与部署标识。身体与饮食适配器明确标为可选,并保留尚未真实验证的状态。

xunji_capabilities 同步使用统一服务版本,修正原来的 v0.2.0 固定值。授权页也补充索引持久存储说明。

升级

可直接使用公开主页与文档,无需数据库迁移或新增 Worker Secret。私有 Worker 的部署仍按部署指南由操作者执行。

MCP Apps 视图仍需明确设置 MCP_UI_ENABLED=true,训练写入仍默认关闭。

验证与限制

仓库验证覆盖 typecheck、lint、格式、使用 stub 上游的 workerd 测试、凭据扫描与静态主页生成。主页演示均为合成数据,不访问账号。客户端兼容性仍按部署验证。

本次版本没有新增 ChatGPT MCP Apps 渲染、身体/饮食真实读取或训练真实写入的验证。验收状态。

运行时依赖审计通过。应用兼容补丁后,开发测试池依赖仍有六项 high 告警,
需按验收文档说明单独迁移测试环境。

开始使用 · 文档目录 · 完整变更

v0.3.0 · Optional overview view / 可选概览视图

Choose a tag to compare

@DeliciousBuding DeliciousBuding released this 19 Nov 11:51

v0.3.0 · An optional overview view / 可选概览视图

English | 简体中文

English

An optional MCP Apps view presents the training overview while retaining the
existing text result.

Changes

  • ui://xunji/overview, served as text/html;profile=mcp-app, with KPI tiles,
    a monthly volume chart, a coverage badge and host-theme support.
  • Overview tool metadata includes _meta.ui.resourceUri and the ChatGPT Apps
    SDK openai/outputTemplate when MCP_UI_ENABLED=true.
  • A self-contained HTML resource with no external requests and no additional
    data access. Text remains the fallback.

Upgrade and configuration

From v0.2.1, retain the existing OAuth, D1, scanner and cron configuration.
No new schema migration is introduced. MCP_UI_ENABLED defaults to false;
enable it only when the target client supports MCP Apps and verify rendering
in that client.

The UI does not change write authorization. Training writes remain real
opt-in operations requiring WRITE_TOOLS_ENABLED=true, xunji:write and
confirmed: true, with no dry_run or delete tool.

Validation scope and known limits

Validation covered disabled/enabled resource registration, MIME/metadata
tests and an operator tool/resource-list check.

Real ChatGPT MCP Apps rendering remains client pending. Registration and
openai/outputTemplate metadata do not establish client compatibility.
The view shows existing indexed results, whose coverage and freshness still
need to be checked.
Current verification status.

Tagged source.
Compare v0.2.1...v0.3.0.

简体中文

新增可选 MCP Apps 视图展示训练概览,并保留已有文本结果。

变化

  • 提供 ui://xunji/overview,MIME 类型为 text/html;profile=mcp-app,
    包含 KPI 卡片、月训练量图、覆盖标记和宿主主题支持。
  • MCP_UI_ENABLED=true 时,概览工具 metadata 包含 _meta.ui.resourceUri
    和 ChatGPT Apps SDK 的 openai/outputTemplate。
  • HTML 资源自包含,不发起外部请求,也不增加数据访问;文本保留为回退输出。

升级和配置

从 v0.2.1 升级时,保留已有 OAuth、D1、扫描器和 cron 配置。
本版本没有新增 schema migration。MCP_UI_ENABLED 默认为 false;
目标客户端支持 MCP Apps 时再启用,并在该客户端验证渲染。

UI 不改变写入授权。训练写入仍是真实操作,
需要 WRITE_TOOLS_ENABLED=true、xunji:write 和 confirmed: true,
没有 dry_run 或删除工具。

核验范围与已知限制

验证覆盖关闭与启用资源的注册、MIME 和 metadata 测试,
以及操作者工具与资源列表检查。

真实 ChatGPT MCP Apps 渲染仍待客户端确认。
资源注册和 openai/outputTemplate metadata 不能证明客户端兼容。
视图显示已有索引结果,其覆盖范围和新鲜度仍须检查。
当前验收状态。

Tag 对应源码。
比较 v0.2.1...v0.3.0。

v0.2.1 · Daily index refresh / 每日索引刷新

Choose a tag to compare

@DeliciousBuding DeliciousBuding released this 19 Nov 10:59

v0.2.1 · Keep the history current / 每日更新索引

English | 简体中文

English

The history index tail now advances daily without a client request.

Changes

  • A 10 16 * * * cron trigger (00:10 Asia/Shanghai) enqueues the gap from
    the latest complete/empty day through yesterday and starts the existing
    scanner. Today is picked up on the next run.
  • The example configuration sets workers_dev: false.
  • Deployment and client docs describe the hardened Access gate, removal of the
    deployed passphrase fallback and re-authentication after connector revocation.

Upgrade and configuration

From v0.2.0, add the cron trigger to the private Worker configuration and retain
the D1/scanner bindings. Configure HISTORY_START_DATE or an existing
history_start; without a start, scheduled refresh is a no-op. No new D1 schema
migration is introduced.

Apply workers_dev: false to existing deployments as well. Once Access works,
remove the deployed OWNER_PASSPHRASE and keep any emergency copy privately.
Training writes remain disabled by default, require xunji:write and
confirmed: true, and have no dry_run or delete operation.

Validation scope and known limits

Validation covered gap-only, exclude-today and no-start tests, a private
scheduled deployment, Access-route checks and a ChatGPT query-tool read.

Daily refresh advances the tail; older source edits/removals still need an
explicit refresh. The existing scan budget and vendor pacing still apply.
Client compatibility is checked per deployment.
Current verification status.

Tagged source.
Compare v0.2.0...v0.2.1.

简体中文

历史索引末尾现在可以每日更新,无须客户端发起请求。

变化

  • 增加 10 16 * * * cron 触发器(Asia/Shanghai 00:10),
    将最新 complete 或 empty 日之后到昨天的缺口入队,并启动已有扫描器。
    今天由下一次运行处理。
  • 示例配置设置 workers_dev: false。
  • 部署和客户端文档说明 Access 入口加固、移除已部署口令回退,
    以及撤销 connector 后重新授权的方法。

升级和配置

从 v0.2.0 升级时,将 cron 触发器加入私有 Worker 配置,
保留 D1 和扫描器 binding。
配置 HISTORY_START_DATE 或已有 history_start;
没有历史起点时定时刷新不执行工作。本版本没有新增 D1 schema migration。

已有部署也须设置 workers_dev: false。Access 正常后,
移除已部署的 OWNER_PASSPHRASE,应急副本私下保存。
训练写入仍默认关闭,需要 xunji:write 和 confirmed: true,
没有 dry_run 或删除操作。

核验范围与已知限制

验证覆盖缺口限定、排除今天及无起点测试、私有定时部署、
Access 路由检查与 ChatGPT 查询工具读取。

每日刷新推进索引末尾;较早日期的上游编辑或移除仍须显式刷新。
已有扫描预算和上游读取节奏继续适用。
客户端兼容性按部署验证。
当前验收状态。

Tag 对应源码。
比较 v0.2.0...v0.2.1。

v0.2.0 · Training history queries / 训练历史查询

Choose a tag to compare

@DeliciousBuding DeliciousBuding released this 19 Nov 09:53

v0.2.0 · A view of your history / 看见训练历史

English | 简体中文

English

A derived D1 index makes multi-year training queries available after backfill,
with compact results and explicit coverage.

Changes

  • xunji_query_training, xunji_training_overview,
    xunji_movement_progress and xunji_history.
  • Resumable Durable Object backfill, retry/backoff, pause/resume and refresh
    replacement of source edits/removals.
  • Columnar structuredContent with short text summaries; legacy bounded tools
    remain available.
  • Separate-key body, food-record and food-search adapters, with a
    configured/verified capability matrix.
  • D1-only historical scans, a today/yesterday hot cache, and default daily
    budgets of 100 attempted scan dates and 300 cache-put attempts.
  • Synthetic one-/three-year benchmark artifacts and the official-plan default
    window of seven days before today through 30 days after.

Upgrade and configuration

From v0.1.0, add the DB D1 binding and apply 0001_init.sql and
0002_budgets.sql. Add SCAN_COORDINATOR and its Durable Object class migration.
Keep the existing OAuth/cache/gate resources, configure a history start or
submit a backfill, then inspect coverage before querying all history.

Optional domains need the appropriate body/nutrition configuration and
XUNJI_BODY_KEY, XUNJI_FOOD_KEY or XUNJI_FOOD_SEARCH_KEY secrets.
Training writes remain real opt-in operations requiring xunji:write and
confirmed: true, with no dry_run or delete tool.

Validation scope and known limits

Validation covered index/coverage, refresh, quota and metric tests, private
backfill checks, and synthetic benchmarks. The benchmark measures local index
queries and models the earlier tool shape; it does not establish production
performance.

At this tag, a real ChatGPT call through the new query tools was still client
pending. Body/nutrition adapters were not live-verified. Initial backfill needs
one upstream read per calendar day, and D1 retains record-level copies.
Current verification status.

Tagged source.
Compare v0.1.0...v0.2.0.

简体中文

派生 D1 索引让多年训练查询在回填后可用,
并返回紧凑结果和明确的覆盖状态。

变化

  • 新增 xunji_query_training、xunji_training_overview、
    xunji_movement_progress 和 xunji_history。
  • Durable Object 支持可恢复回填、重试和退避、暂停及恢复,
    刷新时替换上游编辑或移除的记录副本。
  • 使用列式 structuredContent 和简短文本摘要,保留旧的有界工具。
  • 新增使用独立 Key 的身体、饮食记录和食品搜索适配器,
    通过能力矩阵区分 configured 与 verified。
  • 历史扫描只写 D1,KV 仅缓存今天和昨天;
    默认每日预算为尝试扫描 100 个日期、缓存写入尝试 300 次。
  • 提供一年及三年合成基准产物,官方计划默认窗口为今天前七天至后 30 天。

升级和配置

从 v0.1.0 升级时,增加 DB D1 binding,执行 0001_init.sql
和 0002_budgets.sql migration。
增加 SCAN_COORDINATOR 及其 Durable Object 类 migration。
保留已有 OAuth、缓存和 gate 资源,配置历史起点或提交回填,
解读全历史查询前检查覆盖状态。

可选数据域需要对应的 body 或 nutrition 配置,以及
XUNJI_BODY_KEY、XUNJI_FOOD_KEY 或 XUNJI_FOOD_SEARCH_KEY secret。
训练写入仍须显式开启、具备 xunji:write 和 confirmed: true;
它是真实操作,没有 dry_run 或删除工具。

核验范围与已知限制

验证覆盖索引、覆盖、刷新、额度和指标测试,私有回填检查与合成基准。
基准测量本地索引查询,并模拟旧工具形式,不代表生产性能。

在此 tag 中,通过新查询工具执行真实 ChatGPT 调用仍待客户端确认。
身体与饮食适配器尚未真实验证。首次回填每个日历日需要一次上游读取;
D1 保存记录级持久副本。
当前验收状态。

Tag 对应源码。
比较 v0.1.0...v0.2.0。

v0.1.0 · Xunji meets MCP / 训记 MCP 初版

Choose a tag to compare

@DeliciousBuding DeliciousBuding released this 19 Nov 08:06

v0.1.0 · Xunji meets MCP / 连接训记与 MCP

English | 简体中文

English

The initial release connects MCP clients to one operator's Xunji training
account through a self-hosted Cloudflare Worker.

Changes

  • Streamable HTTP /mcp, OAuth 2.1, CIMD/DCR, PKCE S256, resource discovery,
    audience checks, refresh rotation and revocation.
  • Fail-closed operator authorization through Access JWT verification and an
    email allowlist, or a deployment passphrase.
  • Training day/range, movement history, statistics, movement catalog and
    official-plan reads; calendar dates use Asia/Shanghai.
  • Identity-scoped KV cache, per-day Durable Object pacing and explicit
    pending/deferred results.
  • An opt-in training upsert requiring WRITE_TOOLS_ENABLED=true,
    xunji:write and confirmed: true. No dry_run is sent and no delete tool
    is exposed.

Installation and configuration

This is the first release, with no previous release to migrate. Install from
the tag with npm ci and generate Worker types with npm run cf-typegen.
Create OAUTH_KV and CACHE_KV, configure UPSTREAM_GATE and its class
migration, and set the canonical origin plus Access or passphrase identity.
Keep the vendor key in a Worker secret and writes disabled unless required.

Validation scope and known limits

The release's validation covered local typecheck/workerd tests, private
training reads, OAuth and a ChatGPT connection. Client checks apply to the
deployment and workspace used.

Range reads are bounded rather than a complete-history query. Body/nutrition
tools are outside this version. Training writes were tested with stubs.
Current verification status.

Tagged source.
Compare initial commit to v0.1.0
(there is no earlier release tag).

简体中文

首个版本通过自行托管的 Cloudflare Worker,
让 MCP 客户端访问一名操作者的训记训练账号。

变化

  • 提供 Streamable HTTP /mcp、OAuth 2.1、CIMD/DCR、PKCE S256、
    resource 发现、audience 检查、refresh 轮换和撤销。
  • 操作者授权采用 Access JWT 验证和邮箱 allowlist,或部署口令;
    未配置时 fail closed。
  • 支持训练日及范围、动作历史、统计、动作目录和官方计划读取;
    日历日期使用 Asia/Shanghai。
  • 按身份隔离的 KV 缓存、按日 Durable Object 限频,
    以及显式 pending、deferred 结果。
  • 可选训练 upsert 需要 WRITE_TOOLS_ENABLED=true、xunji:write
    和 confirmed: true。不发送 dry_run,不提供删除工具。

安装和配置

这是首个版本,无旧 Release 需要迁移。基于 tag 使用 npm ci 安装,
并通过 npm run cf-typegen 生成 Worker 类型。
创建 OAUTH_KV 和 CACHE_KV,配置 UPSTREAM_GATE 及其类 migration,
设置 canonical origin 和 Access 或口令身份验证。
上游 Key 保存在 Worker secret 中,按需开启真实写入。

核验范围与已知限制

发布时验证覆盖本地 typecheck、workerd 测试、私有训练读取、
OAuth 和 ChatGPT 连接。客户端检查适用于当时使用的部署和工作区。

范围读取有界,不能直接作为完整历史查询。身体和饮食工具不属于本版本。
训练写入只使用 stub 测试。
当前验收状态。

Tag 对应源码。
初始提交与 v0.1.0 比较
(没有更早的 Release tag)。