@softtechai/quickmcp 1.1.8 → 1.1.9
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/quickmcp-direct-stdio.js +8 -0
package/package.json
CHANGED
package/quickmcp-direct-stdio.js
CHANGED
|
@@ -135,6 +135,11 @@ function ensureWritableDataDir(preferredDir) {
|
|
|
135
135
|
}
|
|
136
136
|
}
|
|
137
137
|
|
|
138
|
+
function looksLikeNpxCachePath(dirPath) {
|
|
139
|
+
const normalized = String(dirPath || '').split(path.sep).join('/').toLowerCase();
|
|
140
|
+
return normalized.includes('/.npm/_npx/') || normalized.includes('/_npx/');
|
|
141
|
+
}
|
|
142
|
+
|
|
138
143
|
// Default behavior: Web UI enabled unless explicitly disabled
|
|
139
144
|
if (noWeb || process.env.QUICKMCP_ENABLE_WEB === '0' || process.env.QUICKMCP_DISABLE_WEB === '1') {
|
|
140
145
|
process.env.QUICKMCP_ENABLE_WEB = '0';
|
|
@@ -149,6 +154,9 @@ if (dataDirArg) {
|
|
|
149
154
|
const val = dataDirArg.split('=')[1];
|
|
150
155
|
if (val) process.env.QUICKMCP_DATA_DIR = val;
|
|
151
156
|
}
|
|
157
|
+
if (!dataDirArg && looksLikeNpxCachePath(process.env.QUICKMCP_DATA_DIR)) {
|
|
158
|
+
process.env.QUICKMCP_DATA_DIR = '';
|
|
159
|
+
}
|
|
152
160
|
if (!process.env.QUICKMCP_DATA_DIR) {
|
|
153
161
|
process.env.QUICKMCP_DATA_DIR = ensureWritableDataDir(resolveStableDefaultDataDir());
|
|
154
162
|
}
|