Skip to content

Commit 7b8f8f7

Browse files
fix: update MCP configuration path in Antigravity module
1 parent 43d8483 commit 7b8f8f7

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

registry/coder/modules/antigravity/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ tags: [ide, antigravity, ai]
88

99
# Antigravity IDE
1010

11-
Add a button to open any workspace with a single click in Antigravity IDE.
11+
Add a button to open any workspace with a single click in [Antigravity IDE](https://antigravity.google).
1212

1313
Uses the [Coder Remote VS Code Extension](https://github.com/coder/vscode-coder).
1414

@@ -37,7 +37,7 @@ module "antigravity" {
3737

3838
### Configure MCP servers for Antigravity
3939

40-
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.
40+
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.
4141

4242
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.
4343

registry/coder/modules/antigravity/main.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ describe("antigravity", async () => {
9191
expect(coder_app?.instances[0].attributes.order).toBe(22);
9292
});
9393

94-
it("writes ~/.antigravity/mcp.json when mcp provided", async () => {
94+
it("writes ~/.gemini/antigravity/mcp_config.json when mcp provided", async () => {
9595
const id = await runContainer("alpine");
9696
try {
9797
const mcp = JSON.stringify({
@@ -114,7 +114,7 @@ describe("antigravity", async () => {
114114
expect(resp.exitCode).toBe(0);
115115
const content = await readFileContainer(
116116
id,
117-
"/root/.antigravity/mcp.json",
117+
"/root/.gemini/antigravity/mcp_config.json",
118118
);
119119
expect(content).toBe(mcp);
120120
} finally {

registry/coder/modules/antigravity/main.tf

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ variable "display_name" {
5252

5353
variable "mcp" {
5454
type = string
55-
description = "JSON-encoded string to configure MCP servers for Antigravity. When set, writes ~/.antigravity/mcp.json."
55+
description = "JSON-encoded string to configure MCP servers for Antigravity. When set, writes ~/.gemini/antigravity/mcp_config.json."
5656
default = ""
5757
}
5858

@@ -96,9 +96,9 @@ resource "coder_script" "antigravity_mcp" {
9696
script = <<-EOT
9797
#!/bin/sh
9898
set -eu
99-
mkdir -p "$HOME/.antigravity"
100-
echo -n "${local.mcp_b64}" | base64 -d > "$HOME/.antigravity/mcp.json"
101-
chmod 600 "$HOME/.antigravity/mcp.json"
99+
mkdir -p "$HOME/.gemini/antigravity"
100+
echo -n "${local.mcp_b64}" | base64 -d > "$HOME/.gemini/antigravity/mcp_config.json"
101+
chmod 600 "$HOME/.gemini/antigravity/mcp_config.json"
102102
EOT
103103
}
104104

0 commit comments

Comments
 (0)