@context-engine-bridge/context-engine-mcp-bridge 0.0.64 → 0.0.65
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/mcpServer.js +2 -1
package/package.json
CHANGED
package/src/mcpServer.js
CHANGED
|
@@ -1788,8 +1788,9 @@ function _findWorkspaceDirByCollection(collection) {
|
|
|
1788
1788
|
for (const dir of dirs) {
|
|
1789
1789
|
if (dir === "." || dir === ".." || dir.includes("/") || dir.includes("\0")) continue;
|
|
1790
1790
|
const dirPath = path.join(wsRoot, dir);
|
|
1791
|
+
let realDir;
|
|
1791
1792
|
try {
|
|
1792
|
-
|
|
1793
|
+
realDir = fs.realpathSync(dirPath);
|
|
1793
1794
|
if (realDir !== realWsRoot && !realDir.startsWith(realWsRoot + path.sep)) continue;
|
|
1794
1795
|
if (!fs.lstatSync(realDir).isDirectory()) continue;
|
|
1795
1796
|
} catch (_) { continue; }
|