Frontmatter
| id | 7976 |
| title | Update MCP server config paths to use process.cwd() |
| state | Closed |
| labels | enhancementai |
| assignees | tobiu |
| createdAt | Dec 2, 2025, 3:50 PM |
| updatedAt | Dec 2, 2025, 3:59 PM |
| githubUrl | https://github.com/neomjs/neo/issues/7976 |
| author | tobiu |
| commentsCount | 1 |
| parentIssue | null |
| subIssues | [] |
| subIssuesCompleted | 0 |
| subIssuesTotal | 0 |
| blockedBy | [] |
| blocking | [] |
| closedAt | Dec 2, 2025, 3:58 PM |
Update MCP server config paths to use process.cwd()
tobiu assigned to @tobiu on Dec 2, 2025, 3:51 PM
tobiu closed this issue on Dec 2, 2025, 3:58 PM

tobiu
Dec 2, 2025, 3:59 PM
Input from Gemini:
✦ I have implemented the path resolution changes.
Summary of Changes:
- Updated
ai/mcp/server/memory-core/config.mjsandai/mcp/server/knowledge-base/config.mjs.- Replaced
__dirname-based relative paths withprocess.cwd()-based absolute paths.- This ensures that databases and backups are correctly located in the workspace root (e.g.,
chroma-neo-memory-core) regardless of whether the server is run from the repo root or as a dependency in a scaffolded app.- Applied code formatting improvements (block alignment) to align with project standards.
The commit has been pushed.
Updates the default configuration for the
knowledge-baseandmemory-coreMCP servers to resolve database and backup paths relative toprocess.cwd()instead of__dirname.Why: Previously, paths were resolved relative to
__dirname(the location of the config file inside the package).../../../../pointed to the repo root.node_modules), this relative path resolved to theneo.mjspackage root insidenode_modules, causing databases and backups to be stored insidenode_modulesinstead of the application workspace.What: By using
process.cwd(), we align with standard Node.js tooling behavior:Changes:
ai/mcp/server/memory-core/config.mjs: UpdatememoryDb.path,memoryDb.backupPath, andsessionDb.backupPath.ai/mcp/server/knowledge-base/config.mjs: UpdatepathanddataPath.