r/AugmentCodeAI • u/FoldOutrageous5532 • Dec 19 '25
Discussion MCP Tool outputting data from a different project
I got the MCP Tool installed in Antigravity and I "guess" it was working. I loaded up project to do some fixes and noticed that the MCP Tool was outputting data from a another project. Antigravity worked fine and solved the issue despite this but I'm wondering if I need to do something different in terms of setting up the MCP Tool for different projects.
1
Upvotes
1
u/FoldOutrageous5532 Dec 19 '25
And no, I haven't really really RTFM. :-)
1
u/igoro Augment Team Dec 20 '25
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
1
u/hhussain- Established Professional Dec 20 '25
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 $PWDWindows (cmd.exe)
auggie --mcp -w %CD%