From 7b8f8f7bf6a42bc5dc4190036c7653d7f28bf7e8 Mon Sep 17 00:00:00 2001 From: DevelopmentCats Date: Fri, 21 Nov 2025 15:52:04 -0600 Subject: [PATCH] fix: update MCP configuration path in Antigravity module --- registry/coder/modules/antigravity/README.md | 4 ++-- registry/coder/modules/antigravity/main.test.ts | 4 ++-- registry/coder/modules/antigravity/main.tf | 8 ++++---- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/registry/coder/modules/antigravity/README.md b/registry/coder/modules/antigravity/README.md index 62e37ede..4b2d2628 100644 --- a/registry/coder/modules/antigravity/README.md +++ b/registry/coder/modules/antigravity/README.md @@ -8,7 +8,7 @@ tags: [ide, antigravity, ai] # Antigravity IDE -Add a button to open any workspace with a single click in Antigravity IDE. +Add a button to open any workspace with a single click in [Antigravity IDE](https://antigravity.google). Uses the [Coder Remote VS Code Extension](https://github.com/coder/vscode-coder). @@ -37,7 +37,7 @@ module "antigravity" { ### Configure MCP servers for Antigravity -Provide a JSON-encoded string via the `mcp` input. When set, the module writes the value to `~/.antigravity/mcp.json` using a `coder_script` on workspace start. +Provide a JSON-encoded string via the `mcp` input. When set, the module writes the value to `~/.gemini/antigravity/mcp_config.json` using a `coder_script` on workspace start. The following example configures Antigravity to use the GitHub MCP server with authentication facilitated by the [`coder_external_auth`](https://coder.com/docs/admin/external-auth#configure-a-github-oauth-app) resource. diff --git a/registry/coder/modules/antigravity/main.test.ts b/registry/coder/modules/antigravity/main.test.ts index 23150f9d..ec3170b4 100644 --- a/registry/coder/modules/antigravity/main.test.ts +++ b/registry/coder/modules/antigravity/main.test.ts @@ -91,7 +91,7 @@ describe("antigravity", async () => { expect(coder_app?.instances[0].attributes.order).toBe(22); }); - it("writes ~/.antigravity/mcp.json when mcp provided", async () => { + it("writes ~/.gemini/antigravity/mcp_config.json when mcp provided", async () => { const id = await runContainer("alpine"); try { const mcp = JSON.stringify({ @@ -114,7 +114,7 @@ describe("antigravity", async () => { expect(resp.exitCode).toBe(0); const content = await readFileContainer( id, - "/root/.antigravity/mcp.json", + "/root/.gemini/antigravity/mcp_config.json", ); expect(content).toBe(mcp); } finally { diff --git a/registry/coder/modules/antigravity/main.tf b/registry/coder/modules/antigravity/main.tf index b1c9bdd2..9273c0a6 100644 --- a/registry/coder/modules/antigravity/main.tf +++ b/registry/coder/modules/antigravity/main.tf @@ -52,7 +52,7 @@ variable "display_name" { variable "mcp" { type = string - description = "JSON-encoded string to configure MCP servers for Antigravity. When set, writes ~/.antigravity/mcp.json." + description = "JSON-encoded string to configure MCP servers for Antigravity. When set, writes ~/.gemini/antigravity/mcp_config.json." default = "" } @@ -96,9 +96,9 @@ resource "coder_script" "antigravity_mcp" { script = <<-EOT #!/bin/sh set -eu - mkdir -p "$HOME/.antigravity" - echo -n "${local.mcp_b64}" | base64 -d > "$HOME/.antigravity/mcp.json" - chmod 600 "$HOME/.antigravity/mcp.json" + mkdir -p "$HOME/.gemini/antigravity" + echo -n "${local.mcp_b64}" | base64 -d > "$HOME/.gemini/antigravity/mcp_config.json" + chmod 600 "$HOME/.gemini/antigravity/mcp_config.json" EOT }