LearnNewsExamplesServices
Frontmatter
id9663
titleFix MCP Servers CWD Resolution for Antigravity Compatibility
stateClosed
labels
bugai
assignees[]
createdAtApr 3, 2026, 5:07 PM
updatedAtApr 3, 2026, 5:29 PM
githubUrlhttps://github.com/neomjs/neo/issues/9663
authortobiu
commentsCount1
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtApr 3, 2026, 5:29 PM

Fix MCP Servers CWD Resolution for Antigravity Compatibility

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

The knowledge-base and memory-core MCP servers are currently failing to start in constrained environments like Antigravity. The issue is due to incorrect cwd resolution caused by config.mjs being imported and statically evaluated before any CLI --cwd flags can be parsed in Node. This results in database paths attempting to create files at the OS root level (/), throwing the ENOENT: mkdir '/chroma-neo-knowledge-base' error.

Proposed Fix: Implement manual CLI argument parsing directly inside config.mjs for both servers to extract the --cwd or -w flags before the initial paths are resolved in defaultConfig. Additionally, ensure mcp_config.json uses this argument.

tobiu added the bug label on Apr 3, 2026, 5:07 PM
tobiu added the ai label on Apr 3, 2026, 5:07 PM
tobiu
tobiu Apr 3, 2026, 5:29 PM

Closing premature draft. Addressed properly under #9664 after root cause analysis.

tobiu closed this issue on Apr 3, 2026, 5:29 PM