How can I add MCP to Antigravity? Encountering issues with integration.

Hi everyone,

I’m trying to add the Palantir MCP server to Antigravity, but I’m encountering issues getting it to work. Since there’s no official documentation for Antigravity yet, I tried following the pattern from other MCP server configurations.

Here’s the configuration I added to my mcpServers section:

"mcpServers": {
  "palantir-mcp": {
    "command": "npx",
    "args": [
      "-y",
      "palantir-mcp",
      "--foundry-api-url",
      "https://<enrollment>.palantirfoundry.com"
    ],
    "env": {
      "FOUNDRY_TOKEN": "<token>"
    }
  }
}

However, when I try to use it, I get the following error:

Error: calling "initialize": EOF.

I’ve tried:

  • Verifying the token is valid and has proper permissions
  • Double-checking the Foundry API URL format
  • Restarting Antigravity after configuration

Has anyone successfully integrated the Palantir MCP server with Antigravity? Is there a specific configuration format or additional setup required? Any guidance would be greatly appreciated!

Thank you!

1 Like