@wonderwhy-er/desktop-commander 0.2.18-alpha.15 → 0.2.18-alpha.16

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.
@@ -234,13 +234,16 @@ function getPackageSpec(versionArg = null) {
234
234
  return '@wonderwhy-er/desktop-commander@latest';
235
235
  }
236
236
 
237
+ function isNPX() {
238
+ return process.env.npm_lifecycle_event === 'npx' ||
239
+ process.env.npm_execpath?.includes('npx') ||
240
+ process.env._?.includes('npx') ||
241
+ import.meta.url.includes('node_modules');
242
+ }
237
243
  // Function to determine execution context
238
244
  function getExecutionContext() {
239
245
  // Check if running from npx
240
- const isNpx = process.env.npm_lifecycle_event === 'npx' ||
241
- process.env.npm_execpath?.includes('npx') ||
242
- process.env._?.includes('npx') ||
243
- import.meta.url.includes('node_modules');
246
+ const isNpx = isNPX();
244
247
 
245
248
  // Check if installed globally
246
249
  const isGlobal = process.env.npm_config_global === 'true' ||
@@ -745,7 +748,7 @@ export default async function setup() {
745
748
  const configPrepStep = addSetupStep('prepare_server_config');
746
749
 
747
750
  // Determine if running through npx or locally
748
- const isNpx = import.meta.url.includes('node_modules');
751
+ const isNpx = isNPX();
749
752
  await trackEvent('npx_setup_execution_mode', { isNpx });
750
753
 
751
754
  // Fix Windows path handling for npx execution
@@ -800,7 +803,7 @@ export default async function setup() {
800
803
  // Standard configuration without debug
801
804
  if (isNpx) {
802
805
  const packageSpec = getPackageSpec(versionArg);
803
- console.log("Command args: ", packageSpec);
806
+ logToFile("Command args: ", packageSpec);
804
807
  serverConfig = {
805
808
  "command": isWindows ? "npx.cmd" : "npx",
806
809
  "args": [
package/dist/setup.log CHANGED
@@ -187,3 +187,45 @@ The server is available as "desktop-commander" in Claude's MCP server list
187
187
  2025-10-23T10:23:40.867Z - or join our community: https://discord.com/invite/kQ27sNnZr7
188
188
 
189
189
 
190
+ 2025-10-23T10:39:56.359Z - ✅ Desktop Commander MCP v0.2.18-alpha.15 successfully added to Claude’s configuration.
191
+ 2025-10-23T10:39:56.360Z - Configuration location: /Users/fiberta/Library/Application Support/Claude/claude_desktop_config.json
192
+ 2025-10-23T10:39:59.526Z -
193
+ ✅ Claude has been restarted automatically!
194
+ 2025-10-23T10:39:59.567Z -
195
+ ✅ Installation successfully completed! Thank you for using Desktop Commander!
196
+
197
+ 2025-10-23T10:39:59.567Z -
198
+ The server is available as "desktop-commander" in Claude's MCP server list
199
+ 2025-10-23T10:39:59.567Z - Future updates will install automatically — no need to run this setup again.
200
+
201
+
202
+ 2025-10-23T10:39:59.567Z - 🤔 Need help or have feedback? Happy to jump on a quick call:
203
+
204
+
205
+ 2025-10-23T10:39:59.567Z - https://calendar.app.google/SHMNZN5MJznJWC5A7
206
+
207
+
208
+ 2025-10-23T10:39:59.567Z - or join our community: https://discord.com/invite/kQ27sNnZr7
209
+
210
+
211
+ 2025-10-23T10:57:55.850Z - ✅ Desktop Commander MCP v0.2.18-alpha.15 successfully added to Claude’s configuration.
212
+ 2025-10-23T10:57:55.851Z - Configuration location: /Users/fiberta/Library/Application Support/Claude/claude_desktop_config.json
213
+ 2025-10-23T10:57:59.008Z -
214
+ ✅ Claude has been restarted automatically!
215
+ 2025-10-23T10:57:59.051Z -
216
+ ✅ Installation successfully completed! Thank you for using Desktop Commander!
217
+
218
+ 2025-10-23T10:57:59.052Z -
219
+ The server is available as "desktop-commander" in Claude's MCP server list
220
+ 2025-10-23T10:57:59.052Z - Future updates will install automatically — no need to run this setup again.
221
+
222
+
223
+ 2025-10-23T10:57:59.052Z - 🤔 Need help or have feedback? Happy to jump on a quick call:
224
+
225
+
226
+ 2025-10-23T10:57:59.052Z - https://calendar.app.google/SHMNZN5MJznJWC5A7
227
+
228
+
229
+ 2025-10-23T10:57:59.052Z - or join our community: https://discord.com/invite/kQ27sNnZr7
230
+
231
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wonderwhy-er/desktop-commander",
3
- "version": "0.2.18-alpha.15",
3
+ "version": "0.2.18-alpha.16",
4
4
  "description": "MCP server for terminal operations and file editing",
5
5
  "mcpName": "io.github.wonderwhy-er/desktop-commander",
6
6
  "license": "MIT",