Skip to content

v0.2.8 — Eager MCP Tool Loading & Host-Compat Alignment

Latest

Choose a tag to compare

@INK-Q INK-Q released this 21 Nov 16:05
· 4 commits to main since this release

What's New in v0.2.8

Eager MCP Tool Loading ("eager": true) — Root-Cause Fix for call_mcp_tool Argument Corruption (#13, thanks @kf953741)

  • Typed Native Tool Declarations (mcp_config.json): Enables Antigravity's official per-tool "eager": true setting for all 4 tools (batch_search, apply_edits, read_slices, run_checks), registering mcp_agy-fast_fast_* upfront (~7.2 KB / ~1.9K cached input tokens total).
  • Eliminates Corruption Across Both Desktop 2.0 & CLI ≥1.5.8: Completely bypasses untyped lazy call_mcp_tool, preventing large multi-file edits payloads from collapsing into [], [null], [-1], or [true]—while keeping token-saving native JSON array edits (~3× fewer output tokens than double-escaped JSON strings).
  • Seamless Fallback (rules/AGENTS.md): Updated Rule 1 & Rule 6 to invoke mcp_agy-fast_fast_* directly when eagerly loaded, while keeping direct lazy call_mcp_tool + quick-schema fallback intact for older hosts.

Host Compatibility Controller Alignment (src/utils/host-compat.ts)

  • Capped the default agy-cli-1.5-call-mcp-tool-empty-edits rule at maxVersionExclusive: "1.5.8" so eager-capable Antigravity CLI ≥1.5.8 (including 1.5.12–1.5.14), Desktop 2.0, IDE, and third-party hosts uniformly receive typed native array schemas and 0 extra SessionStart bytes—eliminating any split-brain mismatch between eager tool declarations and SessionStart compat hints.
  • Pre-eager CLI 1.5.0–1.5.7, explicit AGY_FAST_EDITS_FORMAT / config.json overrides, dual-format runtime acceptance, and corrupted-argument circuit-breakers remain fully intact as a safety net.

简体中文摘要

  • 启用官方 "eager": true 急加载,从根因消除 call_mcp_tool 嵌套参数损坏(#13,感谢 @kf953741):在 mcp_config.json 为 4 个工具开启官方 "eager": true 急加载,直接注册带完整 JSON Schema 的原生声明 mcp_agy-fast_fast_*(4 工具总计仅 ~7.2 KB / ~1.9K 可缓存输入 tokens),在 Antigravity 桌面端 2.0 与 CLI ≥1.5.8 上彻底绕过无类型 call_mcp_tool,根治 edits: []/[null]/[-1]/[true] 丢参并保留省 3× 输出 token 的原生数组传参;同时更新 rules/AGENTS.md 优先急加载直调并保留老宿主懒加载回退。
  • 宿主兼容控制器边界对齐(src/utils/host-compat.ts):为 agy-cli-1.5-call-mcp-tool-empty-edits 增加 maxVersionExclusive: "1.5.8",使支持急加载的 CLI ≥1.5.8、桌面端 2.0、IDE 与第三方客户端统一使用强类型原生数组且 SessionStart 零额外字节(消除急加载声明与启动提示脑裂),同时保留旧版懒加载 CLI 1.5.0–1.5.7 的自动保护与 AGY_FAST_EDITS_FORMAT / config.json 覆盖。

Full Changelog: v0.2.7...v0.2.8