Skip to content

feat(dak-setup): update both mcp_config.json and mcp.json for agy-cli. - #592

Open
copybara-service[bot] wants to merge 1 commit into
mainfrom
test_1032955984
Open

copybara-service[bot] wants to merge 1 commit into
mainfrom
test_1032955984

Conversation

@copybara-service

Copy link
Copy Markdown
Contributor

feat(dak-setup): update both mcp_config.json and mcp.json for agy-cli.

Antigravity CLI 1.5.20 and later follows the Agent Plugins 1.0.0 specification and loads MCP servers from mcp.json, whereas older Antigravity CLI versions and non-spec installs read mcp_config.json. Previously, dak-setup only updated mcp_config.json under agy-cli, leaving mcp.json with unconfigured placeholders and the default user agent on newer CLI releases.

Update AGENT_MCP_PARAMS to map each agent to an ordered list of target MCP config specs and configure agy-cli to sync both mcp_config.json (relative script paths, no $schema) and mcp.json (${PLUGIN_ROOT} paths with the Agent Plugins 1.0.0 $schema), both with datacloud.antigravity user-agent attribution. Check $schema equality in isEqual and iterate through all targets without short-circuiting so partial drift in either file is repaired on sync, while keeping single-target behavior unchanged for other agents. Regenerate the bundled dak-setup.js script.

Antigravity CLI 1.5.20 and later follows the Agent Plugins 1.0.0 specification and loads MCP servers from `mcp.json`, whereas older Antigravity CLI versions and non-spec installs read `mcp_config.json`. Previously, `dak-setup` only updated `mcp_config.json` under `agy-cli`, leaving `mcp.json` with unconfigured placeholders and the default user agent on newer CLI releases.

Update `AGENT_MCP_PARAMS` to map each agent to an ordered list of target MCP config specs and configure `agy-cli` to sync both `mcp_config.json` (relative script paths, no `$schema`) and `mcp.json` (`${PLUGIN_ROOT}` paths with the Agent Plugins 1.0.0 `$schema`), both with `datacloud.antigravity` user-agent attribution. Check `$schema` equality in `isEqual` and iterate through all targets without short-circuiting so partial drift in either file is repaired on `sync`, while keeping single-target behavior unchanged for other agents. Regenerate the bundled `dak-setup.js` script.

PiperOrigin-RevId: 1032955984
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant