LearnNewsExamplesServices
Frontmatter
id9664
titleFix MCP server CWD resolution in Antigravity Sandbox
stateClosed
labels
bugai
assigneestobiu
createdAtApr 3, 2026, 5:26 PM
updatedAtApr 3, 2026, 5:28 PM
githubUrlhttps://github.com/neomjs/neo/issues/9664
authortobiu
commentsCount1
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtApr 3, 2026, 5:28 PM

Fix MCP server CWD resolution in Antigravity Sandbox

Closedbugai
tobiu
tobiu commented on Apr 3, 2026, 5:26 PM

The knowledge-base and memory-core MCP servers fail with ENOENT during fs.ensureDir when launched by the Antigravity sandbox. This occurs because process.cwd() evaluates to / inside the sandbox environment, where the file system is read-only.

This ticket implements a protective fallback identical to the one used in github-workflow, resolving the cwd to the project root when it detects /.

tobiu added the bug label on Apr 3, 2026, 5:26 PM
tobiu added the ai label on Apr 3, 2026, 5:26 PM
tobiu referenced in commit 954f14f - "fix: Implement CWD fallback for Antigravity sandbox in MCP servers (#9664) on Apr 3, 2026, 5:27 PM
tobiu assigned to @tobiu on Apr 3, 2026, 5:28 PM
tobiu
tobiu Apr 3, 2026, 5:28 PM

Applied protective fallback from github-workflow into knowledge-base and memory-core configs to correctly handle proxy path modifications injected by Antigravity sandbox environment.

tobiu closed this issue on Apr 3, 2026, 5:28 PM
tobiu cross-referenced by #9663 on Apr 3, 2026, 5:29 PM