Skip to content

v1.5.0 — Official AGY Native Plugin, Zero-Dep stdio MCP Server & Single-Instance Lock

Choose a tag to compare

@qiudai0627 qiudai0627 released this 28 Nov 10:43
· 12 commits to main since this release

What's New in v1.5.0

  • Official Self-Contained AGY Native Plugin (plugins/agy-usage/): Installable via agy plugin install https://github.com/qiudai0627/agy-usage/tree/main/plugins/agy-usage with zero default side effects (no hooks.json, no automatic settings.json edits, no background daemon auto-start). Validated cleanly with agy plugin validate --strict --json (0 errors, 0 warnings).
  • Zero-Dependency stdio MCP Server (src/mcp_server.py): Pure Python 3.9+ standard library implementation of MCP 2024-11-05 newline-delimited JSON-RPC over stdio (quota server), exposing 4 strictly sanitized read-only tools (agy_usage_summary, agy_usage_quota, agy_usage_cache_health, agy_usage_health).
  • Pure-Query Sanitization Layer (src/pure_query.py): Completely decoupled from notification dispatch; strips conversation titles, bodies, previews, local workspace paths, and raw session IDs; gracefully falls back on read-only cache directories.
  • Cross-Platform Single-Instance Lock & Identity Handshake (src/instance_lock.py, src/server.py): Full-transaction POSIX flock / Windows msvcrt locking, 0600 instance metadata (instance_id, pid, pid_start, port), /api/health identity handshake, PID-reuse protection, and safe refusal to kill unrelated services occupying the target port.
  • Transparent Three-Layer Data Boundary & Version Sync: Updated README.md, README_EN.md, README_ZH-TW.md, and macos/build-app.sh (1.5.0).

Verification

  • verify.sh: 15/15 core tests + 4/4 v1.5.0 G02–G05 plugin/MCP/single-instance lock tests PASS + agy plugin validate --strict PASS.
  • scripts/package-release.sh: 0 PII / 0 personal paths / 0 metadata leaks.