OpenViking icon indicating copy to clipboard operation
OpenViking copied to clipboard

[Feature]: Antigravity is the only integration without OpenViking MCP tools; ship MCP and skills in its plugin

Open wycocoyu opened this issue 2 weeks ago • 0 comments

Summary

Antigravity is the only OpenViking integration that gives the agent no OpenViking tools. Every other harness wires up the server's MCP tools: Claude Code, Codex, Cursor, TRAE, ZCode, Kimi Code, CodeBuddy Code, Qoder CLI, OpenCode, DSH and pi (docs/en/agent-integrations/16-capability-reference.md:29-46). Antigravity's row reads "None; the installer adds no MCP server" (:39). So in the Antigravity app and agy, memory is recalled and captured automatically, but the agent cannot search, read or write memory itself unless the user edits ~/.gemini/config/mcp_config.json by hand.

Everything below comes from reading the OpenViking source and docs at main, and agy's own documentation. No local measurements are cited.

Why MCP was left out, and what agy supports

PR #7715 kept MCP manual with the reason "Antigravity keeps all MCP servers in one shared ~/.gemini/config/mcp_config.json". agy's documentation also supports plugin-scoped servers:

  • The MCP guide in agy says "MCP servers can be configured globally or packaged within plugins" and lists "Plugin Configuration: plugins/<plugin_name>/mcp_config.json (active when the plugin is enabled)".
  • The agy 1.4.0 changelog already fixes "plugin MCP servers that use a variable in a request header", so plugin-scoped MCP predates #7715.

In-repo precedent: Kimi Code's plugin owns its MCP server the same way — "The native plugin manifest owns hooks and MCP. Installation does not edit legacy config.toml or mcp.json files" (examples/agent-hook-plugin/hosts/kimicode/DESIGN.md:19-20).

The other half of #7715's reason still holds: users who configured the global server by hand already have an openviking entry, and shipping a second one would list every tool twice.

Proposed Approach

  1. Ship the MCP server inside the plugin directory install_antigravity in examples/memory-plugin-shared/install.sh already writes the whole plugin directory, so it can render a hosts/antigravity/mcp_config.json template into it, pointing at the installed servers/mcp-proxy.mjs, the same proxy the other hosts use. When the global ~/.gemini/config/mcp_config.json already has an openviking server, the installer skips the plugin copy and says so. The user's own file is never written.

  2. Ship the four skills that come with MCP The hosts that bundle skills next to the MCP proxy (Cursor, CodeBuddy Code, Qoder CLI, OpenCode, DSH, pi) ship openviking-memory, openviking-skills, ov-experience-memory and openviking-rule-search, generated from examples/skills. They teach the agent when to call those tools. Adding Antigravity to the skill targets in sync.mjs and copying skills/ into the plugin directory brings Antigravity in line.

PR #7797 implements both.

中文说明

问题概述

Antigravity 是唯一一个不给 agent 提供任何 OpenViking 工具的集成。其他所有宿主都接好了服务端的 MCP 工具:Claude Code、Codex、Cursor、TRAE、ZCode、Kimi Code、CodeBuddy Code、Qoder CLI、OpenCode、DSH 和 pi(docs/en/agent-integrations/16-capability-reference.md:29-46)。Antigravity 那一行写的是 "None; the installer adds no MCP server"(:39)。所以在 Antigravity app 和 agy 里,记忆会自动召回和保存,但用户不手动改 ~/.gemini/config/mcp_config.json,agent 就没法自己去搜索、读取或写入记忆。

以下内容全部来自对 main 源码、文档和 agy 自身文档的阅读,不引用任何本机实测数据。

当初为什么不做 MCP,以及 agy 实际支持什么

PR #7715 让 MCP 保持手动配置,理由是 "Antigravity keeps all MCP servers in one shared ~/.gemini/config/mcp_config.json"。agy 自己的文档表明它也支持插件级服务:

  • agy 的 MCP 文档写着 "MCP servers can be configured globally or packaged within plugins",并列出 "Plugin Configuration: plugins/<plugin_name>/mcp_config.json (active when the plugin is enabled)"。
  • agy 1.4.0 的更新日志已经在修 "plugin MCP servers that use a variable in a request header",插件级 MCP 早在 #7715 之前就存在。

仓内先例:Kimi Code 的插件就是这样管理 MCP 服务的——"The native plugin manifest owns hooks and MCP. Installation does not edit legacy config.toml or mcp.json files"(examples/agent-hook-plugin/hosts/kimicode/DESIGN.md:19-20)。

#7715 理由的另一半仍然成立:手动配置过全局的用户已经有 openviking 服务,再带一份会让每个工具都出现两次。

修复方案建议

  1. 把 MCP 服务放进插件目录 examples/memory-plugin-shared/install.sh 的 install_antigravity 本来就整个写入插件目录,可以把 hosts/antigravity/mcp_config.json 模板渲染进去,指向已安装的 servers/mcp-proxy.mjs——其他宿主用的同一个代理。如果全局 ~/.gemini/config/mcp_config.json 里已经有 openviking 服务,安装器就跳过插件这份并给出提示。用户自己的文件始终不会被改写。

  2. 带上配合 MCP 使用的四个 skills 在 MCP 代理旁边打包 skills 的宿主(Cursor、CodeBuddy Code、Qoder CLI、OpenCode、DSH、pi)都带了 openviking-memory、openviking-skills、ov-experience-memory 和 openviking-rule-search,由 examples/skills 生成,用来教 agent 什么时候调用这些工具。在 sync.mjs 的 skill 生成名单里加上 Antigravity,再把 skills/ 复制进插件目录,Antigravity 就和它们对齐了。

PR #7797 实现了这两项。

wycocoyu avatar Nov 17 '26 03:11 wycocoyu