Repository navigation
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": truesetting for all 4 tools (batch_search,apply_edits,read_slices,run_checks), registeringmcp_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-fileeditspayloads from collapsing into[],[null],[-1], or[true]—while keeping token-saving native JSON arrayedits(~3× fewer output tokens than double-escaped JSON strings). - Seamless Fallback (
rules/AGENTS.md): Updated Rule 1 & Rule 6 to invokemcp_agy-fast_fast_*directly when eagerly loaded, while keeping direct lazycall_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-editsrule atmaxVersionExclusive: "1.5.8"so eager-capable Antigravity CLI≥1.5.8(including1.5.12–1.5.14), Desktop 2.0, IDE, and third-party hosts uniformly receive typed nativearrayschemas and0extraSessionStartbytes—eliminating any split-brain mismatch between eager tool declarations andSessionStartcompat hints. - Pre-eager CLI
1.5.0–1.5.7, explicitAGY_FAST_EDITS_FORMAT/config.jsonoverrides, 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零额外字节(消除急加载声明与启动提示脑裂),同时保留旧版懒加载 CLI1.5.0–1.5.7的自动保护与AGY_FAST_EDITS_FORMAT/config.json覆盖。
Full Changelog: v0.2.7...v0.2.8