Frontmatter
| id | 9663 |
| title | Fix MCP Servers CWD Resolution for Antigravity Compatibility |
| state | Closed |
| labels | bugai |
| assignees | [] |
| createdAt | Apr 3, 2026, 5:07 PM |
| updatedAt | Apr 3, 2026, 5:29 PM |
| githubUrl | https://github.com/neomjs/neo/issues/9663 |
| author | tobiu |
| commentsCount | 1 |
| parentIssue | null |
| subIssues | [] |
| subIssuesCompleted | 0 |
| subIssuesTotal | 0 |
| blockedBy | [] |
| blocking | [] |
| closedAt | Apr 3, 2026, 5:29 PM |
Fix MCP Servers CWD Resolution for Antigravity Compatibility
Closedbugai

The
knowledge-baseandmemory-coreMCP servers are currently failing to start in constrained environments like Antigravity. The issue is due to incorrectcwdresolution caused byconfig.mjsbeing imported and statically evaluated before any CLI--cwdflags can be parsed in Node. This results in database paths attempting to create files at the OS root level (/), throwing theENOENT: mkdir '/chroma-neo-knowledge-base'error.Proposed Fix: Implement manual CLI argument parsing directly inside
config.mjsfor both servers to extract the--cwdor-wflags before the initial paths are resolved indefaultConfig. Additionally, ensuremcp_config.jsonuses this argument.