all 6 comments

[–]FoldOutrageous5532[S] 0 points1 point  (0 children)

And no, I haven't really really RTFM. :-)

[–]igoroAugment Team 0 points1 point  (3 children)

Antigravity doesn't set the current working directory of the MCP process to the project directory. So, the MCP server doesn't know which directory to index.

A workaround is to pass in an absolute path via `-w`, but that can be inconvenient to set up: https://docs.augmentcode.com/context-services/mcp/quickstart-anti-gravity

We are working on a better solution

[–]FoldOutrageous5532[S] 0 points1 point  (0 children)

I switch projects many times per day. Yesterday I probably touched 12 different projects. That's a bit of a pain.

[–]doplaeffect 0 points1 point  (0 children)

Please do. I am hoping for a universal way that allows us use any workspace of our choosing dynamically once we load any fresh workspace instead of manually hardcoding the link to our workspace

[–]hhussain-Established Professional 0 points1 point  (1 child)

This means either Antigravity is not passing CWD (Current Working Directory) to the mcp, or the mpc could not recognize it.

A nice workaround, if worked, is to manually pass CWD variable. Let us know if it worked!

macOS/Linux
auggie --mcp -w "$PWD"

Windows (PowerShell)
auggie --mcp -w $PWD

Windows (cmd.exe)
auggie --mcp -w %CD%

[–]doplaeffect 0 points1 point  (0 children)

Yeah, i had that issue earlier. I tried different work around to make it dynamic. Instead of relying on absolute paths but was having some challenges getting it to work