#2084·codegraph

CodeGraph 1.6.0 does not connect to Antigravity 2.5.x

Author: samem26Created Sep 29, 2026Updated Sep 29, 2026

I am on macOS M2, using CodeGraph 1.6.0 and Google Antigravity 2.5.x.

What happened : I was trying to get CodeGraph working as an MCP server in Antigravity. Antigravity does not connect to CodeGraph, while GitNexus works normally in the same environment.

I initially thought the problem might be related to the size of my CodeGraph database (~57 MB), but while investigating the MCP handshake I found this:

printf '{"jsonrpc":"2.0","id":1,"method":"server/discover"}\n' | codegraph serve --mcp --no-watch; echo "exit=$?" and the result is just: exit=0

Here is no JSON-RPC response. CodeGraph does respond to the older initialize request. I also found a similar Antigravity/MCP issue in lean-ctx where Antigravity 2.5.5 was reported to send server/discover before the legacy initialize handshake.

So I'm wondering if this could be the reason CodeGraph isn't connecting to Antigravity, or if I'm misunderstanding the MCP negotiation here.

I did wonder if server/discover isn't supported, would it be possible to return a JSON-RPC Method not found response instead of closing the connection? For example: {"jsonrpc":"2.0","id":1,"error":{"code":-32601,"message":"Method not found"}}

Or, if server/discover is intended to be supported, implement it.

I'm not sure whether Antigravity is definitely sending this request to CodeGraph in my case, so I'm mainly reporting the behavior I was able to reproduce directly.